|
||||||||||
| 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 SessionMap |
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()
|
static org.openqa.selenium.firefox.FirefoxProfile |
getFirefoxProfile()
|
protected static Pages |
getPages()
|
static StepFactory |
getStepFactory()
|
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. |
static void |
injectScenarioStepsInto(Object testCase)
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver. |
static void |
pendingStep(String reason)
|
protected static void |
stopUsingMockDriver()
|
static void |
takeScreenshot()
|
static void |
useFirefoxProfile(org.openqa.selenium.firefox.FirefoxProfile profile)
|
| 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)
public 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 StepFactory getStepFactory()
public static StepListener getStepListener()
public static void initializeTestSession()
public static SessionMap getCurrentSession()
public static void pendingStep(String reason)
public static void ignoredStep(String reason)
public static void takeScreenshot()
public static String getDefaultProjectKey()
public static void useFirefoxProfile(org.openqa.selenium.firefox.FirefoxProfile profile)
public static org.openqa.selenium.firefox.FirefoxProfile getFirefoxProfile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||