Package | Description |
---|---|
org.testng | |
org.testng.internal | |
org.testng.junit | |
org.testng.reporters |
Modifier and Type | Class and Description |
---|---|
class |
TestListenerAdapter
A simple ITestListener adapter that stores all the tests
that were run.
|
static class |
TestNG.ExitCodeListener
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private ITestListener[] |
SuiteRunner.DefaultTestRunnerFactory.failureGenerators |
private ITestListener[] |
SuiteRunner.ProxyTestRunnerFactory.failureGenerators |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Class<? extends ITestListener>,ITestListener> |
TestNG.m_testListeners |
private java.util.Map<java.lang.Class<? extends ITestListener>,ITestListener> |
TestNG.m_testListeners |
private java.util.List<ITestListener> |
TestRunner.m_testListeners
ITestListeners support.
|
private java.util.List<ITestListener> |
SuiteRunner.testListeners |
Modifier and Type | Method and Description |
---|---|
java.util.List<ITestListener> |
TestNG.getTestListeners() |
java.util.List<ITestListener> |
TestRunner.getTestListeners() |
Modifier and Type | Method and Description |
---|---|
void |
TestNG.addListener(ITestListener listener)
Deprecated.
Use addListener(ITestNGListener) instead
|
(package private) void |
TestRunner.addTestListener(ITestListener listener) |
static TestNG |
TestNG.privateMain(java.lang.String[] argv,
ITestListener listener)
Note: this method is not part of the public API and is meant for internal usage only.
|
Modifier and Type | Method and Description |
---|---|
private void |
SuiteRunner.init(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
java.util.List<IMethodInterceptor> methodInterceptors,
java.util.Collection<IInvokedMethodListener> invokedMethodListener,
java.util.Collection<ITestListener> testListeners,
java.util.Collection<IClassListener> classListeners,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners,
java.util.Comparator<ITestNGMethod> comparator) |
Constructor and Description |
---|
DefaultTestRunnerFactory(IConfiguration configuration,
ITestListener[] failureListeners,
boolean useDefaultListeners,
boolean skipFailedInvocationCounts,
java.util.Comparator<ITestNGMethod> comparator) |
ProxyTestRunnerFactory(ITestListener[] failureListeners,
ITestRunnerFactory target) |
Constructor and Description |
---|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
java.util.List<IMethodInterceptor> methodInterceptors,
java.util.Collection<IInvokedMethodListener> invokedMethodListeners,
java.util.Collection<ITestListener> testListeners,
java.util.Collection<IClassListener> classListeners)
Deprecated.
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
java.util.List<IMethodInterceptor> methodInterceptors,
java.util.Collection<IInvokedMethodListener> invokedMethodListeners,
java.util.Collection<ITestListener> testListeners,
java.util.Collection<IClassListener> classListeners,
java.util.Comparator<ITestNGMethod> comparator)
Deprecated.
- This constructor stands deprecated as of TestNG v6.13.
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
java.util.List<IMethodInterceptor> methodInterceptors,
java.util.Collection<IInvokedMethodListener> invokedMethodListeners,
java.util.Collection<ITestListener> testListeners,
java.util.Collection<IClassListener> classListeners,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners,
java.util.Comparator<ITestNGMethod> comparator) |
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
java.lang.String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
java.util.List<IMethodInterceptor> methodInterceptors,
java.util.List<IInvokedMethodListener> invokedMethodListeners,
java.util.List<ITestListener> testListeners,
java.util.List<IClassListener> classListeners)
Deprecated.
- This constructor stands deprecated.
|
Modifier and Type | Interface and Description |
---|---|
interface |
IResultListener
A convenient interface to use when implementing listeners.
|
interface |
IResultListener2 |
Modifier and Type | Method and Description |
---|---|
java.util.List<ITestListener> |
ITestResultNotifier.getTestListeners() |
Modifier and Type | Method and Description |
---|---|
static void |
TestListenerHelper.runTestListeners(ITestResult tr,
java.util.List<ITestListener> listeners)
Iterates through a bunch of listeners and invokes them.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<ITestListener> |
JUnit4TestRunner.m_listeners |
Modifier and Type | Class and Description |
---|---|
class |
DotTestListener |
class |
ExitCodeListener
A very simple
ITestListener used by the TestNG runner to
find out the exit code. |
class |
FailedReporter
This reporter is responsible for creating testng-failed.xml
|
class |
JUnitXMLReporter
A JUnit XML report generator (replacing the original JUnitXMLReporter that was
based on XML APIs).
|
class |
TestHTMLReporter
This class implements an HTML reporter for individual tests.
|
class |
TextReporter
A simple reporter that collects the results and prints them on standard out.
|
class |
VerboseReporter
Reporter printing out detailed messages about what TestNG
is going to run and what is the status of what has been just run.
|