public final class TestCaseAnnotations
extends java.lang.Object
Constructor and Description |
---|
TestCaseAnnotations(java.lang.Object testCase) |
TestCaseAnnotations(java.lang.Object testCase,
WebDriverConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
static TestCaseAnnotations |
forTestCase(java.lang.Object testCase) |
void |
injectDriver(org.openqa.selenium.WebDriver driver)
Instantiate the @Managed-annotated WebDriver instance with current WebDriver if the annotated field is present.
|
void |
injectDrivers(WebdriverManager webdriverManager) |
void |
injectDrivers(org.openqa.selenium.WebDriver defaultDriver,
WebdriverManager webdriverManager) |
static boolean |
isASerenityTestCase(java.lang.Class<?> testClass) |
boolean |
isUniqueSession() |
static boolean |
isUniqueSession(java.lang.Class<?> testClass) |
static boolean |
isWebTest(java.lang.Class<?> testClass) |
static boolean |
shouldClearCookiesBeforeEachTestIn(java.lang.Class<?> testClass) |
static boolean |
shouldUsePersistantStepLibraries(java.lang.Class<?> testClass) |
static boolean |
supportsWebTests(java.lang.Class clazz)
Does this class support web tests?
Test cases that support web tests need to have at least a WebDriver field annotated with the @Managed
annotation.
|
public TestCaseAnnotations(java.lang.Object testCase, WebDriverConfiguration configuration)
public TestCaseAnnotations(java.lang.Object testCase)
public static TestCaseAnnotations forTestCase(java.lang.Object testCase)
public void injectDriver(org.openqa.selenium.WebDriver driver)
public void injectDrivers(WebdriverManager webdriverManager)
public void injectDrivers(org.openqa.selenium.WebDriver defaultDriver, WebdriverManager webdriverManager)
public static boolean supportsWebTests(java.lang.Class clazz)
public boolean isUniqueSession()
public static boolean isUniqueSession(java.lang.Class<?> testClass)
public static boolean isWebTest(java.lang.Class<?> testClass)
public static boolean shouldClearCookiesBeforeEachTestIn(java.lang.Class<?> testClass)
public static boolean shouldUsePersistantStepLibraries(java.lang.Class<?> testClass)
public static boolean isASerenityTestCase(java.lang.Class<?> testClass)