com.atlassian.selenium
Class SeleniumTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.selenium.SeleniumTest
All Implemented Interfaces:
PerformanceTest, junit.framework.Test

public abstract class SeleniumTest
extends junit.framework.TestCase
implements PerformanceTest

A base class for selenium tests

Since:
v3.12

Field Summary
protected  SeleniumAssertions assertThat
           
protected  SeleniumClient client
           
protected  SeleniumConfiguration config
           
protected  TimeRecorder recorder
           
 
Constructor Summary
SeleniumTest()
           
 
Method Summary
 TimeRecorder getRecorder()
           
protected  SeleniumClient getSeleniumClient()
          Gets the SeleniumClient.
abstract  SeleniumConfiguration getSeleniumConfiguration()
           
protected  void onSetUp()
          To be overridden in the case of test-specific setup activities
protected  void onTearDown()
          To be overridden in the case of test-specific tear-down activities
 void setUp()
          Calls overridden onSetup method before starting the selenium client and possibly server and initiating assertThat and interaction variables
 void tearDown()
          Calls overridden onTearDown method before shutting down the selenium client and possibly server
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
 
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

assertThat

protected SeleniumAssertions assertThat

client

protected SeleniumClient client

config

protected SeleniumConfiguration config

recorder

protected TimeRecorder recorder
Constructor Detail

SeleniumTest

public SeleniumTest()
Method Detail

getSeleniumConfiguration

public abstract SeleniumConfiguration getSeleniumConfiguration()

setUp

public final void setUp()
                 throws Exception
Calls overridden onSetup method before starting the selenium client and possibly server and initiating assertThat and interaction variables

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

getSeleniumClient

protected SeleniumClient getSeleniumClient()
Gets the SeleniumClient. Override this method if you would like to return your own implementation of SeleniumClient.

Returns:
New or current selenium client

onSetUp

protected void onSetUp()
                throws Exception
To be overridden in the case of test-specific setup activities

Throws:
Exception

tearDown

public final void tearDown()
                    throws Exception
Calls overridden onTearDown method before shutting down the selenium client and possibly server

Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

onTearDown

protected void onTearDown()
                   throws Exception
To be overridden in the case of test-specific tear-down activities

Throws:
Exception

getRecorder

public TimeRecorder getRecorder()
Specified by:
getRecorder in interface PerformanceTest


Copyright © 2014 Atlassian. All rights reserved.