Uses of Interface
org.testng.ITestContext
Packages that use ITestContext
Package
Description
-
Uses of ITestContext in org.testng
Classes in org.testng that implement ITestContextFields in org.testng declared as ITestContextModifier and TypeFieldDescriptionprivate final ITestContext
GuiceHelper.context
Deprecated.private final ITestContext
SuiteResult.m_testContext
Fields in org.testng with type parameters of type ITestContextModifier and TypeFieldDescriptionprivate final Collection<ITestContext>
TestListenerAdapter.m_testContexts
Methods in org.testng that return ITestContextModifier and TypeMethodDescriptionISuiteResult.getTestContext()
ITestResult.getTestContext()
SuiteResult.getTestContext()
Methods 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.private static Class<? extends com.google.inject.Module>
GuiceHelper.getParentModuleClass
(ITestContext context) Deprecated.IDataProviderInterceptor.intercept
(Iterator<Object[]> original, IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext) IMethodInterceptor.intercept
(List<IMethodInstance> methods, ITestContext context) InstanceOrderingMethodInterceptor.intercept
(List<IMethodInstance> methods, ITestContext context) PreserveOrderMethodInterceptor.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) SuiteResultCounts.seggregateSkippedTests
(ITestContext context) Constructors in org.testng with parameters of type ITestContextModifierConstructorDescription(package private)
GuiceHelper
(ITestContext context) Deprecated.protected
SuiteResult
(XmlSuite suite, ITestContext tr) -
Uses of ITestContext in org.testng.internal
Fields in org.testng.internal declared as ITestContextModifier and TypeFieldDescriptionprivate final ITestContext
Parameters.MethodParameters.context
private final ITestContext
TestInvoker.MethodInvocationAgent.context
private ITestContext
TestResult.m_context
protected final ITestContext
BaseInvoker.m_testContext
private final ITestContext
ClassImpl.m_testContext
private final ITestContext
FactoryMethod.m_testContext
private final ITestContext
TestMethodWithDataProviderMethodWorker.m_testContext
private final ITestContext
TestMethodWorker.m_testContext
private final ITestContext
TestNGClassFinder.m_testContext
private ITestContext
AbstractParallelWorker.Arguments.testContext
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 TypeMethodDescription(package private) void
ExitCode.computeAndUpdate
(ITestContext context) static 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
.(package private) ParameterHandler.ParameterBag
ParameterHandler.createParameters
(ITestNGMethod testMethod, Map<String, String> parameters, Map<String, String> allParameterNames, ITestContext testContext) (package private) ParameterHandler.ParameterBag
ParameterHandler.createParameters
(ITestNGMethod testMethod, Map<String, String> parameters, Map<String, String> allParameterNames, ITestContext testContext, Object fedInstance) private static boolean
TestNGClassFinder.excludeFactory
(FactoryMethod fm, ITestContext ctx) private static IDataProviderMethod
Parameters.findDataProvider
(Object instance, ITestClass clazz, IAnnotationFinder finder, String name, Class<?> dataProviderClass, ITestContext context) Find a method that has a @DataProvider(name=name)private static IDataProviderMethod
Parameters.findDataProvider
(Object instance, ITestClass clazz, ConstructorOrMethod m, IAnnotationFinder finder, ITestContext context) protected IClass
BaseClassFinder.findOrCreateIClass
(ITestContext context, Class<?> cls, XmlClass xmlClass, Object instance, IAnnotationFinder annotationFinder, ITestObjectFactory objectFactory) private static Throwable
ExceptionUtils.getConfigFailureException
(ITestContext context) (package private) static Throwable
ExceptionUtils.getExceptionDetails
(ITestContext context, Object instance) MethodInvocationHelper.getParameters
(Method dataProvider, ITestNGMethod method, ITestContext testContext, Object fedInstance, IAnnotationFinder annotationFinder) private ParameterHandler.ParameterBag
ParameterHandler.handleParameters
(ITestNGMethod testMethod, Object instance, Map<String, String> allParameterNames, Map<String, String> parameters, ITestContext testContext, Object fedInstance) private void
TestResult.init
(ITestNGMethod method, ITestContext ctx, Throwable t, long start, long end) 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) private List<ITestResult>
TestInvoker.invokePooledTestMethods
(ITestNGMethod testMethod, XmlSuite suite, Map<String, String> parameters, ConfigurationGroupMethods groupMethods, ITestContext testContext) Invokes a method that has a specified threadPoolSize.ITestInvoker.invokeTestMethods
(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, Object instance, ITestContext context) TestInvoker.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) TestInvoker.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) MethodRunner.runInParallel
(TestMethodArguments arguments, ITestInvoker testInvoker, ITestContext context, AtomicInteger invocationCount, ITestInvoker.FailureContext failure, Iterator<Object[]> allParamValues, boolean skipFailedInvocationCounts) IMethodRunner.runInSequence
(TestMethodArguments arguments, ITestInvoker testInvoker, ITestContext context, AtomicInteger invocationCount, ITestInvoker.FailureContext failure, Iterator<Object[]> allParameterValues, boolean skipFailedInvocationCounts) MethodRunner.runInSequence
(TestMethodArguments arguments, ITestInvoker testInvoker, ITestContext context, AtomicInteger invocationCount, ITestInvoker.FailureContext failure, Iterator<Object[]> allParamValues, boolean skipFailedInvocationCounts) void
TestResult.setContext
(ITestContext context) AbstractParallelWorker.Arguments.Builder.testContext
(ITestContext testContext) Constructors in org.testng.internal with parameters of type ITestContextModifierConstructorDescriptionBaseInvoker
(ITestResultNotifier notifier, Collection<IInvokedMethodListener> invokedMethodListeners, ITestContext testContext, SuiteRunState suiteState, IConfiguration configuration) ClassImpl
(ITestContext context, Class<?> cls, XmlClass xmlClass, Object instance, Map<Class<?>, IClass> classes, IAnnotationFinder annotationFinder, ITestObjectFactory objectFactory) ConfigInvoker
(ITestResultNotifier notifier, Collection<IInvokedMethodListener> invokedMethodListeners, ITestContext testContext, SuiteRunState suiteState, IConfiguration configuration) (package private)
FactoryMethod
(ConstructorOrMethod com, Object instance, IAnnotationFinder annotationFinder, ITestContext testContext, ITestObjectFactory objectFactory, DataProviderHolder holder) Invoker
(IConfiguration configuration, ITestContext testContext, ITestResultNotifier notifier, SuiteRunState state, boolean skipFailedInvocationCounts, Collection<IInvokedMethodListener> invokedMethodListeners, List<IClassListener> classListeners, DataProviderHolder holder) MethodInvocationAgent
(TestMethodArguments arguments, ITestInvoker invoker, ITestContext context) MethodParameters
(Map<String, String> params, Map<String, String> methodParams, Object[] pv, Method m, ITestContext ctx, ITestResult tr) SingleTestMethodWorker
(TestInvoker testInvoker, ConfigInvoker configInvoker, IMethodInstance testMethod, Map<String, String> parameters, ITestContext testContext, List<IClassListener> listeners) TestInvoker
(ITestResultNotifier m_notifier, ITestContext m_testContext, SuiteRunState m_suiteState, IConfiguration m_configuration, Collection<IInvokedMethodListener> m_invokedMethodListeners, DataProviderHolder holder, List<IClassListener> m_classListeners, boolean m_skipFailedInvocationCounts, ConfigInvoker invoker) 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
Fields in org.testng.internal.invokers declared as ITestContextModifier and TypeFieldDescriptionprivate final ITestContext
InvokedMethodListenerInvoker.m_testContext
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
Fields in org.testng.internal.objects declared as ITestContextConstructors in org.testng.internal.objects with parameters of type ITestContext -
Uses of ITestContext in org.testng.internal.objects.pojo
Fields in org.testng.internal.objects.pojo declared as ITestContextMethods 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
Fields in org.testng.internal.reflect declared as ITestContextMethods 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.private static Object[]
ReflectionRecipes.nativelyInject
(Parameter[] parameters, Set<InjectableParameter> filters, Object[] args, Object injectionMethod, ITestContext context, ITestResult testResult) 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
Fields in org.testng.reporters declared as ITestContextMethods in org.testng.reporters with parameters of type ITestContextModifier and TypeMethodDescriptionprivate void
JUnitXMLReporter.createElementFromIgnoredTests
(XMLStringBuffer doc, ITestContext context) private void
FailedReporter.createXmlTest
(ITestContext context, List<ITestNGMethod> methods, XmlTest srcXmlTest) Generate testng-failed.xmlprivate 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, 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 resultsprivate void
FailedReporter.generateXmlTest
(XmlTest xmlTest, ITestContext context, Set<ITestResult> failedTests, Set<ITestResult> skippedTests) private static String
TestHTMLReporter.getOutputFile
(ITestContext context) JUnitXMLReporter.getPackages
(ITestContext context) private void
TextReporter.logResults
(ITestContext context) private void
VerboseReporter.logResults
(ITestContext context) Print out test summaryvoid
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 -
Uses of ITestContext in org.testng.reporters.jq
Methods in org.testng.reporters.jq with parameters of type ITestContext