|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.thucydides.core.Thucydides
public class Thucydides
A utility class that provides services to initialize web testing and reporting-related fields in arbitrary objects. It is designed to help integrate Thucydides into other testing tools such as Cucumber.
| Constructor Summary | |
|---|---|
Thucydides()
|
|
| Method Summary | |
|---|---|
static void |
done()
Indicate that the test run using this object is finished, and reports can be generated. |
static Map |
getCurrentSession()
|
static String |
getCurrentSessionID()
|
static String |
getDefaultProjectKey()
The current working directory name is used as a default project key if no other key is provided. |
protected static org.openqa.selenium.WebDriver |
getDriver()
|
protected static Pages |
getPages()
|
static StepListener |
getStepListener()
|
static void |
ignoredStep(String reason)
|
static void |
initialize(Object testCase)
Initialize Thucydides-related fields in the specified object. |
static void |
initializeTestSession()
|
protected static void |
injectAnnotatedPagesObjectInto(Object testCase)
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver. |
protected static void |
injectDriverInto(Object testCase)
Instantiate the @Managed-annotated WebDriver instance with current WebDriver. |
protected static void |
injectScenarioStepsInto(Object testCase)
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver. |
static void |
loadLocalPreferences()
|
static void |
pendingStep(String reason)
|
protected static void |
stopUsingMockDriver()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Thucydides()
| Method Detail |
|---|
public static void initialize(Object testCase)
protected static void injectDriverInto(Object testCase)
protected static void injectScenarioStepsInto(Object testCase)
protected static void injectAnnotatedPagesObjectInto(Object testCase)
public static void done()
public static String getCurrentSessionID()
protected static org.openqa.selenium.WebDriver getDriver()
protected static Pages getPages()
protected static void stopUsingMockDriver()
public static StepListener getStepListener()
public static void loadLocalPreferences()
throws IOException
IOExceptionpublic static void initializeTestSession()
public static Map getCurrentSession()
public static void pendingStep(String reason)
public static void ignoredStep(String reason)
public static String getDefaultProjectKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||