org.xwiki.test.ui.browser
Class BrowserTestRule

java.lang.Object
  extended by org.xwiki.test.ui.browser.BrowserTestRule
All Implemented Interfaces:
org.junit.rules.TestRule

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

Allows ignoring some tests for a given browser.

 public class MyTestClass
 {
  @Rule
  public BrowserTestRule browseTestRule = new BrowserTestRule(getDriver());

        @Test
  @IgnoreBrowser(value = {"firefox"}, reason="some reason for ignoring the test...")
        public void myTest()
        {
        ...
        }
 }
 

Since:
3.5M1
Version:
$Id: a933b528e368206fa5c6391ae2ac33be03368849 $

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

Constructor Detail

BrowserTestRule

public BrowserTestRule(org.openqa.selenium.WebDriver driver)
Method Detail

apply

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


Copyright © 2004-2013 XWiki. All Rights Reserved.