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 |
clearCurrentSession() |
static boolean |
currentDriverIsDisabled() |
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 net.thucydides.core.steps.StepListener |
getStepListener() |
static WebdriverManager |
getWebdriverManager() |
static boolean |
hasASessionVariableCalled(java.lang.Object key) |
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 WithTitle |
recordReportData() |
static <T> T |
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 boolean currentDriverIsDisabled()
public static void done(boolean closeAllDrivers)
public static java.lang.String getCurrentSessionID()
public static WebdriverManager getWebdriverManager()
public static StepFactory getStepFactory()
public static net.thucydides.core.steps.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 WithTitle recordReportData()
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 boolean hasASessionVariableCalled(java.lang.Object key)
public static <T> T sessionVariableCalled(java.lang.Object key)
public static Serenity.SessionVariableSetter setSessionVariable(java.lang.Object key)
public static void clearCurrentSession()
public static Pages getPagesFactory()
public static void throwExceptionsImmediately()
public static boolean shouldThrowErrorsImmediately()