Uses of Interface
org.testng.ITestContext
-
Packages that use ITestContext Package Description org.testng org.testng.internal org.testng.internal.invokers org.testng.internal.objects.pojo org.testng.internal.reflect org.testng.reporters -
-
Uses of ITestContext in org.testng
Classes in org.testng that implement ITestContext Modifier and Type Class Description classTestRunnerThis class takes care of running one Test.Methods in org.testng that return ITestContext Modifier and Type Method Description ITestContextISuiteResult. getTestContext()ITestContextITestResult. 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 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, java.lang.Class<?> testClass)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)default voidIDataProviderListener. onDataProviderFailure(ITestNGMethod method, ITestContext ctx, java.lang.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 ITestContext Modifier and Type Method Description ITestContextTestResult. getTestContext()Methods in org.testng.internal with parameters of type ITestContext Modifier and Type Method Description 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@ConfigurationMethod.static ITestNGListenerFactoryTestListenerHelper. createListenerFactory(ITestObjectFactory objectFactory, TestNGClassFinder finder, java.lang.Class<? extends ITestNGListenerFactory> factoryClass, ITestContext context)Deprecated.- This method stands deprecated as of TestNG version7.10.0protected IClassBaseClassFinder. findOrCreateIClass(ITestContext context, java.lang.Class<?> cls, XmlClass xmlClass, IObject.IdentifiableObject instance, IAnnotationFinder annotationFinder, ITestObjectFactory objectFactory)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.static TestResultTestResult. newContextAwareTestResult(ITestNGMethod method, ITestContext ctx)static TestResultTestResult. newEndTimeAwareTestResult(ITestNGMethod method, ITestContext ctx, java.lang.Throwable t, long start)static Parameters.MethodParametersParameters.MethodParameters. newInstance(java.util.Map<java.lang.String,java.lang.String> params, ITestNGMethod testNGMethod, ITestContext context)static TestResultTestResult. newTestResultFrom(TestResult result, ITestNGMethod method, ITestContext ctx, long start)static TestResultTestResult. newTestResultWithCauseAs(ITestNGMethod method, ITestContext ctx, java.lang.Throwable t)voidTestResult. setContext(ITestContext context)Constructors in org.testng.internal with parameters of type ITestContext Constructor Description ClassImpl(ITestContext context, java.lang.Class<?> cls, XmlClass xmlClass, IObject.IdentifiableObject instance, java.util.Map<java.lang.Class<?>,IClass> classes, IAnnotationFinder annotationFinder, ITestObjectFactory objectFactory)DefaultListenerFactory(ITestObjectFactory objectFactory, 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)TestNGClassFinder(ClassInfoMap cim, java.util.Map<java.lang.Class<?>,java.util.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 ITestContext Modifier and Type Method Description ITestContextAbstractParallelWorker.Arguments. getTestContext()Methods in org.testng.internal.invokers with parameters of type ITestContext Modifier and Type Method Description 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)java.util.List<ITestResult>ITestInvoker. invokeTestMethods(ITestNGMethod testMethod, ConfigurationGroupMethods groupMethods, java.lang.Object instance, ITestContext context)ITestInvoker.FailureContextITestInvoker. 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)AbstractParallelWorker.Arguments.BuilderAbstractParallelWorker.Arguments.Builder. testContext(ITestContext 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 specifiedlistenerMethodon any number ofIInvokedMethodListeners.Invoker(IConfiguration configuration, ITestContext testContext, ITestResultNotifier notifier, SuiteRunState state, boolean skipFailedInvocationCounts, java.util.Collection<IInvokedMethodListener> invokedMethodListeners, java.util.List<IClassListener> classListeners, DataProviderHolder holder, IConfigurationListener internalConfigurationListener, ISuiteRunnerListener suiteRunner)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) -
Uses of ITestContext in org.testng.internal.objects.pojo
Methods in org.testng.internal.objects.pojo that return ITestContext Modifier and Type Method Description ITestContextCreationAttributes. getContext()Constructors in org.testng.internal.objects.pojo with parameters of type ITestContext Constructor Description CreationAttributes(ITestContext ctx, BasicAttributes basic, DetailedAttributes detailed) -
Uses of ITestContext in org.testng.internal.reflect
Methods in org.testng.internal.reflect that return ITestContext Modifier and Type Method Description ITestContextMethodMatcherContext. getTestContext()Methods in org.testng.internal.reflect with parameters of type ITestContext Modifier and Type Method Description static java.lang.Object[]ReflectionRecipes. inject(java.lang.reflect.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(java.lang.reflect.Parameter[] parameters, java.util.Set<InjectableParameter> filters, java.lang.Object[] args, java.lang.reflect.Method injectionMethod, ITestContext context, ITestResult testResult)Injects appropriate arguments.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
Methods in org.testng.reporters with parameters of type ITestContext Modifier and Type Method Description static voidTestHTMLReporter. 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 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 Constructor Description TestResult(ITestContext context)
-