| Package | Description |
|---|---|
| org.testng | |
| org.testng.annotations | |
| org.testng.internal | |
| org.testng.internal.annotations | |
| org.testng.reporters | |
| org.testng.reporters.jq |
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
IAlterSuiteListener |
Implementations of this interface will gain access to the
XmlSuite object and thus let users be able to
alter a suite or a test based on their own needs. |
interface |
IAnnotationTransformer |
|
interface |
IAnnotationTransformer2 |
Use this interface instead of IAnnotationTransformer if you want to modify any TestNG
annotation besides @Test.
|
interface |
IAnnotationTransformer3 |
|
interface |
IClassListener |
|
interface |
IConfigurable |
If a test class implements this interface, its run() method
will be invoked instead of each configuration method found.
|
interface |
IConfigurationListener |
Listener interface for events related to configuration methods.
|
interface |
IConfigurationListener2 |
|
interface |
IDataProviderListener |
A listener that gets invoked before and after a data provider is invoked by TestNG.
|
interface |
IExecutionListener |
A listener used to monitor when a TestNG run starts and ends.
|
interface |
IHookable |
If a test class implements this interface, its run() method
will be invoked instead of each @Test method found.
|
interface |
IInvokedMethodListener |
A listener that gets invoked before and after a method is invoked by TestNG.
|
interface |
IInvokedMethodListener2 |
Implement this interface if you need a handle to
ITestContext. |
interface |
IMethodInterceptor |
This class is used to alter the list of test methods that TestNG is about to run.
|
interface |
IReporter |
This interface can be implemented by clients to generate a report.
|
interface |
ISuiteListener |
Listener for test suites.
|
interface |
ITestListener |
A listener for test running.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
SuiteRunner |
SuiteRunner is responsible for running all the tests included in one
suite. |
class |
TestListenerAdapter |
A simple ITestListener adapter that stores all the tests
that were run.
|
static class |
TestNG.ExitCodeListener |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
ITestNGListener |
ITestNGListenerFactory.createListener(java.lang.Class<? extends ITestNGListener> listenerClass) |
Create and return an instance of the listener class passed in parameter.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<ITestNGListener> |
TestNG.getServiceLoaderListeners() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
ISuite.addListener(ITestNGListener listener) |
|
void |
SuiteRunner.addListener(ITestNGListener listener) |
|
void |
TestNG.addListener(ITestNGListener listener) |
|
void |
TestRunner.addListener(ITestNGListener listener) |
| Modifier and Type | Method | Description |
|---|---|---|
ITestNGListener |
ITestNGListenerFactory.createListener(java.lang.Class<? extends ITestNGListener> listenerClass) |
Create and return an instance of the listener class passed in parameter.
|
void |
TestNG.setListenerClasses(java.util.List<java.lang.Class<? extends ITestNGListener>> classes) |
Define which listeners to user for this run.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Class<? extends ITestNGListener>[] |
IListenersAnnotation.getValue() |
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
IResultListener |
A convenient interface to use when implementing listeners.
|
interface |
IResultListener2 |
| Modifier and Type | Class | Description |
|---|---|---|
class |
ExitCodeListener |
| Modifier and Type | Method | Description |
|---|---|---|
ITestNGListener |
DefaultListenerFactory.createListener(java.lang.Class<? extends ITestNGListener> listenerClass) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<java.lang.Class<? extends ITestNGListener>> |
TestListenerHelper.ListenerHolder.getListenerClasses() |
| Modifier and Type | Method | Description |
|---|---|---|
ITestNGListener |
DefaultListenerFactory.createListener(java.lang.Class<? extends ITestNGListener> listenerClass) |
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
IAnnotationTransformer |
For backward compatibility.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
DefaultAnnotationTransformer |
|
class |
IgnoreListener |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Class<? extends ITestNGListener>[] |
ListenersAnnotation.getValue() |
| Modifier and Type | Class | Description |
|---|---|---|
class |
DotTestListener |
|
class |
EmailableReporter |
Reported designed to render self-contained HTML top down view of a testing
suite.
|
class |
EmailableReporter2 |
Reporter that generates a single-page HTML report of the test results.
|
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 |
JqReporter |
Deprecated.
Use
Main instead |
class |
JUnitReportReporter |
|
class |
JUnitXMLReporter |
A JUnit XML report generator (replacing the original JUnitXMLReporter that was
based on XML APIs).
|
class |
SuiteHTMLReporter |
This class implements an HTML reporter for suites.
|
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.
|
class |
XMLReporter |
The main entry for the XML generation operation
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
Main |