com.atlassian.jira.webtest.selenium.visualregression
Class JiraVisualRegressionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.selenium.SeleniumTest
              extended by com.atlassian.jira.webtest.selenium.JiraSeleniumTest
                  extended by com.atlassian.jira.webtest.selenium.visualregression.JiraVisualRegressionTest
All Implemented Interfaces:
EnvironmentAware, com.atlassian.performance.junit.PerformanceTest, junit.framework.Test
Direct Known Subclasses:
TestVisualRegressionSmoke

public abstract class JiraVisualRegressionTest
extends JiraSeleniumTest

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

Since:
v4.3

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest
JiraSeleniumTest.Check
 
Field Summary
protected  SeleniumVisualComparer visualComparer
           
 
Fields inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest
ADMIN_PASSWORD, ADMIN_USERNAME, backdoor, DROP_DOWN_WAIT, environmentData, HSP_1, logger, MKY_1, PAGE_LOAD_WAIT, PAGE_LOAD_WAIT_TIME, PRESENT_TO_VISIBLE_DELAY, VK_DOWN, VK_ESC, VK_UP
 
Fields inherited from class com.atlassian.selenium.SeleniumTest
assertThat, client, config, recorder
 
Constructor Summary
JiraVisualRegressionTest()
           
 
Method Summary
protected  void assertUIMatches(String id)
           
protected abstract  String getXmlDataName()
           
 void onSetUp()
           
protected  void runBareTestCase()
          This is a basicly copy and paste of TestCase.runBare(), except we capture a screenshot if the execution of the test fails.
 
Methods inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest
assertFalse, assertFalse, assertTrue, assertTrue, backgroundLogout, context, getAdministration, getBackdoor, getEnvironmentData, getNavigator, getSeleniumConfiguration, getUserPreferences, getWebUnitTest, getXsrfToken, globalPages, internalSetup, isBeforeJdk15, isKickAssEnabled, isUserAgentFirefox, log, restoreBlankInstance, restoreData, restoreData, restoreData, restoreDataWithPluginsReload, restoreDataWithReplacedTokens, restoreI18nData, restoreUnsetupJIRA, restoreViaBackdoor, restoreViaBackdoorAndGoToDashboard, runBare, selectMainWindow, setEnvironmentData, setSeleniumTestListener, suiteFor, timeouts, turnOffProfiling, turnOnProfiling, visibleByTimeoutWithDelay, waitFor, waitForContentUpdate, waitForRestore
 
Methods inherited from class com.atlassian.selenium.SeleniumTest
getRecorder, getSeleniumClient, onTearDown, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Field Detail

visualComparer

protected SeleniumVisualComparer visualComparer
Constructor Detail

JiraVisualRegressionTest

public JiraVisualRegressionTest()
Method Detail

getXmlDataName

protected abstract String getXmlDataName()

onSetUp

public void onSetUp()
Overrides:
onSetUp in class JiraSeleniumTest

assertUIMatches

protected void assertUIMatches(String id)

runBareTestCase

protected void runBareTestCase()
                        throws Throwable
Description copied from class: JiraSeleniumTest
This is a basicly copy and paste of TestCase.runBare(), except we capture a screenshot if the execution of the test fails.

Overrides:
runBareTestCase in class JiraSeleniumTest
Throws:
Throwable - on error


Copyright © 2002-2012 Atlassian. All Rights Reserved.