Package net.thucydides.core.annotations
Class TestCaseAnnotations
java.lang.Object
net.thucydides.core.annotations.TestCaseAnnotations
Utility class used to inject fields into a test case.
- Author:
- johnsmart
-
Constructor Summary
ConstructorsConstructorDescriptionTestCaseAnnotations(Object testCase) TestCaseAnnotations(Object testCase, WebDriverConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionstatic TestCaseAnnotationsforTestCase(Object testCase) voidinjectDriver(org.openqa.selenium.WebDriver driver) Instantiate the @Managed-annotated WebDriver instance with current WebDriver if the annotated field is present.voidinjectDrivers(WebdriverManager webdriverManager) voidinjectDrivers(org.openqa.selenium.WebDriver defaultDriver, WebdriverManager webdriverManager) static booleanisASerenityTestCase(Class<?> testClass) booleanstatic booleanisUniqueSession(Class<?> testClass) static booleanstatic booleanshouldClearCookiesBeforeEachTestIn(Class<?> testClass) static booleanshouldUsePersistantStepLibraries(Class<?> testClass) static booleansupportsWebTests(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.
-
Constructor Details
-
TestCaseAnnotations
-
TestCaseAnnotations
-
-
Method Details
-
forTestCase
-
injectDriver
public void injectDriver(org.openqa.selenium.WebDriver driver) Instantiate the @Managed-annotated WebDriver instance with current WebDriver if the annotated field is present. -
injectDrivers
-
injectDrivers
public void injectDrivers(org.openqa.selenium.WebDriver defaultDriver, WebdriverManager webdriverManager) -
supportsWebTests
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. -
isUniqueSession
public boolean isUniqueSession() -
isUniqueSession
-
isWebTest
-
shouldClearCookiesBeforeEachTestIn
-
shouldUsePersistantStepLibraries
-
isASerenityTestCase
-