org.xwiki.test.ui
Class AbstractTest

java.lang.Object
  extended by org.xwiki.test.ui.AbstractTest
Direct Known Subclasses:
AbstractAdminAuthenticatedTest, AbstractGuestTest, AbstractStandardUserAuthenticatedTest

public abstract class AbstractTest
extends Object

To be extended by all Test Classes. Allows to start/stop the Web Driver and get access to it.

Since:
3.2M3
Version:
$Id: fd9e40b08ba648625affb38351faa8fc4c328fcb $

Field Summary
 BrowserTestRule browserRule
          Used for ignoring tests that use IgnoreBrowser and IgnoreBrowsers annotations.
protected static PersistentTestContext context
           
 TestDebugger testDebugger
          Generates debugging information on test failure.
 org.junit.rules.TestName testName
          The object used to access the name of the current test.
 
Constructor Summary
AbstractTest()
           
 
Method Summary
protected static org.openqa.selenium.WebDriver getDriver()
           
protected  String getTestClassName()
           
protected  String getTestMethodName()
           
protected static TestUtils getUtil()
           
static void init()
           
static void setContext(PersistentTestContext context)
          Used so that AllTests can set the persistent test context.
static void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testName

public final org.junit.rules.TestName testName
The object used to access the name of the current test.


browserRule

public BrowserTestRule browserRule
Used for ignoring tests that use IgnoreBrowser and IgnoreBrowsers annotations.


testDebugger

public TestDebugger testDebugger
Generates debugging information on test failure.


context

protected static PersistentTestContext context
Constructor Detail

AbstractTest

public AbstractTest()
Method Detail

setContext

public static void setContext(PersistentTestContext context)
Used so that AllTests can set the persistent test context.


init

public static void init()
                 throws Exception
Throws:
Exception

shutdown

public static void shutdown()
                     throws Exception
Throws:
Exception

getTestMethodName

protected String getTestMethodName()

getTestClassName

protected String getTestClassName()

getDriver

protected static org.openqa.selenium.WebDriver getDriver()

getUtil

protected static TestUtils getUtil()
Returns:
Utility class with functions not specific to any test or element.


Copyright © 2004-2013 XWiki. All Rights Reserved.