|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.stjs.testing.driver.MultiTestMethod
public class MultiTestMethod
Coordinates the execution of one unit test across several browsers. The JUnit runner creates one instance of this class for each unit test, specifying how many browsers are expected to execute this test. The JUnit runner then sends this test to all browsers and waits for all browsers to return the execution results by calling awaitExecutionresult(). When a browser has finished executing a test, notifiyExecutionResult() is called.
| Constructor Summary | |
|---|---|
MultiTestMethod(org.junit.runners.model.TestClass testClass,
org.junit.runners.model.FrameworkMethod meth,
int nBrowsers)
Creates a new MultiTestMethod that reprents the specified unit test of the specified class, executed on the specified number of browsers. |
|
| Method Summary | |
|---|---|
TestResultCollection |
awaitExecutionResult()
Blocks until all browsers have called notifyExecutionResult() and returns a TestResultCollection containing all the results from all the browsers. |
org.junit.runners.model.FrameworkMethod |
getMethod()
|
org.junit.runners.model.TestClass |
getTestClass()
|
void |
notifyExecutionResult(TestResult result)
Called by the browsers when they have finished executing their unit test. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultiTestMethod(org.junit.runners.model.TestClass testClass,
org.junit.runners.model.FrameworkMethod meth,
int nBrowsers)
nBrowsers - | Method Detail |
|---|
public void notifyExecutionResult(TestResult result)
public TestResultCollection awaitExecutionResult()
public org.junit.runners.model.FrameworkMethod getMethod()
public org.junit.runners.model.TestClass getTestClass()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||