Uses of Interface
org.testng.ITestContext
Packages that use ITestContext
Package
Description
-
Uses of ITestContext in org.testng
Classes in org.testng that implement ITestContextMethods in org.testng that return ITestContextMethods in org.testng that return types with arguments of type ITestContextMethods in org.testng with parameters of type ITestContextModifier and TypeMethodDescriptiondefault 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
(com.google.inject.Injector parent, ITestContext context, IInjectorFactory injectorFactory, List<com.google.inject.Module> moduleInstances) Deprecated.com.google.inject.Module
IModuleFactory.createModule
(ITestContext context, Class<?> testClass) static com.google.inject.Module
GuiceHelper.getParentModule
(ITestContext context) Deprecated.IDataProviderInterceptor.intercept
(Iterator<Object[]> original, IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext) IMethodInterceptor.intercept
(List<IMethodInstance> methods, ITestContext context) default void
IDataProviderListener.onDataProviderFailure
(ITestNGMethod method, ITestContext ctx, RuntimeException t) This method gets invoked when the data provider encounters an exceptiondefault 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) -
Uses of ITestContext in org.testng.internal
Methods in org.testng.internal that return ITestContextModifier and TypeMethodDescriptionAbstractParallelWorker.Arguments.getTestContext()
TestResult.getTestContext()
Methods in org.testng.internal with parameters of type ITestContextModifier and TypeMethodDescriptionstatic Object[]
Parameters.createConfigurationParameters
(Method m, Map<String, String> params, Object[] parameterValues, ITestNGMethod currentTestMethod, IAnnotationFinder finder, XmlSuite xmlSuite, ITestContext ctx, ITestResult testResult) Creates the parameters needed for the specified@Configuration
Method
.protected IClass
BaseClassFinder.findOrCreateIClass
(ITestContext context, Class<?> cls, XmlClass xmlClass, Object instance, IAnnotationFinder annotationFinder, ITestObjectFactory objectFactory) static Object[]
Parameters.injectParameters
(Object[] parameterValues, Method method, ITestContext context) Gets an array of parameter values returned by data provider or the ones that are injected based on parameter type.MethodInvocationHelper.invokeDataProvider
(Object instance, Method dataProvider, ITestNGMethod method, ITestContext testContext, Object fedInstance, IAnnotationFinder annotationFinder) ITestInvoker.invokeTestMethods
(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, Object instance, ITestContext context) static TestResult
TestResult.newContextAwareTestResult
(ITestNGMethod method, ITestContext ctx) static TestResult
TestResult.newEndTimeAwareTestResult
(ITestNGMethod method, ITestContext ctx, Throwable t, long start) static Parameters.MethodParameters
Parameters.MethodParameters.newInstance
(Map<String, 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, Throwable t) void
ExitCodeListener.onFinish
(ITestContext context) void
ExitCodeListener.onStart
(ITestContext context) ITestInvoker.retryFailed
(TestMethodArguments arguments, List<ITestResult> result, int failureCount, ITestContext testContext) IMethodRunner.runInParallel
(TestMethodArguments arguments, ITestInvoker testInvoker, ITestContext context, AtomicInteger invocationCount, ITestInvoker.FailureContext failure, Iterator<Object[]> allParameterValues, boolean skipFailedInvocationCounts) IMethodRunner.runInSequence
(TestMethodArguments arguments, ITestInvoker testInvoker, ITestContext context, AtomicInteger invocationCount, ITestInvoker.FailureContext failure, Iterator<Object[]> allParameterValues, boolean skipFailedInvocationCounts) void
TestResult.setContext
(ITestContext context) AbstractParallelWorker.Arguments.Builder.testContext
(ITestContext testContext) Constructors in org.testng.internal with parameters of type ITestContextModifierConstructorDescriptionClassImpl
(ITestContext context, Class<?> cls, XmlClass xmlClass, Object instance, Map<Class<?>, IClass> classes, IAnnotationFinder annotationFinder, ITestObjectFactory objectFactory) Invoker
(IConfiguration configuration, ITestContext testContext, ITestResultNotifier notifier, SuiteRunState state, boolean skipFailedInvocationCounts, Collection<IInvokedMethodListener> invokedMethodListeners, List<IClassListener> classListeners, DataProviderHolder holder) MethodParameters
(Map<String, String> params, Map<String, String> methodParams, Object[] pv, Method m, ITestContext ctx, ITestResult tr) TestMethodWithDataProviderMethodWorker
(ITestInvoker testInvoker, ITestNGMethod testMethod, int parameterIndex, Object[] parameterValues, Object instance, Map<String, 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, List<IMethodInstance> testMethods, Map<String, String> parameters, ConfigurationGroupMethods groupMethods, ClassMethodMap classMethodMap, ITestContext testContext, List<IClassListener> listeners) TestNGClassFinder
(ClassInfoMap cim, Map<Class<?>, List<Object>> instanceMap, IConfiguration configuration, ITestContext testContext, DataProviderHolder holder) -
Uses of ITestContext in org.testng.internal.invokers
Constructors in org.testng.internal.invokers with parameters of type ITestContextModifierConstructorDescriptionInvokedMethodListenerInvoker
(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.objects.pojo
Methods in org.testng.internal.objects.pojo that return ITestContextConstructors in org.testng.internal.objects.pojo with parameters of type ITestContextModifierConstructorDescriptionCreationAttributes
(ITestContext ctx, BasicAttributes basic, DetailedAttributes detailed) -
Uses of ITestContext in org.testng.internal.reflect
Methods in org.testng.internal.reflect that return ITestContextMethods in org.testng.internal.reflect with parameters of type ITestContextModifier and TypeMethodDescriptionstatic Object[]
ReflectionRecipes.inject
(Parameter[] parameters, Set<InjectableParameter> filters, Object[] args, Constructor<?> constructor, ITestContext context, ITestResult testResult) Injects appropriate arguments.static Object[]
ReflectionRecipes.inject
(Parameter[] parameters, Set<InjectableParameter> filters, Object[] args, Method injectionMethod, ITestContext context, ITestResult testResult) Injects appropriate arguments.Constructors in org.testng.internal.reflect with parameters of type ITestContextModifierConstructorDescriptionMethodMatcherContext
(Method method, Object[] arguments, ITestContext testContext, ITestResult testResult) Constructs a context for MethodMatchers. -
Uses of ITestContext in org.testng.reporters
Methods in org.testng.reporters with parameters of type ITestContextModifier and TypeMethodDescriptionstatic void
TestHTMLReporter.generateLog
(ITestContext testContext, String host, String outputDirectory, Collection<ITestResult> failedConfs, Collection<ITestResult> skippedConfs, Collection<ITestResult> passedTests, Collection<ITestResult> failedTests, Collection<ITestResult> skippedTests, Collection<ITestResult> percentageTests) protected void
JUnitXMLReporter.generateReport
(ITestContext context) generate the XML report given what we know from all the test resultsvoid
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