public class Serenity
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Serenity.SerenityConfigurer |
static class |
Serenity.SessionVariableSetter |
Constructor and Description |
---|
Serenity() |
Modifier and Type | Method and Description |
---|---|
static void |
done()
Indicate that the test run using this object is finished, and reports can be generated.
|
static void |
done(boolean closeAllDrivers) |
static SessionMap<java.lang.Object,java.lang.Object> |
getCurrentSession() |
static java.lang.String |
getCurrentSessionID() |
static java.lang.String |
getDefaultProjectKey() |
static org.openqa.selenium.firefox.FirefoxProfile |
getFirefoxProfile() |
static Pages |
getPagesFactory() |
static StepFactory |
getStepFactory() |
static StepListener |
getStepListener() |
static void |
ignoredStep(java.lang.String reason) |
static void |
initialize(java.lang.Object testCase)
Initialize Serenity-related fields in the specified object.
|
static void |
initializeTestSession() |
static Serenity.SerenityConfigurer |
initializeWithNoStepListener(java.lang.Object testCase)
Initialize Serenity-related fields in the specified object.
|
static void |
injectScenarioStepsInto(java.lang.Object testCase)
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.
|
static void |
pendingStep(java.lang.String reason) |
static java.lang.Object |
sessionVariableCalled(java.lang.Object key) |
static Serenity.SessionVariableSetter |
setSessionVariable(java.lang.Object key) |
static boolean |
shouldThrowErrorsImmediately() |
static void |
takeScreenshot() |
static void |
throwExceptionsImmediately() |
static void |
useFirefoxProfile(org.openqa.selenium.firefox.FirefoxProfile profile) |
public static void initialize(java.lang.Object testCase)
testCase
- any object (testcase or other) containing injectable Serenity componentspublic static Serenity.SerenityConfigurer initializeWithNoStepListener(java.lang.Object testCase)
testCase
- any object (testcase or other) containing injectable Serenity componentspublic static void injectScenarioStepsInto(java.lang.Object testCase)
testCase
- any object (testcase or other) containing injectable Serenity componentspublic static void done()
public static void done(boolean closeAllDrivers)
public static java.lang.String getCurrentSessionID()
public static StepFactory getStepFactory()
public static StepListener getStepListener()
public static void initializeTestSession()
public static SessionMap<java.lang.Object,java.lang.Object> getCurrentSession()
public static void pendingStep(java.lang.String reason)
public static void ignoredStep(java.lang.String reason)
public static void takeScreenshot()
public static java.lang.String getDefaultProjectKey()
public static void useFirefoxProfile(org.openqa.selenium.firefox.FirefoxProfile profile)
public static org.openqa.selenium.firefox.FirefoxProfile getFirefoxProfile()
public static java.lang.Object sessionVariableCalled(java.lang.Object key)
public static Serenity.SessionVariableSetter setSessionVariable(java.lang.Object key)
public static Pages getPagesFactory()
public static void throwExceptionsImmediately()
public static boolean shouldThrowErrorsImmediately()