public class SuiteRunner extends Object implements ISuite, IInvokedMethodListener
SuiteRunner is responsible for running all the tests included in one suite. The test
start is triggered by run() method.| Modifier | Constructor and Description |
|---|---|
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
Comparator<ITestNGMethod> comparator) |
protected |
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
List<IMethodInterceptor> methodInterceptors,
Collection<IInvokedMethodListener> invokedMethodListeners,
Collection<ITestListener> testListeners,
Collection<IClassListener> classListeners,
DataProviderHolder holder,
Comparator<ITestNGMethod> comparator) |
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
Comparator<ITestNGMethod> comparator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetObjectFactory2afterInvocation, beforeInvocationpublic SuiteRunner(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, Comparator<ITestNGMethod> comparator)
public SuiteRunner(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, Comparator<ITestNGMethod> comparator)
protected SuiteRunner(IConfiguration configuration, XmlSuite suite, String outputDir, ITestRunnerFactory runnerFactory, boolean useDefaultListeners, List<IMethodInterceptor> methodInterceptors, Collection<IInvokedMethodListener> invokedMethodListeners, Collection<ITestListener> testListeners, Collection<IClassListener> classListeners, DataProviderHolder holder, Comparator<ITestNGMethod> comparator)
public XmlSuite getXmlSuite()
getXmlSuite in interface ISuitepublic String getName()
public void setObjectFactory(ITestObjectFactory objectFactory)
public void setReportResults(boolean reportResults)
public String getParallel()
getParallel in interface ISuitepublic String getParentModule()
getParentModule in interface ISuitepublic String getGuiceStage()
getGuiceStage in interface ISuitepublic com.google.inject.Injector getParentInjector()
getParentInjector in interface ISuitepublic void setParentInjector(com.google.inject.Injector injector)
setParentInjector in interface ISuitepublic void run()
ISuitepublic Collection<IDataProviderListener> getDataProviderListeners()
protected void addListener(ISuiteListener reporter)
reporter - The ISuiteListener interested in reporting the result of the current suite.public void addListener(ITestNGListener listener)
addListener in interface ISuitepublic String getOutputDirectory()
getOutputDirectory in interface ISuitepublic Map<String,ISuiteResult> getResults()
getResults in interface ISuitepublic String getParameter(String parameterName)
getParameter in interface ISuiteparameterName - The name of the parameterISuite.getParameter(java.lang.String)public Map<String,Collection<ITestNGMethod>> getMethodsByGroups()
ISuitegetMethodsByGroups in interface ISuiteISuite.getMethodsByGroups()public Collection<ITestNGMethod> getExcludedMethods()
getExcludedMethods in interface ISuiteISuite.getExcludedMethods()public ITestObjectFactory getObjectFactory()
getObjectFactory in interface ISuitepublic IAnnotationFinder getAnnotationFinder()
getAnnotationFinder in interface ISuitepublic void setHost(String host)
public String getHost()
public SuiteRunState getSuiteState()
ISuitegetSuiteState in interface ISuiteISuite.getSuiteState()public void setSkipFailedInvocationCounts(Boolean skipFailedInvocationCounts)
public Object getAttribute(String name)
getAttribute in interface IAttributesname - The name of the attribute to returnpublic void setAttribute(String name, Object value)
IAttributessetAttribute in interface IAttributesname - The attribute namevalue - The attribute valuepublic Set<String> getAttributeNames()
getAttributeNames in interface IAttributespublic Object removeAttribute(String name)
IAttributesremoveAttribute in interface IAttributesname - The attribute namepublic void afterInvocation(IInvokedMethod method, ITestResult testResult)
afterInvocation in interface IInvokedMethodListenerpublic void beforeInvocation(IInvokedMethod method, ITestResult testResult)
beforeInvocation in interface IInvokedMethodListenerpublic List<IInvokedMethod> getAllInvokedMethods()
getAllInvokedMethods in interface ISuitepublic List<ITestNGMethod> getAllMethods()
getAllMethods in interface ISuiteCopyright © 2025. All rights reserved.