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 voidIDataProviderListener.afterDataProviderExecution(IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext) This method gets invoked just after a data provider is invoked.default voidIInvokedMethodListener.afterInvocation(IInvokedMethod method, ITestResult testResult, ITestContext context) To be implemented if the method needs a handle to contextual information.default voidIDataProviderListener.beforeDataProviderExecution(IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext) This method gets invoked just before a data provider is invoked.default voidIInvokedMethodListener.beforeInvocation(IInvokedMethod method, ITestResult testResult, ITestContext context) To be implemented if the method needs a handle to contextual information.com.google.inject.ModuleIModuleFactory.createModule(ITestContext context, Class<?> testClass) IDataProviderInterceptor.intercept(Iterator<Object[]> original, IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext) IMethodInterceptor.intercept(List<IMethodInstance> methods, ITestContext context) default voidIDataProviderListener.onDataProviderFailure(ITestNGMethod method, ITestContext ctx, RuntimeException t) This method gets invoked when the data provider encounters an exceptiondefault voidITestListener.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.default voidITestListener.onStart(ITestContext context) Invoked before running all the test methods belonging to the classes inside the <test> tag and calling all their Configuration methods.voidTestListenerAdapter.onStart(ITestContext testContext) -
Uses of ITestContext in org.testng.internal
Methods in org.testng.internal that return ITestContextMethods 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@ConfigurationMethod.static ITestNGListenerFactoryTestListenerHelper.createListenerFactory(ITestObjectFactory objectFactory, TestNGClassFinder finder, Class<? extends ITestNGListenerFactory> factoryClass, ITestContext context) Deprecated.protected IClassBaseClassFinder.findOrCreateIClass(ITestContext context, Class<?> cls, XmlClass xmlClass, IObject.IdentifiableObject 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.static TestResultTestResult.newContextAwareTestResult(ITestNGMethod method, ITestContext ctx) static TestResultTestResult.newEndTimeAwareTestResult(ITestNGMethod method, ITestContext ctx, Throwable t, long start) static Parameters.MethodParametersParameters.MethodParameters.newInstance(Map<String, String> params, ITestNGMethod testNGMethod, ITestContext context) static TestResultTestResult.newTestResultFrom(TestResult result, ITestNGMethod method, ITestContext ctx, long start) static TestResultTestResult.newTestResultWithCauseAs(ITestNGMethod method, ITestContext ctx, Throwable t) voidTestResult.setContext(ITestContext context) Constructors in org.testng.internal with parameters of type ITestContextModifierConstructorDescriptionClassImpl(ITestContext context, Class<?> cls, XmlClass xmlClass, IObject.IdentifiableObject instance, Map<Class<?>, IClass> classes, IAnnotationFinder annotationFinder, ITestObjectFactory objectFactory) DefaultListenerFactory(ITestObjectFactory objectFactory, ITestContext context) MethodParameters(Map<String, String> params, Map<String, String> methodParams, Object[] pv, Method m, ITestContext ctx, ITestResult tr) TestNGClassFinder(ClassInfoMap cim, Map<Class<?>, List<IObject.IdentifiableObject>> instanceMap, IConfiguration configuration, ITestContext testContext, DataProviderHolder holder) -
Uses of ITestContext in org.testng.internal.invokers
Methods in org.testng.internal.invokers that return ITestContextMethods in org.testng.internal.invokers with parameters of type ITestContextModifier and TypeMethodDescriptionMethodInvocationHelper.invokeDataProvider(Object instance, Method dataProvider, ITestNGMethod method, ITestContext testContext, Object fedInstance, IAnnotationFinder annotationFinder) ITestInvoker.invokeTestMethods(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, Object instance, 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) 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) AbstractParallelWorker.Arguments.Builder.testContext(ITestContext 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 specifiedlistenerMethodon any number ofIInvokedMethodListeners.Invoker(IConfiguration configuration, ITestContext testContext, ITestResultNotifier notifier, SuiteRunState state, boolean skipFailedInvocationCounts, Collection<IInvokedMethodListener> invokedMethodListeners, List<IClassListener> classListeners, DataProviderHolder holder, IConfigurationListener internalConfigurationListener, ISuiteRunnerListener suiteRunner) 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) -
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 voidTestHTMLReporter.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 voidJUnitXMLReporter.generateReport(ITestContext context) generate the XML report given what we know from all the test resultsvoidJUnitXMLReporter.onFinish(ITestContext context) Invoked after all the tests have run and all their Configuration methods have been called.voidTestHTMLReporter.onFinish(ITestContext context) voidTextReporter.onFinish(ITestContext context) voidVerboseReporter.onFinish(ITestContext context) voidExitCodeListener.onStart(ITestContext context) Deprecated.voidJUnitXMLReporter.onStart(ITestContext context) Invoked after the test class is instantiated and before any configuration method is called.voidTestHTMLReporter.onStart(ITestContext context) //voidVerboseReporter.onStart(ITestContext ctx) Constructors in org.testng.reporters with parameters of type ITestContext
7.10.0