Package | Description |
---|---|
org.testng | |
org.testng.internal | |
org.testng.internal.invokers | |
org.testng.internal.reflect | |
org.testng.reporters |
Modifier and Type | Class and Description |
---|---|
class |
TestRunner
This class takes care of running one Test.
|
Modifier and Type | Field and Description |
---|---|
private ITestContext |
GuiceHelper.context |
private ITestContext |
SuiteResult.m_testContext |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<ITestContext> |
TestListenerAdapter.m_testContexts |
Modifier and Type | Method and Description |
---|---|
ITestContext |
ITestResult.getTestContext() |
ITestContext |
ISuiteResult.getTestContext() |
ITestContext |
SuiteResult.getTestContext() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ITestContext> |
TestListenerAdapter.getTestContexts() |
Modifier and Type | Method and Description |
---|---|
void |
IDataProviderListener.afterDataProviderExecution(IDataProviderMethod dataProviderMethod,
ITestNGMethod method,
ITestContext iTestContext)
This method gets invoked just after a data provider is invoked.
|
void |
IInvokedMethodListener2.afterInvocation(IInvokedMethod method,
ITestResult testResult,
ITestContext context)
To be implemented if the method needs a handle to contextual information.
|
void |
IDataProviderListener.beforeDataProviderExecution(IDataProviderMethod dataProviderMethod,
ITestNGMethod method,
ITestContext iTestContext)
This method gets invoked just before a data provider is invoked.
|
void |
IInvokedMethodListener2.beforeInvocation(IInvokedMethod method,
ITestResult testResult,
ITestContext context)
To be implemented if the method needs a handle to contextual information.
|
com.google.inject.Module |
IModuleFactory.createModule(ITestContext context,
java.lang.Class<?> testClass) |
java.util.List<IMethodInstance> |
IMethodInterceptor.intercept(java.util.List<IMethodInstance> methods,
ITestContext context) |
java.util.List<IMethodInstance> |
PreserveOrderMethodInterceptor.intercept(java.util.List<IMethodInstance> methods,
ITestContext context) |
java.util.List<IMethodInstance> |
InstanceOrderingMethodInterceptor.intercept(java.util.List<IMethodInstance> methods,
ITestContext context) |
void |
TestListenerAdapter.onFinish(ITestContext testContext) |
void |
TestNG.ExitCodeListener.onFinish(ITestContext context)
Deprecated.
|
void |
ITestListener.onFinish(ITestContext context)
Invoked after all the tests have run and all their
Configuration methods have been called.
|
void |
TestListenerAdapter.onStart(ITestContext testContext) |
void |
TestNG.ExitCodeListener.onStart(ITestContext context)
Deprecated.
|
void |
ITestListener.onStart(ITestContext context)
Invoked after the test class is instantiated and before
any configuration method is called.
|
Constructor and Description |
---|
GuiceHelper(ITestContext context) |
SuiteResult(XmlSuite suite,
ITestContext tr) |
Modifier and Type | Field and Description |
---|---|
private ITestContext |
Parameters.MethodParameters.context |
private ITestContext |
TestResult.m_context |
private ITestContext |
TestNGClassFinder.m_testContext |
private ITestContext |
FactoryMethod.m_testContext |
private ITestContext |
TestMethodWorker.m_testContext |
private ITestContext |
Invoker.m_testContext |
private ITestContext |
TestMethodWithDataProviderMethodWorker.m_testContext |
private ITestContext |
ClassImpl.m_testContext |
private ITestContext |
AbstractParallelWorker.Arguments.testContext |
Modifier and Type | Method and Description |
---|---|
ITestContext |
AbstractParallelWorker.Arguments.getTestContext() |
ITestContext |
TestResult.getTestContext() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
ExitCode.computeAndUpdate(ITestContext context) |
static java.lang.Object[] |
Parameters.createConfigurationParameters(java.lang.reflect.Method m,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.Object[] parameterValues,
ITestNGMethod currentTestMethod,
IAnnotationFinder finder,
XmlSuite xmlSuite,
ITestContext ctx,
ITestResult testResult)
Creates the parameters needed for the specified @Configuration
Method . |
(package private) ParameterHandler.ParameterBag |
ParameterHandler.createParameters(ITestNGMethod testMethod,
java.util.Map<java.lang.String,java.lang.String> parameters,
java.util.Map<java.lang.String,java.lang.String> allParameterNames,
ITestContext testContext) |
(package private) ParameterHandler.ParameterBag |
ParameterHandler.createParameters(ITestNGMethod testMethod,
java.util.Map<java.lang.String,java.lang.String> parameters,
java.util.Map<java.lang.String,java.lang.String> allParameterNames,
ITestContext testContext,
java.lang.Object fedInstance) |
private static boolean |
TestNGClassFinder.excludeFactory(FactoryMethod fm,
ITestContext ctx) |
private static IDataProviderMethod |
Parameters.findDataProvider(java.lang.Object instance,
ITestClass clazz,
ConstructorOrMethod m,
IAnnotationFinder finder,
ITestContext context) |
private static IDataProviderMethod |
Parameters.findDataProvider(java.lang.Object instance,
ITestClass clazz,
IAnnotationFinder finder,
java.lang.String name,
java.lang.Class<?> dataProviderClass,
ITestContext context)
Find a method that has a @DataProvider(name=name)
|
protected IClass |
BaseClassFinder.findOrCreateIClass(ITestContext context,
java.lang.Class<?> cls,
XmlClass xmlClass,
java.lang.Object instance,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
protected IClass |
BaseClassFinder.findOrCreateIClass(ITestContext context,
java.lang.Class<?> cls,
XmlClass xmlClass,
java.lang.Object instance,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory)
Deprecated.
- This method stands deprecated as of TestNG v6.13
|
private static java.lang.Throwable |
ExceptionUtils.getConfigFailureException(ITestContext context) |
(package private) static java.lang.Throwable |
ExceptionUtils.getExceptionDetails(ITestContext context,
java.lang.Object instance) |
static java.lang.Object |
Parameters.getInjectedParameter(java.lang.Class<?> c,
java.lang.reflect.Method method,
ITestContext context,
ITestResult testResult)
Deprecated.
- This method stands deprecated as of TestNG v6.11. There are no alternatives.
|
private static java.util.List<java.lang.Object> |
MethodInvocationHelper.getParameters(java.lang.reflect.Method dataProvider,
ITestNGMethod method,
ITestContext testContext,
java.lang.Object fedInstance,
IAnnotationFinder annotationFinder) |
private ParameterHandler.ParameterBag |
ParameterHandler.handleParameters(ITestNGMethod testMethod,
java.lang.Object instance,
java.util.Map<java.lang.String,java.lang.String> allParameterNames,
java.util.Map<java.lang.String,java.lang.String> parameters,
ITestContext testContext,
java.lang.Object fedInstance) |
void |
TestResult.init(IClass testClass,
java.lang.Object instance,
ITestNGMethod method,
java.lang.Throwable throwable,
long start,
long end,
ITestContext context) |
static java.lang.Object[] |
Parameters.injectParameters(java.lang.Object[] parameterValues,
java.lang.reflect.Method method,
ITestContext context)
Gets an array of parameter values returned by data provider or the ones that
are injected based on parameter type.
|
protected static java.util.Iterator<java.lang.Object[]> |
MethodInvocationHelper.invokeDataProvider(java.lang.Object instance,
java.lang.reflect.Method dataProvider,
ITestNGMethod method,
ITestContext testContext,
java.lang.Object fedInstance,
IAnnotationFinder annotationFinder) |
private java.util.List<ITestResult> |
Invoker.invokePooledTestMethods(ITestNGMethod testMethod,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters,
ConfigurationGroupMethods groupMethods,
ITestContext testContext)
Invokes a method that has a specified threadPoolSize.
|
protected void |
TestMethodWorker.invokeTestMethods(ITestNGMethod tm,
java.lang.Object instance,
ITestContext testContext) |
java.util.List<ITestResult> |
IInvoker.invokeTestMethods(ITestNGMethod testMethod,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters,
ConfigurationGroupMethods groupMethods,
java.lang.Object instance,
ITestContext testContext)
Invoke the given method
|
java.util.List<ITestResult> |
Invoker.invokeTestMethods(ITestNGMethod testMethod,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> testParameters,
ConfigurationGroupMethods groupMethods,
java.lang.Object instance,
ITestContext testContext)
Invoke all the test methods.
|
static Parameters.MethodParameters |
Parameters.MethodParameters.newInstance(java.util.Map<java.lang.String,java.lang.String> params,
ITestNGMethod testNGMethod,
ITestContext context) |
void |
ExitCodeListener.onFinish(ITestContext context) |
void |
ExitCodeListener.onStart(ITestContext context) |
(package private) int |
Invoker.retryFailed(java.lang.Object instance,
ITestNGMethod tm,
XmlSuite suite,
ITestClass testClass,
ITestNGMethod[] beforeMethods,
ITestNGMethod[] afterMethods,
ConfigurationGroupMethods groupMethods,
java.util.List<ITestResult> result,
int failureCount,
ITestContext testContext,
java.util.Map<java.lang.String,java.lang.String> parameters,
int parametersIndex) |
void |
TestResult.setContext(ITestContext context) |
AbstractParallelWorker.Arguments.Builder |
AbstractParallelWorker.Arguments.Builder.testContext(ITestContext testContext) |
Constructor and Description |
---|
ClassImpl(ITestContext context,
java.lang.Class<?> cls,
XmlClass xmlClass,
java.lang.Object instance,
java.util.Map<java.lang.Class<?>,IClass> classes,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
ClassImpl(ITestContext context,
java.lang.Class<?> cls,
XmlClass xmlClass,
java.lang.Object instance,
java.util.Map<java.lang.Class<?>,IClass> classes,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory)
Deprecated.
- This constructor is un-used within TestNG and hence stands deprecated as of TestNG v6.13
|
FactoryMethod(ConstructorOrMethod com,
java.lang.Object instance,
IAnnotationFinder annotationFinder,
ITestContext testContext,
ITestObjectFactory objectFactory,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners) |
FactoryMethod(ConstructorOrMethod com,
java.lang.Object instance,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestContext testContext,
ITestObjectFactory objectFactory)
Deprecated.
- This constructor is un-used within TestNG and hence stands deprecated as of TestNG v6.13
|
FactoryMethod(ConstructorOrMethod com,
java.lang.Object instance,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestContext testContext,
ITestObjectFactory objectFactory,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners)
Deprecated.
- This constructor is un-used within TestNG and hence stands deprecated as of TestNG v6.13
|
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) |
MethodParameters(java.util.Map<java.lang.String,java.lang.String> params,
java.util.Map<java.lang.String,java.lang.String> methodParams,
java.lang.Object[] pv,
java.lang.reflect.Method m,
ITestContext ctx,
ITestResult tr) |
SingleTestMethodWorker(IInvoker invoker,
IMethodInstance testMethod,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters,
ITestContext testContext,
java.util.List<IClassListener> listeners) |
TestMethodWithDataProviderMethodWorker(Invoker invoker,
ITestNGMethod testMethod,
int parameterIndex,
java.lang.Object[] parameterValues,
java.lang.Object instance,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters,
ITestClass testClass,
ITestNGMethod[] beforeMethods,
ITestNGMethod[] afterMethods,
ConfigurationGroupMethods groupMethods,
ExpectedExceptionsHolder expectedExceptionHolder,
ITestContext testContext,
boolean skipFailedInvocationCounts,
int invocationCount,
int failureCount,
ITestResultNotifier notifier) |
TestMethodWorker(IInvoker invoker,
java.util.List<IMethodInstance> testMethods,
XmlSuite suite,
java.util.Map<java.lang.String,java.lang.String> parameters,
ConfigurationGroupMethods groupMethods,
ClassMethodMap classMethodMap,
ITestContext testContext,
java.util.List<IClassListener> listeners) |
TestNGClassFinder(ClassInfoMap cim,
java.util.Map<java.lang.Class<?>,java.util.List<java.lang.Object>> instanceMap,
IConfiguration configuration,
ITestContext testContext,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners) |
TestNGClassFinder(ClassInfoMap cim,
java.util.Map<java.lang.Class<?>,java.util.List<java.lang.Object>> instanceMap,
XmlTest xmlTest,
IConfiguration configuration,
ITestContext testContext)
Deprecated.
- This constructor is un-used within TestNG and hence stands deprecated as of TestNG v6.13
|
TestNGClassFinder(ClassInfoMap cim,
java.util.Map<java.lang.Class<?>,java.util.List<java.lang.Object>> instanceMap,
XmlTest xmlTest,
IConfiguration configuration,
ITestContext testContext,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners)
Deprecated.
- This constructor is un-used within TestNG and hence stands deprecated as of TestNG v6.13
|
TestNGClassFinder(ClassInfoMap cim,
XmlTest xmlTest,
IConfiguration configuration,
ITestContext testContext)
Deprecated.
- This constructor is un-used within TestNG and hence stands deprecated as of TestNG v6.13
|
TestNGClassFinder(ClassInfoMap cim,
XmlTest xmlTest,
IConfiguration configuration,
ITestContext testContext,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners)
Deprecated.
- This constructor is un-used within TestNG and hence stands deprecated as of TestNG v6.13
|
TestResult(IClass testClass,
java.lang.Object instance,
ITestNGMethod method,
java.lang.Throwable throwable,
long start,
long end,
ITestContext context) |
TestResult(java.lang.Object instance,
ITestNGMethod method,
java.lang.Throwable throwable,
ITestContext context) |
Modifier and Type | Field and Description |
---|---|
private ITestContext |
InvokedMethodListenerInvoker.m_testContext |
Modifier and Type | Method and Description |
---|---|
void |
InvokedMethodListenerInvoker.InvokeBeforeInvocationWithContextStrategy.callMethod(IInvokedMethodListener2 listener,
IInvokedMethod invokedMethod,
ITestResult testResult,
ITestContext testContext) |
void |
InvokedMethodListenerInvoker.InvokeAfterInvocationWithContextStrategy.callMethod(IInvokedMethodListener2 listener,
IInvokedMethod invokedMethod,
ITestResult testResult,
ITestContext testContext) |
void |
InvokedMethodListenerInvoker.InvokeBeforeInvocationWithoutContextStrategy.callMethod(IInvokedMethodListener listener,
IInvokedMethod invokedMethod,
ITestResult testResult,
ITestContext testContext) |
void |
InvokedMethodListenerInvoker.InvokeAfterInvocationWithoutContextStrategy.callMethod(IInvokedMethodListener listener,
IInvokedMethod invokedMethod,
ITestResult testResult,
ITestContext testContext) |
void |
InvokedMethodListenerInvoker.InvocationStrategy.callMethod(LISTENER_TYPE listener,
IInvokedMethod invokedMethod,
ITestResult testResult,
ITestContext testContext) |
Constructor and Description |
---|
InvokedMethodListenerInvoker(InvokedMethodListenerMethod listenerMethod,
ITestResult testResult,
ITestContext testContext)
Creates a new invoker instance which can be used to call the specified
listenerMethod
on any number of IInvokedMethodListener s. |
Modifier and Type | Field and Description |
---|---|
private ITestContext |
MethodMatcherContext.testContext |
Modifier and Type | Method and Description |
---|---|
ITestContext |
MethodMatcherContext.getTestContext() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object[] |
ReflectionRecipes.inject(Parameter[] parameters,
java.util.Set<InjectableParameter> filters,
java.lang.Object[] args,
java.lang.reflect.Constructor constructor,
ITestContext context,
ITestResult testResult)
Injects appropriate arguments.
|
static java.lang.Object[] |
ReflectionRecipes.inject(Parameter[] parameters,
java.util.Set<InjectableParameter> filters,
java.lang.Object[] args,
java.lang.reflect.Method injectionMethod,
ITestContext context,
ITestResult testResult)
Injects appropriate arguments.
|
private static java.lang.Object[] |
ReflectionRecipes.nativelyInject(Parameter[] parameters,
java.util.Set<InjectableParameter> filters,
java.lang.Object[] args,
java.lang.Object injectionMethod,
ITestContext context,
ITestResult testResult) |
Constructor and Description |
---|
MethodMatcherContext(java.lang.reflect.Method method,
java.lang.Object[] arguments,
ITestContext testContext,
ITestResult testResult)
Constructs a context for MethodMatchers.
|
Modifier and Type | Field and Description |
---|---|
private ITestContext |
TestHTMLReporter.m_testContext |
Modifier and Type | Method and Description |
---|---|
private void |
JUnitXMLReporter.createElementFromIgnoredTests(XMLStringBuffer doc,
ITestContext context) |
private void |
FailedReporter.createXmlTest(ITestContext context,
java.util.List<ITestNGMethod> methods,
XmlTest srcXmlTest)
Generate testng-failed.xml
|
private java.lang.String |
JUnitXMLReporter.generateFileName(ITestContext context)
This method guarantees unique file names for reports.
Also, this will guarantee that the old reports are overwritten when tests are run again. |
static void |
TestHTMLReporter.generateLog(ITestContext testContext,
java.lang.String host,
java.lang.String outputDirectory,
java.util.Collection<ITestResult> failedConfs,
java.util.Collection<ITestResult> skippedConfs,
java.util.Collection<ITestResult> passedTests,
java.util.Collection<ITestResult> failedTests,
java.util.Collection<ITestResult> skippedTests,
java.util.Collection<ITestResult> percentageTests) |
private void |
JqReporter.generateMethod(java.lang.String tagClass,
ITestResult tr,
ITestContext context,
XMLStringBuffer xsb)
Deprecated.
|
protected void |
JUnitXMLReporter.generateReport(ITestContext context)
generate the XML report given what we know from all the test results
|
private void |
JqReporter.generateTests(java.lang.String tagClass,
IResultMap tests,
ITestContext context,
XMLStringBuffer xsb)
Deprecated.
|
private void |
FailedReporter.generateXmlTest(XmlTest xmlTest,
ITestContext context,
java.util.Set<ITestResult> failedTests,
java.util.Set<ITestResult> skippedTests) |
private static java.lang.String |
TestHTMLReporter.getOutputFile(ITestContext context) |
private java.util.Set<java.lang.String> |
JUnitXMLReporter.getPackages(ITestContext context) |
void |
JUnitXMLReporter.onFinish(ITestContext context)
Invoked after all the tests have run and all their
Configuration methods have been called.
|
void |
VerboseReporter.onFinish(ITestContext context) |
void |
TextReporter.onFinish(ITestContext context) |
void |
TestHTMLReporter.onFinish(ITestContext context) |
void |
JUnitXMLReporter.onStart(ITestContext context)
Invoked after the test class is instantiated and before
any configuration method is called.
|
void |
VerboseReporter.onStart(ITestContext ctx) |
void |
TestHTMLReporter.onStart(ITestContext context) |
Constructor and Description |
---|
TestResult(ITestContext context) |