Top Description Inners Fields Constructors Methods
org.testng

public Class SuiteRunner

extends Object
implements ISuite, ISuiteRunnerListener
Class Inheritance
All Implemented Interfaces
org.testng.ISuiteRunnerListener, org.testng.ISuite, org.testng.IAttributes
Static Imports
org.testng.internal.Utils.isStringBlank

SuiteRunner is responsible for running all the tests included in one suite. The test start is triggered by run() method.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final IAttributes
private final Map<Class<? extends IClassListener>, IClassListener>
private final IConfiguration
private static final String
private final ITestListener
private final DataProviderHolder
private final Map<Class<? extends IInvokedMethodListener>, IInvokedMethodListener>
private final Map<Class<? extends ISuiteListener>, ISuiteListener>
private ITestObjectFactory
private String
private Injector
private String
private final List<IReporter>
private Boolean
private final Map<String, ISuiteResult>
private final AutoCloseableLock
private final SuiteRunState
private final List<ITestListener>
private final List<TestRunner>
private final ITestRunnerFactory
private boolean
private final Set<IExecutionVisualiser>
private final XmlSuite

Constructor Summary

AccessConstructor and Description
public
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> invokedMethodListener, SuiteRunner.TestListenersContainer container, Collection<IClassListener> classListeners, DataProviderHolder holder, Comparator<ITestNGMethod> comparator)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
protected void
addListener(ISuiteListener
The ISuiteListener interested in reporting the result of the current suite.
reporter
)

public void
private void
private void
public void
public void
private ITestRunnerFactory
public List<IInvokedMethod>
public List<ITestNGMethod>
public IAnnotationFinder

Returns:

the annotation finder for the given annotation type.
getAnnotationFinder
()

Implements org.testng.ISuite.getAnnotationFinder.

Returns the annotation finder for the given annotation type.
public Object
getAttribute(String
The name of the attribute to return
name
)

Implements org.testng.IAttributes.getAttribute.

public Set<String>
public Collection<IDataProviderListener>
public Collection<ITestNGMethod>
public ITestListener
public String
public String
public Map<String, Collection<ITestNGMethod>>
getMethodsByGroups()

Implements org.testng.ISuite.getMethodsByGroups.

Retrieves the map of groups and their associated test methods.
public String
public ITestObjectFactory
public String
public String
public String
getParameter(String
The name of the parameter
parameterName
)

Implements org.testng.ISuite.getParameter.

FIXME: should be removed?
public Injector
public String
public List<IReporter>
public Map<String, ISuiteResult>
public SuiteRunState
getSuiteState()

Implements org.testng.ISuite.getSuiteState.

Retrieves the shared state for a suite.
public XmlSuite
private void
invokeListeners(boolean start)

private void
public Object
removeAttribute(String
The attribute name
name
)

Implements org.testng.IAttributes.removeAttribute.

Remove the attribute
public void
run()

Implements org.testng.ISuite.run.

Triggers the start of running tests included in the suite.
private void
runInParallelTestMode()

Implement <suite parallel="tests">.

private void
private void
public void
setAttribute(String
The attribute name
name
,
Object
The attribute value
value
)

Implements org.testng.IAttributes.setAttribute.

Set a custom attribute.
public void
public void
private void
setOutputDir(String outputdir)

public void
public void
setReportResults(boolean reportResults)

public void
setSkipFailedInvocationCounts(Boolean skipFailedInvocationCounts)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait