|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.beust.testng.SuiteRunner
public class SuiteRunner
SuiteRunner is reponsible for running all the tests included in one
suite. The test start is triggered by run() method.
| Nested Class Summary | |
|---|---|
static class |
SuiteRunner.DefaultTestRunnerFactory
The default implementation of ITestRunnerFactory. |
| Constructor Summary | |
|---|---|
SuiteRunner(XmlSuite suite,
java.lang.String outputDir)
|
|
SuiteRunner(XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory)
|
|
| Method Summary | |
|---|---|
void |
addListener(ISuiteListener reporter)
Registers ISuiteListeners interested in reporting the result of the current suite. |
java.util.Collection<ITestNGMethod> |
getInvokedMethods()
Retrieves the list of all the methods that were invoked during this run. |
java.util.Map<java.lang.String,java.util.Collection<ITestNGMethod>> |
getMethodsByGroups()
Retrieves the map of groups and their associated test methods. |
java.lang.String |
getName()
|
java.lang.String |
getOutputDirectory()
|
java.lang.String |
getParameter(java.lang.String parameterName)
FIXME: should be removed? |
java.util.Map<java.lang.String,ISuiteResult> |
getResults()
|
boolean |
isParallel()
|
static void |
ppp(java.lang.String s)
|
void |
run()
Triggers the start of running tests included in the suite. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SuiteRunner(XmlSuite suite,
java.lang.String outputDir)
public SuiteRunner(XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory)
| Method Detail |
|---|
public java.lang.String getName()
getName in interface ISuitepublic boolean isParallel()
isParallel in interface ISuitepublic void run()
ISuite
run in interface ISuitepublic void addListener(ISuiteListener reporter)
reporter - public java.lang.String getOutputDirectory()
getOutputDirectory in interface ISuitepublic java.util.Map<java.lang.String,ISuiteResult> getResults()
getResults in interface ISuitepublic java.lang.String getParameter(java.lang.String parameterName)
getParameter in interface ISuiteISuite.getParameter(java.lang.String)public java.util.Map<java.lang.String,java.util.Collection<ITestNGMethod>> getMethodsByGroups()
ISuite
getMethodsByGroups in interface ISuiteISuite.getMethodsByGroups()public java.util.Collection<ITestNGMethod> getInvokedMethods()
ISuite
getInvokedMethods in interface ISuiteISuite.getInvokedMethods()public static void ppp(java.lang.String s)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||