Uses of Interface
org.testng.ITestContext
-
Packages that use ITestContext Package Description org.testng org.testng.internal org.testng.internal.invokers org.testng.internal.reflect org.testng.reporters org.testng.reporters.jq -
-
Uses of ITestContext in org.testng
Classes in org.testng that implement ITestContext Modifier and Type Class Description class
TestRunner
This class takes care of running one Test.Fields in org.testng declared as ITestContext Modifier and Type Field Description private ITestContext
GuiceHelper. context
private ITestContext
SuiteResult. m_testContext
Fields in org.testng with type parameters of type ITestContext Modifier and Type Field Description private java.util.Collection<ITestContext>
TestListenerAdapter. m_testContexts
Methods in org.testng that return ITestContext Modifier and Type Method Description ITestContext
ISuiteResult. getTestContext()
ITestContext
ITestResult. getTestContext()
ITestContext
SuiteResult. getTestContext()
Methods in org.testng that return types with arguments of type ITestContext Modifier and Type Method Description java.util.List<ITestContext>
TestListenerAdapter. getTestContexts()
Methods in org.testng with parameters of type ITestContext Modifier and Type Method Description default void
IDataProviderListener. afterDataProviderExecution(IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext)
This method gets invoked just after a data provider is invoked.default void
IInvokedMethodListener. afterInvocation(IInvokedMethod method, ITestResult testResult, ITestContext context)
To be implemented if the method needs a handle to contextual information.default void
IDataProviderListener. beforeDataProviderExecution(IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext)
This method gets invoked just before a data provider is invoked.default void
IInvokedMethodListener. beforeInvocation(IInvokedMethod method, ITestResult testResult, ITestContext context)
To be implemented if the method needs a handle to contextual information.static com.google.inject.Injector
GuiceHelper. createInjector(ITestContext context, java.util.List<com.google.inject.Module> moduleInstances)
Deprecated.- This method stands deprecated as of 7.0.1static com.google.inject.Injector
GuiceHelper. createInjector(ITestContext context, IInjectorFactory injectorFactory, java.util.List<com.google.inject.Module> moduleInstances)
com.google.inject.Module
IModuleFactory. createModule(ITestContext context, java.lang.Class<?> testClass)
private static com.google.inject.Module
GuiceHelper. getParentModule(ITestContext context)
java.util.Iterator<java.lang.Object[]>
IDataProviderInterceptor. intercept(java.util.Iterator<java.lang.Object[]> original, IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext)
java.util.List<IMethodInstance>
IMethodInterceptor. intercept(java.util.List<IMethodInstance> methods, ITestContext context)
java.util.List<IMethodInstance>
InstanceOrderingMethodInterceptor. intercept(java.util.List<IMethodInstance> methods, ITestContext context)
java.util.List<IMethodInstance>
PreserveOrderMethodInterceptor. intercept(java.util.List<IMethodInstance> methods, ITestContext context)
default void
ITestListener. onFinish(ITestContext context)
Invoked after all the test methods belonging to the classes inside the <test> tag have run and all their Configuration methods have been called.void
TestListenerAdapter. onFinish(ITestContext testContext)
default void
ITestListener. onStart(ITestContext context)
Invoked before running all the test methods belonging to the classes inside the <test> tag and calling all their Configuration methods.void
TestListenerAdapter. onStart(ITestContext testContext)
private static java.util.Map<java.lang.String,java.lang.Integer>
SuiteResultCounts. seggregateSkippedTests(ITestContext context)
Constructors in org.testng with parameters of type ITestContext Constructor Description GuiceHelper(ITestContext context)
SuiteResult(XmlSuite suite, ITestContext tr)
-
Uses of ITestContext in org.testng.internal
Fields in org.testng.internal declared as ITestContext Modifier and Type Field Description private ITestContext
Parameters.MethodParameters. context
private ITestContext
TestInvoker.MethodInvocationAgent. context
private ITestContext
TestResult. m_context
protected ITestContext
BaseInvoker. m_testContext
private ITestContext
ClassImpl. m_testContext
private ITestContext
FactoryMethod. m_testContext
private ITestContext
TestMethodWithDataProviderMethodWorker. m_testContext
private ITestContext
TestMethodWorker. m_testContext
private ITestContext
TestNGClassFinder. m_testContext
private ITestContext
AbstractParallelWorker.Arguments. testContext
Methods in org.testng.internal that return ITestContext Modifier and Type Method Description ITestContext
AbstractParallelWorker.Arguments. getTestContext()
ITestContext
TestResult. getTestContext()
Methods in org.testng.internal with parameters of type ITestContext Modifier and Type Method 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, IAnnotationFinder finder, java.lang.String name, java.lang.Class<?> dataProviderClass, ITestContext context)
Find a method that has a @DataProvider(name=name)private static IDataProviderMethod
Parameters. findDataProvider(java.lang.Object instance, ITestClass clazz, ConstructorOrMethod m, IAnnotationFinder finder, ITestContext context)
protected IClass
BaseClassFinder. findOrCreateIClass(ITestContext context, java.lang.Class<?> cls, XmlClass xmlClass, java.lang.Object instance, IAnnotationFinder annotationFinder, ITestObjectFactory objectFactory)
private static java.lang.Throwable
ExceptionUtils. getConfigFailureException(ITestContext context)
(package private) static java.lang.Throwable
ExceptionUtils. getExceptionDetails(ITestContext context, java.lang.Object instance)
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)
private void
TestResult. init(ITestNGMethod method, ITestContext ctx, java.lang.Throwable t, long start, long end)
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>
TestInvoker. 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.java.util.List<ITestResult>
ITestInvoker. invokeTestMethods(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, java.lang.Object instance, ITestContext context)
java.util.List<ITestResult>
TestInvoker. invokeTestMethods(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, java.lang.Object instance, ITestContext context)
static TestResult
TestResult. newContextAwareTestResult(ITestNGMethod method, ITestContext ctx)
static TestResult
TestResult. newEndTimeAwareTestResult(ITestNGMethod method, ITestContext ctx, java.lang.Throwable t, long start)
static Parameters.MethodParameters
Parameters.MethodParameters. newInstance(java.util.Map<java.lang.String,java.lang.String> params, ITestNGMethod testNGMethod, ITestContext context)
static TestResult
TestResult. newTestResultFrom(TestResult result, ITestNGMethod method, ITestContext ctx, long start)
static TestResult
TestResult. newTestResultWithCauseAs(ITestNGMethod method, ITestContext ctx, java.lang.Throwable t)
void
ExitCodeListener. onFinish(ITestContext context)
void
ExitCodeListener. onStart(ITestContext context)
ITestInvoker.FailureContext
ITestInvoker. retryFailed(TestMethodArguments arguments, java.util.List<ITestResult> result, int failureCount, ITestContext testContext)
ITestInvoker.FailureContext
TestInvoker. retryFailed(TestMethodArguments arguments, java.util.List<ITestResult> result, int failureCount, ITestContext testContext)
java.util.List<ITestResult>
IMethodRunner. runInParallel(TestMethodArguments arguments, ITestInvoker testInvoker, ITestContext context, java.util.concurrent.atomic.AtomicInteger invocationCount, ITestInvoker.FailureContext failure, java.util.Iterator<java.lang.Object[]> allParameterValues, boolean skipFailedInvocationCounts)
java.util.List<ITestResult>
MethodRunner. runInParallel(TestMethodArguments arguments, ITestInvoker testInvoker, ITestContext context, java.util.concurrent.atomic.AtomicInteger invocationCount, ITestInvoker.FailureContext failure, java.util.Iterator<java.lang.Object[]> allParamValues, boolean skipFailedInvocationCounts)
java.util.List<ITestResult>
IMethodRunner. runInSequence(TestMethodArguments arguments, ITestInvoker testInvoker, ITestContext context, java.util.concurrent.atomic.AtomicInteger invocationCount, ITestInvoker.FailureContext failure, java.util.Iterator<java.lang.Object[]> allParameterValues, boolean skipFailedInvocationCounts)
java.util.List<ITestResult>
MethodRunner. runInSequence(TestMethodArguments arguments, ITestInvoker testInvoker, ITestContext context, java.util.concurrent.atomic.AtomicInteger invocationCount, ITestInvoker.FailureContext failure, java.util.Iterator<java.lang.Object[]> allParamValues, boolean skipFailedInvocationCounts)
void
TestResult. setContext(ITestContext context)
AbstractParallelWorker.Arguments.Builder
AbstractParallelWorker.Arguments.Builder. testContext(ITestContext testContext)
Constructors in org.testng.internal with parameters of type ITestContext Constructor Description BaseInvoker(ITestResultNotifier notifier, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, ITestContext testContext, SuiteRunState suiteState, IConfiguration configuration)
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)
ConfigInvoker(ITestResultNotifier notifier, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, ITestContext testContext, SuiteRunState suiteState, IConfiguration configuration)
FactoryMethod(ConstructorOrMethod com, java.lang.Object instance, IAnnotationFinder annotationFinder, ITestContext testContext, ITestObjectFactory objectFactory, DataProviderHolder holder)
Invoker(IConfiguration configuration, ITestContext testContext, ITestResultNotifier notifier, SuiteRunState state, boolean skipFailedInvocationCounts, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.List<IClassListener> classListeners, DataProviderHolder holder)
MethodInvocationAgent(TestMethodArguments arguments, ITestInvoker invoker, ITestContext context)
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(TestInvoker testInvoker, ConfigInvoker configInvoker, IMethodInstance testMethod, java.util.Map<java.lang.String,java.lang.String> parameters, ITestContext testContext, java.util.List<IClassListener> listeners)
TestInvoker(ITestResultNotifier m_notifier, ITestContext m_testContext, SuiteRunState m_suiteState, IConfiguration m_configuration, java.util.Collection<IInvokedMethodListener> m_invokedMethodListeners, DataProviderHolder holder, java.util.List<IClassListener> m_classListeners, boolean m_skipFailedInvocationCounts, ConfigInvoker invoker)
TestMethodWithDataProviderMethodWorker(ITestInvoker testInvoker, ITestNGMethod testMethod, int parameterIndex, java.lang.Object[] parameterValues, java.lang.Object instance, java.util.Map<java.lang.String,java.lang.String> parameters, ITestClass testClass, ITestNGMethod[] beforeMethods, ITestNGMethod[] afterMethods, ConfigurationGroupMethods groupMethods, ITestContext testContext, boolean skipFailedInvocationCounts, int invocationCount, int failureCount, ITestResultNotifier notifier)
TestMethodWorker(ITestInvoker testInvoker, IConfigInvoker configInvoker, java.util.List<IMethodInstance> testMethods, 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, DataProviderHolder holder)
-
Uses of ITestContext in org.testng.internal.invokers
Fields in org.testng.internal.invokers declared as ITestContext Modifier and Type Field Description private ITestContext
InvokedMethodListenerInvoker. m_testContext
Constructors in org.testng.internal.invokers with parameters of type ITestContext Constructor Description InvokedMethodListenerInvoker(InvokedMethodListenerMethod listenerMethod, ITestResult testResult, ITestContext testContext)
Creates a new invoker instance which can be used to call the specifiedlistenerMethod
on any number ofIInvokedMethodListener
s. -
Uses of ITestContext in org.testng.internal.reflect
Fields in org.testng.internal.reflect declared as ITestContext Modifier and Type Field Description private ITestContext
MethodMatcherContext. testContext
Methods in org.testng.internal.reflect that return ITestContext Modifier and Type Method Description ITestContext
MethodMatcherContext. getTestContext()
Methods in org.testng.internal.reflect with parameters of type ITestContext Modifier and Type Method 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)
Constructors in org.testng.internal.reflect with parameters of type ITestContext Constructor Description MethodMatcherContext(java.lang.reflect.Method method, java.lang.Object[] arguments, ITestContext testContext, ITestResult testResult)
Constructs a context for MethodMatchers. -
Uses of ITestContext in org.testng.reporters
Fields in org.testng.reporters declared as ITestContext Modifier and Type Field Description private ITestContext
TestHTMLReporter. m_testContext
Methods in org.testng.reporters with parameters of type ITestContext Modifier and Type Method 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.xmlprivate 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)
protected void
JUnitXMLReporter. generateReport(ITestContext context)
generate the XML report given what we know from all the test resultsprivate 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
ExitCodeListener. onFinish(ITestContext context)
void
JUnitXMLReporter. onFinish(ITestContext context)
Invoked after all the tests have run and all their Configuration methods have been called.void
TestHTMLReporter. onFinish(ITestContext context)
void
TextReporter. onFinish(ITestContext context)
void
VerboseReporter. onFinish(ITestContext context)
void
ExitCodeListener. onStart(ITestContext context)
void
JUnitXMLReporter. onStart(ITestContext context)
Invoked after the test class is instantiated and before any configuration method is called.void
TestHTMLReporter. onStart(ITestContext context)
void
VerboseReporter. onStart(ITestContext ctx)
Constructors in org.testng.reporters with parameters of type ITestContext Constructor Description TestResult(ITestContext context)
-
Uses of ITestContext in org.testng.reporters.jq
Methods in org.testng.reporters.jq with parameters of type ITestContext Modifier and Type Method Description private static java.lang.Long
TimesPanel. time(ITestContext ctx)
-