com.atlassian.selenium.junit4
Class SeleniumJUnit4ClassRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
          extended by org.junit.runners.BlockJUnit4ClassRunner
              extended by com.atlassian.selenium.junit4.SeleniumJUnit4ClassRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class SeleniumJUnit4ClassRunner
extends org.junit.runners.BlockJUnit4ClassRunner

A JUNIT 4 test runner that registers the it.com.atlassian.applinks.CaptureScreenshotListener before executing a test. This test runner can be applied by using the RunWith annotation on the test class. Example:

Since:
2.0

Constructor Summary
SeleniumJUnit4ClassRunner(Class<?> klass)
          Creates a BlockJUnit4ClassRunner to run klass
 
Method Summary
 void run(org.junit.runner.notification.RunNotifier notifier)
           
 
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeleniumJUnit4ClassRunner

public SeleniumJUnit4ClassRunner(Class<?> klass)
                          throws org.junit.runners.model.InitializationError
Creates a BlockJUnit4ClassRunner to run klass

Throws:
org.junit.runners.model.InitializationError - if the test class is malformed.
Method Detail

run

public void run(org.junit.runner.notification.RunNotifier notifier)
Overrides:
run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>


Copyright © 2014 Atlassian. All rights reserved.