Package com.atlassian.webdriver.testing.rule

Interface Summary
InjectingTestRule A test rule capable of performing injection.
 

Class Summary
ClassInjectionRule<P extends TestedProduct<?>>

Class injection rule.

DefaultProductContextRules

A version of default, recommended rules that is injectable into the test.

DefaultProductContextRules.ForClass  
DefaultProductContextRules.ForMethod  
DriverCleanupRule

A class rule that cleans up web drivers from the LifecycleAwareWebDriverGrid after a specific amount of time elapses since the last test has been run.

FailsafeExternalResource A template for a TestRule allowing to execute code around the Statement.evaluate() call.
IgnoreBrowserRule

A rule that allows annotating test methods with the IgnoreBrowser annotation and will skip the test if the current running driver is in the list of browsers to ignore.

InjectionRules

Static factory for a set of JUnit4-compatible injection rules.

LogPageSourceRule Similarly to WebDriverScreenshotRule, this rule will dump page source directly to the log upon test failure.
SessionCleanupRule

A simple rule to clear the browsers session at the end of a test.

TestBrowserRule Deprecated. Use IgnoreBrowserRule instead, which handles all browser-related annotations.
TestedProductRule<T extends TestedProduct<WebDriverTester>> Creates a TestedProductRule which acts just like a TestedProduct.
VisualComparerRule  
WebDriverScreenshotRule A rule for taking screen-shots when a WebDriver test fails.
WebDriverSupport<WD extends WebDriver>

Support for rules that need a WebDriver instance.

WindowSizeRule

Implements support for the WindowSize annotation.

 



Copyright © 2014 Atlassian. All rights reserved.