public class Invoker extends Object implements IInvoker
Constructor and Description |
---|
Invoker(IConfiguration configuration,
ITestContext testContext,
ITestResultNotifier notifier,
SuiteRunState state,
boolean skipFailedInvocationCounts,
Collection<IInvokedMethodListener> invokedMethodListeners,
List<IClassListener> classListeners,
Collection<IDataProviderListener> dataProviderListeners) |
Modifier and Type | Method and Description |
---|---|
void |
invokeConfigurations(IClass testClass,
ITestNGMethod[] allMethods,
XmlSuite suite,
Map<String,String> params,
Object[] parameterValues,
Object instance)
Invoke configuration methods if they belong to the same TestClass passed
in parameter..
|
List<ITestResult> |
invokeTestMethods(ITestNGMethod testMethod,
XmlSuite suite,
Map<String,String> testParameters,
ConfigurationGroupMethods groupMethods,
Object instance,
ITestContext testContext)
Invoke all the test methods.
|
public Invoker(IConfiguration configuration, ITestContext testContext, ITestResultNotifier notifier, SuiteRunState state, boolean skipFailedInvocationCounts, Collection<IInvokedMethodListener> invokedMethodListeners, List<IClassListener> classListeners, Collection<IDataProviderListener> dataProviderListeners)
public void invokeConfigurations(IClass testClass, ITestNGMethod[] allMethods, XmlSuite suite, Map<String,String> params, Object[] parameterValues, Object instance)
invokeConfigurations
in interface IInvoker
testClass
- the class whose configuration methods must be runpublic List<ITestResult> invokeTestMethods(ITestNGMethod testMethod, XmlSuite suite, Map<String,String> testParameters, ConfigurationGroupMethods groupMethods, Object instance, ITestContext testContext)
invokeTestMethod(Object, ITestNGMethod, Object[], int, XmlSuite, Map, ITestClass, ITestNGMethod[], ITestNGMethod[], ConfigurationGroupMethods, FailureContext)
and this would simplify the implementation (see how DataTestMethodWorker is used)invokeTestMethods
in interface IInvoker
Copyright © 2024. All rights reserved.