Package | Description |
---|---|
org.testng | |
org.testng.internal | |
org.testng.internal.invokers | |
org.testng.junit |
Modifier and Type | Interface and Description |
---|---|
interface |
IInvokedMethodListener2
Implement this interface if you need a handle to
ITestContext . |
Modifier and Type | Class and Description |
---|---|
class |
SuiteRunner
SuiteRunner is responsible for running all the tests included in one
suite. |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Class<? extends IInvokedMethodListener>,IInvokedMethodListener> |
SuiteRunner.invokedMethodListeners |
private java.util.Map<java.lang.Class<? extends IInvokedMethodListener>,IInvokedMethodListener> |
SuiteRunner.invokedMethodListeners |
private java.util.Map<java.lang.Class<? extends IInvokedMethodListener>,IInvokedMethodListener> |
TestNG.m_invokedMethodListeners |
private java.util.Map<java.lang.Class<? extends IInvokedMethodListener>,IInvokedMethodListener> |
TestNG.m_invokedMethodListeners |
private java.util.Collection<IInvokedMethodListener> |
TestRunner.m_invokedMethodListeners |
Modifier and Type | Method and Description |
---|---|
void |
TestNG.addInvokedMethodListener(IInvokedMethodListener listener)
Deprecated.
Use addListener(ITestNGListener) instead
|
void |
TestNG.addListener(IInvokedMethodListener listener)
Deprecated.
Use addListener(ITestNGListener) instead
|
Modifier and Type | Method and Description |
---|---|
private void |
TestRunner.init(IConfiguration configuration,
ISuite suite,
XmlTest test,
java.lang.String outputDirectory,
IAnnotationFinder annotationFinder,
boolean skipFailedInvocationCounts,
java.util.Collection<IInvokedMethodListener> invokedMethodListeners,
java.util.List<IClassListener> classListeners) |
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) |
TestRunner |
SuiteRunner.DefaultTestRunnerFactory.newTestRunner(ISuite suite,
XmlTest test,
java.util.Collection<IInvokedMethodListener> listeners,
java.util.List<IClassListener> classListeners) |
TestRunner |
SuiteRunner.ProxyTestRunnerFactory.newTestRunner(ISuite suite,
XmlTest test,
java.util.Collection<IInvokedMethodListener> listeners,
java.util.List<IClassListener> classListeners) |
TestRunner |
ITestRunnerFactory.newTestRunner(ISuite suite,
XmlTest test,
java.util.Collection<IInvokedMethodListener> listeners,
java.util.List<IClassListener> classListeners) |
TestRunner |
SuiteRunner.DefaultTestRunnerFactory.newTestRunner(ISuite suite,
XmlTest test,
java.util.Collection<IInvokedMethodListener> listeners,
java.util.List<IClassListener> classListeners,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners) |
TestRunner |
SuiteRunner.ProxyTestRunnerFactory.newTestRunner(ISuite suite,
XmlTest test,
java.util.Collection<IInvokedMethodListener> listeners,
java.util.List<IClassListener> classListeners,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners) |
TestRunner |
ITestRunnerFactory2.newTestRunner(ISuite suite,
XmlTest test,
java.util.Collection<IInvokedMethodListener> listeners,
java.util.List<IClassListener> classListeners,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners)
Produces a new
TestRunner |
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.
|
TestRunner(IConfiguration configuration,
ISuite suite,
XmlTest test,
boolean skipFailedInvocationCounts,
java.util.Collection<IInvokedMethodListener> invokedMethodListeners,
java.util.List<IClassListener> classListeners)
This constructor is used by testng-remote, any changes related to it please contact with testng-team.
|
TestRunner(IConfiguration configuration,
ISuite suite,
XmlTest test,
boolean skipFailedInvocationCounts,
java.util.Collection<IInvokedMethodListener> invokedMethodListeners,
java.util.List<IClassListener> classListeners,
java.util.Comparator<ITestNGMethod> comparator) |
TestRunner(IConfiguration configuration,
ISuite suite,
XmlTest test,
java.lang.String outputDirectory,
IAnnotationFinder finder,
boolean skipFailedInvocationCounts,
java.util.Collection<IInvokedMethodListener> invokedMethodListeners,
java.util.List<IClassListener> classListeners,
java.util.Comparator<ITestNGMethod> comparator,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners) |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<IInvokedMethodListener> |
Invoker.m_invokedMethodListeners |
Constructor and Description |
---|
Invoker(IConfiguration configuration,
ITestContext testContext,
ITestResultNotifier notifier,
SuiteRunState state,
boolean skipFailedInvocationCounts,
java.util.Collection<IInvokedMethodListener> invokedMethodListeners,
java.util.List<IClassListener> classListeners,
java.util.Collection<IDataProviderListener> dataProviderListeners) |
Modifier and Type | Interface and Description |
---|---|
private static interface |
InvokedMethodListenerInvoker.InvocationStrategy<LISTENER_TYPE extends IInvokedMethodListener> |
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<? extends IInvokedMethodListener> |
InvokedMethodListenerSubtype.m_matchingInterface |
Modifier and Type | Method and Description |
---|---|
void |
InvokedMethodListenerInvoker.InvokeBeforeInvocationWithoutContextStrategy.callMethod(IInvokedMethodListener listener,
IInvokedMethod invokedMethod,
ITestResult testResult,
ITestContext testContext) |
void |
InvokedMethodListenerInvoker.InvokeAfterInvocationWithoutContextStrategy.callMethod(IInvokedMethodListener listener,
IInvokedMethod invokedMethod,
ITestResult testResult,
ITestContext testContext) |
static InvokedMethodListenerSubtype |
InvokedMethodListenerSubtype.fromListener(IInvokedMethodListener listenerInstance) |
void |
InvokedMethodListenerInvoker.invokeListener(IInvokedMethodListener listenerInstance,
IInvokedMethod invokedMethod)
Invoke the given
listenerInstance , calling the method specified in the constructor of
this InvokedMethodListenerInvoker . |
private boolean |
InvokedMethodListenerSubtype.isInstance(IInvokedMethodListener listenerInstance) |
private InvokedMethodListenerInvoker.InvocationStrategy |
InvokedMethodListenerInvoker.obtainStrategyFor(IInvokedMethodListener listenerInstance,
InvokedMethodListenerMethod listenerMethod) |
Constructor and Description |
---|
InvokedMethodListenerSubtype(java.lang.Class<? extends IInvokedMethodListener> listenerClass) |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<IInvokedMethodListener> |
JUnitTestRunner.m_invokedMethodListeners |
private java.util.Collection<IInvokedMethodListener> |
JUnit4TestRunner.m_invokeListeners |
Modifier and Type | Method and Description |
---|---|
void |
IJUnitTestRunner.setInvokedMethodListeners(java.util.Collection<IInvokedMethodListener> listener) |
void |
JUnit4TestRunner.setInvokedMethodListeners(java.util.Collection<IInvokedMethodListener> listeners) |
void |
JUnitTestRunner.setInvokedMethodListeners(java.util.Collection<IInvokedMethodListener> listeners) |