com.atlassian.webdriver.testing.rule
Class TestBrowserRule

java.lang.Object
  extended by com.atlassian.webdriver.testing.rule.TestBrowserRule
All Implemented Interfaces:
org.junit.rules.TestRule

Deprecated. Use IgnoreBrowserRule instead, which handles all browser-related annotations.

public class TestBrowserRule
extends Object
implements org.junit.rules.TestRule

If a test method, class or package has been annotated with the TestBrowser annotation then the webdriver.browser system property will be set to use to the value of the annotation otherwise it will use the default value. In order for this to be used in tests it requires that the test creates the TestedProduct each test method execution using Before or uses the TestedProductRule If using the TestedProductRule ensure that it is defined before this rule. eg.

Since:
2.1.0

Constructor Summary
TestBrowserRule()
          Deprecated.  
 
Method Summary
 org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestBrowserRule

public TestBrowserRule()
Deprecated. 
Method Detail

apply

public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
                                               org.junit.runner.Description description)
Deprecated. 
Specified by:
apply in interface org.junit.rules.TestRule


Copyright © 2014 Atlassian. All rights reserved.