Package com.atlassian.bamboo.webdriver
Class BambooWebDriverTest
java.lang.Object
com.atlassian.bamboo.webdriver.BambooWebDriverTest
An abstract page objects-based test in Bamboo.
This class follows the JUnit4 rule pattern. If you feel there is a need for common functionality, please try not to pollute this class with random utility methods. Use the page objects framework in combination with rules instead. Check out the existing rules for examples.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BackdoorRule
protected org.openqa.selenium.WebDriver
protected final ResettableExpectedExceptionRule
protected static final BambooTestedProduct
final org.junit.rules.TestRule
Do not change the order of rules unless there is a good reason for it.protected static final BambooEnvironmentData
-
Constructor Summary
-
Method Summary
-
Field Details
-
product
-
testEnvironmentData
-
expectedExceptionRule
-
backdoor
-
driver
@Inject protected org.openqa.selenium.WebDriver driver -
ruleChain
public final org.junit.rules.TestRule ruleChainDo not change the order of rules unless there is a good reason for it. Reasons for current order:- repeat rule should wrap everything
- test progress logs should wrap everything for each repeat iteration
- uniform interface exception rule should wrap backdoor, as the exception may occur during backdoor cleanup
- backdoor modules should be available for #after methods
- screenshot should be taken before #after methods pollute the test with cleanup code
-
-
Constructor Details
-
BambooWebDriverTest
public BambooWebDriverTest()
-
-
Method Details