| Package | Description |
|---|---|
| org.testng | |
| org.testng.internal | |
| org.testng.internal.annotations | |
| org.testng.reporters | |
| org.testng.reporters.jq |
| Modifier and Type | Interface and 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 |
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
Deprecated.
As of release 7.0.0, replaced by
IConfigurationListener |
interface |
IDataProviderInterceptor
This interface helps define an interceptor for data providers.
|
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 |
IExecutionVisualiser
A TestNG listener that can be used to build graph representations of TestNG methods as and when
they are being executed on a real-time basis.
|
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 |
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 and 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.
|
| Modifier and Type | Method and Description |
|---|---|
ITestNGListener |
ITestNGListenerFactory.createListener(Class<? extends ITestNGListener> listenerClass)
Create and return an instance of the listener class passed in parameter.
|
| Modifier and Type | Method and Description |
|---|---|
List<ITestNGListener> |
TestNG.getServiceLoaderListeners() |
| Modifier and Type | Method and Description |
|---|---|
void |
ISuite.addListener(ITestNGListener listener) |
void |
TestRunner.addListener(ITestNGListener listener) |
void |
TestNG.addListener(ITestNGListener listener) |
void |
SuiteRunner.addListener(ITestNGListener listener) |
| Modifier and Type | Method and Description |
|---|---|
ITestNGListener |
ITestNGListenerFactory.createListener(Class<? extends ITestNGListener> listenerClass)
Create and return an instance of the listener class passed in parameter.
|
void |
TestNG.setListenerClasses(List<Class<? extends ITestNGListener>> classes)
Define which listeners to user for this run.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
IResultListener
A convenient interface to use when implementing listeners.
|
interface |
IResultListener2 |
| Modifier and Type | Class and Description |
|---|---|
class |
ExitCodeListener |
| Modifier and Type | Method and Description |
|---|---|
ITestNGListener |
DefaultListenerFactory.createListener(Class<? extends ITestNGListener> listenerClass) |
| Modifier and Type | Method and Description |
|---|---|
List<Class<? extends ITestNGListener>> |
TestListenerHelper.ListenerHolder.getListenerClasses() |
| Modifier and Type | Method and Description |
|---|---|
ITestNGListener |
DefaultListenerFactory.createListener(Class<? extends ITestNGListener> listenerClass) |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultAnnotationTransformer |
class |
IgnoreListener |
| Modifier and Type | Class and 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 |
FailedReporter
This reporter is responsible for creating testng-failed.xml
|
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 and Description |
|---|---|
class |
Main |
Copyright © 2025. All rights reserved.