Top Interfaces Classes
[default module]

Package org.testng


Interface Summary

Modifier and TypeInterface and Description
public 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.

public interface
public interface
IAttributes

A trait that is used by all interfaces that lets the user add or remove their own attributes.

public interface
IClass

IClass represents a test class and a collection of its instances.

public interface
public interface
IConfigurable

If a test class implements this interface, its run() method will be invoked instead of each configuration method found.

public interface
IConfigurationListener

Listener interface for events related to configuration methods.

public interface
IConfigurationListener2

Deprecated As of release 7.0.0, replaced by org.testng.IConfigurationListener
public interface
IConfigureCallBack

A parameter of this type will be passed to the run() method of a IConfigurable.

public interface
IDataProviderInterceptor

This interface helps define an interceptor for data providers.

public interface
IDataProviderListener

A listener that gets invoked before and after a data provider is invoked by TestNG.

public interface
IDataProviderMethod

Represents the attributes of a org.testng.annotations.DataProvider annotated method.

public interface
IDynamicGraph<T>

Represents the graphical representative capabilities of an entity.

public interface
IExecutionListener

A listener used to monitor when a TestNG run starts and ends.

public 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.

public interface
IExecutorServiceFactory

Represents the capability to create a custom ExecutorService by downstream consumers.

public interface
public interface
IHookable

If a test class implements this interface, its run() method will be invoked instead of each @Test method found.

public interface
IHookCallBack

A parameter of this type will be passed to the run() method of a IHookable.

public interface
IInjectorFactory

Allows customization of the Injector creation when working with dependency injection.

public interface
IInstanceInfo<T>

This class defines a pair of instance/class.

public interface
IInvokedMethod

An interface representing a method that has been invoked by TestNG.

public interface
IInvokedMethodListener

A listener that gets invoked before and after a method is invoked by TestNG.

public interface
IMethodInstance

This interface captures a test method along with all the instances it should be run on.

public interface
IMethodInterceptor

This class is used to alter the list of test methods that TestNG is about to run.

public interface
IMethodSelector

This interface is used to augment or replace TestNG's algorithm to decide whether a test method should be included in a test run.

public interface
IMethodSelectorContext

An implementation of this interface is passed to all the Method Selectors when their includeMethod() is invoked.

public interface
IModule

This interface provides Module to implicitly add to the Guice context.

public interface
IModuleFactory

This interface is used by the moduleFactory attribute of the @Guice annotation.

public interface
IReporter

This interface can be implemented by clients to generate a report.

public interface
public interface
IRetryAnalyzer

Interface to implement to be able to have a chance to retry a failed test.

public interface
IRetryDataProvider

Represents the ability to retry a data provider.

public interface
ISuite

Interface defining a Test Suite.

public interface
ISuiteListener

Listener for test suites.

public interface
ISuiteResult

This class represents the result of a suite run.

public interface
public interface
ITest

If a test class implements this interface, it will receive a special treatment, such as having the test name displayed in the HTML reports.

public interface
ITestClass

This class represents a test class:

  • The test methods
  • The configuration methods (test and method)
  • The class file
public interface
ITestClassFinder

This class is used by TestNG to locate the test classes.

public interface
ITestContext

This class defines a test context which contains all the information for a given test run.

public interface
ITestListener

A listener for test running.

public interface
ITestMethodFinder

This interface allows to modify the strategy used by TestRunner to find its test methods.

public interface
ITestNGListener

This is a marker interface for all objects that can be passed as a -listener argument.

public interface
ITestNGListenerFactory

A factory used to create instances of ITestNGListener.

public interface
ITestNGMethod

Describes a TestNG annotated method and the instance on which it will be invoked.

public interface
ITestObjectFactory

Parent interface of all the object factories.

public interface
ITestResult

This class describes the result of a test.

public interface
ITestRunnerFactory

A factory for TestRunners to be used by SuiteRunners.

public interface
ListenerComparator

Listener interface that can be used to determine listener execution order.

Class Summary

Modifier and TypeClass and Description
public class
Assert

Assertion tool class.

public class
AssertJUnit

A set of assert methods.

public class
ClassMethodMap

This class maintains a map of <Class, List<ITestNGMethod>>.

public class
public class
ConfigurationNotInvokedException

Represents an exception that is thrown when a configuration method is not invoked.

public class
ConversionUtils

Deprecated
Helper methods used by the Eclipse plug-in when converting tests from JUnit.
public class
Converter

Convert XML files to YAML and vice versa.

public class
DataProviderHolder

A holder class that is aimed at acting as a container for holding various different aspects of a data provider such as listeners/interceptors etc.,

public class
DependencyMap

Helper class to keep track of dependencies.

public class
FileAssert

Assertion tool for File centric assertions.

pack-priv class
InstanceOrderingMethodInterceptor

A method interceptor that sorts its methods per instances (i.e. per class).

pack-priv class
JarFileUtils

A Utility for extracting XmlSuite from a jar.

pack-priv class
PreserveOrderMethodInterceptor

A method interceptor that preserves the order in which test classes were found in the <test> tag.

public class
Reporter

This class is used for test methods to log messages that will be included in the HTML reports generated by TestNG.

public class
SkipException

The root exception for special skip handling.

pack-priv class
SuiteResult

This class logs the result of an entire Test Suite (defined by a property file).

pack-priv class
SuiteResultCounts

Class to help calculate result counts for tests run as part of a suite and its children suites

public class
SuiteRunner

SuiteRunner is responsible for running all the tests included in one suite.

public class
SuiteRunnerWorker

An IWorker that is used to encapsulate and run Suite Runners

public class
SuiteRunState

A state object that records the status of the suite run.

pack-priv class
pack-priv class
TestClass

This class represents a test class: - The test methods - The configuration methods (test and method) - The class file

public class
TestException

Exception thrown when an exception happens while running a test method.

public class
TestListenerAdapter

A simple ITestListener adapter that stores all the tests that were run.

public class
TestNG

This class is the main entry point for running tests in the TestNG framework.

public class
TestNGException

The base class for all exceptions thrown by TestNG.

public class
public class
TestNotInvokedException

Represents an exception that is thrown when a test method is not invoked.

public class
TestRunner

This class takes care of running one Test.

pack-priv class
public class
TimeBombSkipException

A SkipException extension that transforms a skipped method into a failed method based on a time trigger.