com.atlassian.jira.webtest.webdriver.tests.visualregression
Class JiraVisualRegressionTest

java.lang.Object
  extended by com.atlassian.jira.pageobjects.BaseJiraWebTest
      extended by com.atlassian.jira.webtest.webdriver.tests.visualregression.JiraVisualRegressionTest
Direct Known Subclasses:
TestAuditLogVisualRegression, TestIntegratedPluginsVisualRegression, TestKickAssVisualRegression, TestVisualRegresionPopupsAndDialogs, TestVisualRegressionBulkEdit, TestVisualRegressionCreateIssue, TestVisualRegressionSmoke

public abstract class JiraVisualRegressionTest
extends BaseJiraWebTest

Abstract base class for UI Regression tests. These tests take screenshots of JIRA and compare them with previous baseline images.

Since:
v4.3

Field Summary
protected  com.atlassian.selenium.visualcomparison.VisualComparableClient client
           
protected  com.atlassian.selenium.visualcomparison.VisualComparer visualComparer
           
 
Fields inherited from class com.atlassian.jira.pageobjects.BaseJiraWebTest
backdoor, jira, jiraWebTestClassRules, logger, pageBinder, webTestRule
 
Constructor Summary
JiraVisualRegressionTest()
           
 
Method Summary
protected  void addElementsToIgnore(org.openqa.selenium.By selector)
          Ignore elements on the page.
protected  void assertUIMatches(String id)
           
protected  void clickOnElement(String cssSelector)
           
protected  void clickOnElement(String cssSelector, boolean waitForPageToLoad)
           
 String getBaselineScreenshotFilePath()
          The location of the baseline screenshots in the file system of the machine the tests are running on.
protected  void goTo(String url)
           
protected  void goToErrorPage(String url)
           
protected  void removeUPMCount()
          Removes the little yellow gem that appears on the UPM icon to indicate there are new updates to plugins.
 void resetVisualComparer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

@Inject
protected com.atlassian.selenium.visualcomparison.VisualComparableClient client

visualComparer

protected com.atlassian.selenium.visualcomparison.VisualComparer visualComparer
Constructor Detail

JiraVisualRegressionTest

public JiraVisualRegressionTest()
Method Detail

resetVisualComparer

public void resetVisualComparer()

assertUIMatches

protected void assertUIMatches(String id)

removeUPMCount

protected void removeUPMCount()
Removes the little yellow gem that appears on the UPM icon to indicate there are new updates to plugins.


getBaselineScreenshotFilePath

public String getBaselineScreenshotFilePath()
The location of the baseline screenshots in the file system of the machine the tests are running on.


goTo

protected void goTo(String url)

goToErrorPage

protected void goToErrorPage(String url)

clickOnElement

protected void clickOnElement(String cssSelector)

clickOnElement

protected void clickOnElement(String cssSelector,
                              boolean waitForPageToLoad)

addElementsToIgnore

protected void addElementsToIgnore(org.openqa.selenium.By selector)
Ignore elements on the page. TODO JRADEV-15992: Extract this in to the visualComparer such that the screen resolution hacks can be removed.

Parameters:
selector - a means by which to find elements to ignore.


Copyright © 2002-2014 Atlassian. All Rights Reserved.