|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.testng.SuiteRunner
public class SuiteRunner
SuiteRunner
is responsible for running all the tests included in one
suite. The test start is triggered by run()
method.
Constructor Summary | |
---|---|
|
SuiteRunner(org.testng.internal.IConfiguration configuration,
XmlSuite suite,
String outputDir)
|
|
SuiteRunner(org.testng.internal.IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory)
|
|
SuiteRunner(org.testng.internal.IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners)
|
protected |
SuiteRunner(org.testng.internal.IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
IMethodInterceptor methodInterceptor,
List<IInvokedMethodListener> invokedMethodListeners,
List<ITestListener> testListeners)
|
Method Summary | |
---|---|
protected void |
addListener(ISuiteListener reporter)
Registers ISuiteListeners interested in reporting the result of the current suite. |
void |
addListener(ITestNGListener listener)
|
void |
afterInvocation(IInvokedMethod method,
ITestResult testResult)
|
void |
beforeInvocation(IInvokedMethod method,
ITestResult testResult)
|
List<IInvokedMethod> |
getAllInvokedMethods()
|
List<ITestNGMethod> |
getAllMethods()
|
org.testng.internal.annotations.IAnnotationFinder |
getAnnotationFinder()
Returns the annotation finder for the given annotation type. |
Object |
getAttribute(String name)
|
Set<String> |
getAttributeNames()
|
Collection<ITestNGMethod> |
getExcludedMethods()
|
String |
getHost()
|
Collection<ITestNGMethod> |
getInvokedMethods()
Retrieves the list of all the methods that were invoked during this run. |
Map<String,Collection<ITestNGMethod>> |
getMethodsByGroups()
Retrieves the map of groups and their associated test methods. |
String |
getName()
|
IObjectFactory |
getObjectFactory()
|
IObjectFactory2 |
getObjectFactory2()
|
String |
getOutputDirectory()
|
String |
getParallel()
|
String |
getParameter(String parameterName)
FIXME: should be removed? |
com.google.inject.Injector |
getParentInjector()
|
String |
getParentModule()
|
List<IReporter> |
getReporters()
|
Map<String,ISuiteResult> |
getResults()
|
SuiteRunState |
getSuiteState()
Retrieves the shared state for a suite. |
XmlSuite |
getXmlSuite()
|
static void |
ppp(String s)
|
Object |
removeAttribute(String name)
Remove the attribute |
void |
run()
Triggers the start of running tests included in the suite. |
void |
setAttribute(String name,
Object value)
Set a custom attribute. |
void |
setHost(String host)
|
void |
setObjectFactory(ITestObjectFactory objectFactory)
|
void |
setParentInjector(com.google.inject.Injector injector)
|
void |
setReportResults(boolean reportResults)
|
void |
setSkipFailedInvocationCounts(Boolean skipFailedInvocationCounts)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SuiteRunner(org.testng.internal.IConfiguration configuration, XmlSuite suite, String outputDir)
public SuiteRunner(org.testng.internal.IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory)
public SuiteRunner(org.testng.internal.IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners)
protected SuiteRunner(org.testng.internal.IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, IMethodInterceptor methodInterceptor, List<IInvokedMethodListener> invokedMethodListeners, List<ITestListener> testListeners)
Method Detail |
---|
public XmlSuite getXmlSuite()
getXmlSuite
in interface ISuite
public String getName()
getName
in interface ISuite
public void setObjectFactory(ITestObjectFactory objectFactory)
public void setReportResults(boolean reportResults)
public String getParallel()
getParallel
in interface ISuite
public String getParentModule()
getParentModule
in interface ISuite
public com.google.inject.Injector getParentInjector()
getParentInjector
in interface ISuite
public void setParentInjector(com.google.inject.Injector injector)
setParentInjector
in interface ISuite
public void run()
ISuite
run
in interface ISuite
public List<IReporter> getReporters()
protected void addListener(ISuiteListener reporter)
reporter
- public void addListener(ITestNGListener listener)
addListener
in interface ISuite
public String getOutputDirectory()
getOutputDirectory
in interface ISuite
public Map<String,ISuiteResult> getResults()
getResults
in interface ISuite
public String getParameter(String parameterName)
getParameter
in interface ISuite
ISuite.getParameter(java.lang.String)
public Map<String,Collection<ITestNGMethod>> getMethodsByGroups()
ISuite
getMethodsByGroups
in interface ISuite
ISuite.getMethodsByGroups()
public Collection<ITestNGMethod> getInvokedMethods()
ISuite
getInvokedMethods
in interface ISuite
ISuite.getInvokedMethods()
public Collection<ITestNGMethod> getExcludedMethods()
getExcludedMethods
in interface ISuite
ISuite.getExcludedMethods()
public IObjectFactory getObjectFactory()
getObjectFactory
in interface ISuite
public IObjectFactory2 getObjectFactory2()
getObjectFactory2
in interface ISuite
public org.testng.internal.annotations.IAnnotationFinder getAnnotationFinder()
getAnnotationFinder
in interface ISuite
public static void ppp(String s)
public void setHost(String host)
public String getHost()
getHost
in interface ISuite
public SuiteRunState getSuiteState()
ISuite
getSuiteState
in interface ISuite
ISuite.getSuiteState()
public void setSkipFailedInvocationCounts(Boolean skipFailedInvocationCounts)
public Object getAttribute(String name)
getAttribute
in interface IAttributes
name
- The name of the attribute to returnpublic void setAttribute(String name, Object value)
IAttributes
setAttribute
in interface IAttributes
public Set<String> getAttributeNames()
getAttributeNames
in interface IAttributes
public Object removeAttribute(String name)
IAttributes
removeAttribute
in interface IAttributes
public void afterInvocation(IInvokedMethod method, ITestResult testResult)
afterInvocation
in interface IInvokedMethodListener
public void beforeInvocation(IInvokedMethod method, ITestResult testResult)
beforeInvocation
in interface IInvokedMethodListener
public List<IInvokedMethod> getAllInvokedMethods()
getAllInvokedMethods
in interface ISuite
public List<ITestNGMethod> getAllMethods()
getAllMethods
in interface ISuite
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |