Package | Description |
---|---|
org.testng | |
org.testng.internal | |
org.testng.internal.annotations | |
org.testng.junit | |
org.testng.reporters | |
org.testng.reporters.util |
Modifier and Type | Method and Description |
---|---|
ITestNGMethod |
ITestNGMethod.clone() |
static ITestNGMethod |
TestNGUtils.createITestNGMethod(ITestNGMethod existingMethod,
Method method)
Create an ITestNGMethod for @code{method} based on @code{existingMethod}, which needs
to belong to the same class.
|
ITestNGMethod[] |
ITestClass.getAfterClassMethods()
Returns all the methods that should be invoked
after all the tests have been run on this class.
|
ITestNGMethod[] |
ITestMethodFinder.getAfterClassMethods(Class<?> cls) |
ITestNGMethod[] |
ITestMethodFinder.getAfterGroupsConfigurationMethods(Class<?> testClass) |
ITestNGMethod[] |
ITestClass.getAfterGroupsMethods()
Returns all @Configuration methods that should be invoked after certain groups.
|
ITestNGMethod[] |
TestRunner.getAfterSuiteMethods() |
ITestNGMethod[] |
ITestClass.getAfterSuiteMethods()
Returns all the methods that should be invoked
after the suite has run.
|
ITestNGMethod[] |
ITestMethodFinder.getAfterSuiteMethods(Class<?> cls) |
ITestNGMethod[] |
TestRunner.getAfterTestConfigurationMethods() |
ITestNGMethod[] |
ITestClass.getAfterTestConfigurationMethods()
Returns all @Configuration methods that should be invoked last before any others
in the current test.
|
ITestNGMethod[] |
ITestMethodFinder.getAfterTestConfigurationMethods(Class<?> testClass) |
ITestNGMethod[] |
ITestClass.getAfterTestMethods()
Returns all the methods that should be invoked
after a test method completes.
|
ITestNGMethod[] |
ITestMethodFinder.getAfterTestMethods(Class<?> cls) |
ITestNGMethod[] |
TestRunner.getAllTestMethods() |
protected ITestNGMethod[] |
TestListenerAdapter.getAllTestMethods() |
ITestNGMethod[] |
ITestContext.getAllTestMethods() |
ITestNGMethod[] |
ITestClass.getBeforeClassMethods()
Return all the methods that should be invoked
after the test class has been created and before
any of its test methods is invoked.
|
ITestNGMethod[] |
ITestMethodFinder.getBeforeClassMethods(Class<?> cls) |
ITestNGMethod[] |
ITestMethodFinder.getBeforeGroupsConfigurationMethods(Class<?> testClass) |
ITestNGMethod[] |
ITestClass.getBeforeGroupsMethods()
Returns all @Configuration methods that should be invoked before certain groups.
|
ITestNGMethod[] |
TestRunner.getBeforeSuiteMethods() |
ITestNGMethod[] |
ITestClass.getBeforeSuiteMethods()
Returns All the methods that should be invoked
before the suite is run.
|
ITestNGMethod[] |
ITestMethodFinder.getBeforeSuiteMethods(Class<?> cls) |
ITestNGMethod[] |
TestRunner.getBeforeTestConfigurationMethods() |
ITestNGMethod[] |
ITestClass.getBeforeTestConfigurationMethods()
Returns all @Configuration methods that should be invoked before any others in the
current test.
|
ITestNGMethod[] |
ITestMethodFinder.getBeforeTestConfigurationMethods(Class<?> testClass) |
ITestNGMethod[] |
ITestClass.getBeforeTestMethods()
Returns all the methods that should be invoked
before a test method is invoked.
|
ITestNGMethod[] |
ITestMethodFinder.getBeforeTestMethods(Class<?> cls) |
ITestNGMethod |
ITestResult.getMethod() |
ITestNGMethod |
IMethodInstance.getMethod() |
ITestNGMethod |
DependencyMap.getMethodDependingOn(String methodName,
ITestNGMethod fromMethod) |
ITestNGMethod |
IInvokedMethod.getTestMethod() |
ITestNGMethod[] |
ITestClass.getTestMethods()
Returns all the applicable test methods.
|
ITestNGMethod[] |
ITestMethodFinder.getTestMethods(Class<?> cls,
XmlTest xmlTest) |
Modifier and Type | Method and Description |
---|---|
void |
TestRunner.addFailedButWithinSuccessPercentageTest(ITestNGMethod testMethod,
ITestResult result) |
void |
TestRunner.addFailedTest(ITestNGMethod testMethod,
ITestResult result) |
void |
TestRunner.addPassedTest(ITestNGMethod tm,
ITestResult tr) |
void |
IResultMap.addResult(ITestResult result,
ITestNGMethod method) |
void |
TestRunner.addSkippedTest(ITestNGMethod tm,
ITestResult tr) |
void |
IDataProviderListener.afterDataProviderExecution(IDataProviderMethod dataProviderMethod,
ITestNGMethod method,
ITestContext iTestContext)
This method gets invoked just after a data provider is invoked.
|
void |
IDataProviderListener.beforeDataProviderExecution(IDataProviderMethod dataProviderMethod,
ITestNGMethod method,
ITestContext iTestContext)
This method gets invoked just before a data provider is invoked.
|
static ITestNGMethod |
TestNGUtils.createITestNGMethod(ITestNGMethod existingMethod,
Method method)
Create an ITestNGMethod for @code{method} based on @code{existingMethod}, which needs
to belong to the same class.
|
Set<ITestResult> |
TestRunner.getFailedTests(ITestNGMethod tm) |
ITestNGMethod |
DependencyMap.getMethodDependingOn(String methodName,
ITestNGMethod fromMethod) |
List<ITestNGMethod> |
DependencyMap.getMethodsThatBelongTo(String group,
ITestNGMethod fromMethod) |
Set<ITestResult> |
TestRunner.getPassedTests(ITestNGMethod tm) |
Set<ITestResult> |
IResultMap.getResults(ITestNGMethod method) |
Set<ITestResult> |
TestRunner.getSkippedTests(ITestNGMethod tm) |
boolean |
IMethodSelector.includeMethod(IMethodSelectorContext context,
ITestNGMethod method,
boolean isTestMethod) |
boolean |
ClassMethodMap.removeAndCheckIfLast(ITestNGMethod m,
Object instance)
Remove the method from this map and returns true if it is the last
of its class.
|
void |
IResultMap.removeResult(ITestNGMethod m) |
Modifier and Type | Method and Description |
---|---|
List<IWorker<ITestNGMethod>> |
TestRunner.createWorkers(List<ITestNGMethod> methods)
Create a list of workers to run the methods passed in parameter.
|
void |
TestListenerAdapter.setAllTestMethods(List<ITestNGMethod> allTestMethods) |
void |
IMethodSelector.setTestMethods(List<ITestNGMethod> testMethods)
Invoked when all the test methods are known so that the method selector
can perform additional work, such as adding the transitive closure of
all the groups being included and depended upon.
|
Constructor and Description |
---|
DependencyMap(ITestNGMethod[] methods) |
Constructor and Description |
---|
ClassMethodMap(List<ITestNGMethod> methods,
XmlMethodSelector xmlMethodSelector) |
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
Comparator<ITestNGMethod> comparator) |
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
Comparator<ITestNGMethod> comparator) |
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
List<IMethodInterceptor> methodInterceptors,
Collection<IInvokedMethodListener> invokedMethodListeners,
Collection<ITestListener> testListeners,
Collection<IClassListener> classListeners,
Comparator<ITestNGMethod> comparator)
Deprecated.
- This constructor stands deprecated as of TestNG v6.13.
|
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
boolean useDefaultListeners,
List<IMethodInterceptor> methodInterceptors,
Collection<IInvokedMethodListener> invokedMethodListeners,
Collection<ITestListener> testListeners,
Collection<IClassListener> classListeners,
Map<Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners,
Comparator<ITestNGMethod> comparator) |
SuiteRunner(IConfiguration configuration,
XmlSuite suite,
String outputDir,
ITestRunnerFactory runnerFactory,
Comparator<ITestNGMethod> comparator) |
TestRunner(IConfiguration configuration,
ISuite suite,
XmlTest test,
boolean skipFailedInvocationCounts,
Collection<IInvokedMethodListener> invokedMethodListeners,
List<IClassListener> classListeners,
Comparator<ITestNGMethod> comparator) |
TestRunner(IConfiguration configuration,
ISuite suite,
XmlTest test,
String outputDirectory,
IAnnotationFinder finder,
boolean skipFailedInvocationCounts,
Collection<IInvokedMethodListener> invokedMethodListeners,
List<IClassListener> classListeners,
Comparator<ITestNGMethod> comparator,
Map<Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners) |
Modifier and Type | Class and Description |
---|---|
class |
BaseTestMethod
Superclass to represent both @Test and @Configuration methods.
|
class |
ClonedMethod |
class |
ConfigurationMethod |
class |
FactoryMethod
This class represents a method annotated with @Factory
|
class |
TestNGMethod
This class represents a test method.
|
class |
WrappedTestNGMethod
Represents a proxy for an actual instance of
ITestNGMethod but with the exception that
it generates a unique hashcode that is different from the original ITestNGMethod instance
that it wraps. |
Modifier and Type | Field and Description |
---|---|
protected ITestNGMethod[] |
NoOpTestClass.m_afterClassMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_afterGroupsMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_afterSuiteMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_afterTestConfMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_afterTestMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_beforeClassMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_beforeGroupsMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_beforeSuiteMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_beforeTestConfMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_beforeTestMethods |
protected ITestNGMethod[] |
NoOpTestClass.m_testMethods |
protected ITestNGMethod |
ExpectedExceptionsHolder.method |
Modifier and Type | Field and Description |
---|---|
static Comparator<ITestNGMethod> |
TestNGMethod.SORT_BY_CLASS
Sorts ITestNGMethod by Class name.
|
Modifier and Type | Method and Description |
---|---|
abstract ITestNGMethod |
BaseTestMethod.clone() |
ITestNGMethod |
WrappedTestNGMethod.clone() |
ITestNGMethod |
FactoryMethod.clone() |
static ITestNGMethod[] |
MethodHelper.collectAndOrderMethods(List<ITestNGMethod> methods,
boolean forTests,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique,
List<ITestNGMethod> outExcludedMethods,
Comparator<ITestNGMethod> comparator)
Collects and orders test or configuration methods
|
static ITestNGMethod[] |
ConfigurationMethod.createAfterConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createBeforeConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createClassConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createSuiteConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createTestConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createTestMethodConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
protected static ITestNGMethod[] |
MethodHelper.findDependedUponMethods(ITestNGMethod m,
ITestNGMethod[] methods)
Finds TestNG methods that the specified TestNG method depends upon
|
protected static ITestNGMethod[] |
MethodHelper.findDependedUponMethods(ITestNGMethod m,
List<ITestNGMethod> methods)
Finds TestNG methods that the specified TestNG method depends upon
|
protected static ITestNGMethod[] |
MethodGroupsHelper.findMethodsThatBelongToGroup(ITestNGMethod[] methods,
String groupRegexp) |
protected static ITestNGMethod[] |
MethodGroupsHelper.findMethodsThatBelongToGroup(ITestNGMethod method,
ITestNGMethod[] methods,
String groupRegexp)
Only used if a group is missing to flag an error on that method
|
ITestNGMethod[] |
NoOpTestClass.getAfterClassMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getAfterClassMethods(Class cls) |
ITestNGMethod[] |
TestNGMethodFinder.getAfterGroupsConfigurationMethods(Class clazz) |
ITestNGMethod[] |
NoOpTestClass.getAfterGroupsMethods() |
ITestNGMethod[] |
NoOpTestClass.getAfterSuiteMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getAfterSuiteMethods(Class cls) |
ITestNGMethod[] |
NoOpTestClass.getAfterTestConfigurationMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getAfterTestConfigurationMethods(Class clazz) |
ITestNGMethod[] |
NoOpTestClass.getAfterTestMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getAfterTestMethods(Class cls) |
ITestNGMethod[] |
ConfigurationGroupMethods.getAllTestMethods() |
ITestNGMethod[] |
NoOpTestClass.getBeforeClassMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getBeforeClassMethods(Class cls) |
ITestNGMethod[] |
TestNGMethodFinder.getBeforeGroupsConfigurationMethods(Class clazz) |
ITestNGMethod[] |
NoOpTestClass.getBeforeGroupsMethods() |
ITestNGMethod[] |
NoOpTestClass.getBeforeSuiteMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getBeforeSuiteMethods(Class cls) |
ITestNGMethod[] |
NoOpTestClass.getBeforeTestConfigurationMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getBeforeTestConfigurationMethods(Class clazz) |
ITestNGMethod[] |
NoOpTestClass.getBeforeTestMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getBeforeTestMethods(Class cls) |
ITestNGMethod |
MethodInstance.getMethod() |
ITestNGMethod |
TestResult.getMethod() |
ITestNGMethod |
InvokedMethod.getTestMethod() |
ITestNGMethod[] |
NoOpTestClass.getTestMethods() |
ITestNGMethod[] |
TestNGMethodFinder.getTestMethods(Class<?> clazz,
XmlTest xmlTest) |
Modifier and Type | Method and Description |
---|---|
void |
ITestResultNotifier.addFailedButWithinSuccessPercentageTest(ITestNGMethod tm,
ITestResult tr) |
void |
ITestResultNotifier.addFailedTest(ITestNGMethod tm,
ITestResult tr) |
void |
ITestResultNotifier.addPassedTest(ITestNGMethod tm,
ITestResult tr) |
void |
ResultMap.addResult(ITestResult result,
ITestNGMethod method) |
void |
ITestResultNotifier.addSkippedTest(ITestNGMethod tm,
ITestResult tr) |
static String |
Utils.annotationFormFor(ITestNGMethod method)
Given a TestNG method, returns the corresponding annotation based on the method type
|
static int |
Utils.calculateInvokedMethodCount(ITestNGMethod[] methods) |
protected static String |
MethodHelper.calculateMethodCanonicalName(ITestNGMethod m) |
protected static long |
MethodHelper.calculateTimeOut(ITestNGMethod tm) |
static ITestNGMethod[] |
ConfigurationMethod.createAfterConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createBeforeConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createClassConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
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 . |
static DynamicGraph<ITestNGMethod> |
DynamicGraphHelper.createDynamicGraph(ITestNGMethod[] methods,
XmlTest xmlTest) |
static ITestNGMethod[] |
ConfigurationMethod.createSuiteConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createTestConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createTestMethodConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static String |
Utils.detailedMethodName(ITestNGMethod method,
boolean fqn) |
protected static ITestNGMethod[] |
MethodHelper.findDependedUponMethods(ITestNGMethod m,
ITestNGMethod[] methods)
Finds TestNG methods that the specified TestNG method depends upon
|
protected static ITestNGMethod[] |
MethodHelper.findDependedUponMethods(ITestNGMethod m,
ITestNGMethod[] methods)
Finds TestNG methods that the specified TestNG method depends upon
|
protected static ITestNGMethod[] |
MethodHelper.findDependedUponMethods(ITestNGMethod m,
List<ITestNGMethod> methods)
Finds TestNG methods that the specified TestNG method depends upon
|
protected static ITestNGMethod[] |
MethodGroupsHelper.findMethodsThatBelongToGroup(ITestNGMethod[] methods,
String groupRegexp) |
protected static ITestNGMethod[] |
MethodGroupsHelper.findMethodsThatBelongToGroup(ITestNGMethod method,
ITestNGMethod[] methods,
String groupRegexp)
Only used if a group is missing to flag an error on that method
|
protected static ITestNGMethod[] |
MethodGroupsHelper.findMethodsThatBelongToGroup(ITestNGMethod method,
ITestNGMethod[] methods,
String groupRegexp)
Only used if a group is missing to flag an error on that method
|
static void |
MethodInheritance.fixMethodInheritance(ITestNGMethod[] methods,
boolean before)
Fix the methodsDependedUpon to make sure that @Configuration methods
respect inheritance (before methods are invoked in the order Base first
and after methods are invoked in the order Child first)
|
static void |
MethodHelper.fixMethodsWithClass(ITestNGMethod[] methods,
ITestClass testCls,
List<ITestNGMethod> methodList) |
Set<ITestResult> |
ITestResultNotifier.getFailedTests(ITestNGMethod tm) |
static List<ITestNGMethod> |
MethodHelper.getMethodsDependedUpon(ITestNGMethod method,
ITestNGMethod[] methods,
Comparator<ITestNGMethod> comparator) |
static List<ITestNGMethod> |
MethodHelper.getMethodsDependedUpon(ITestNGMethod method,
ITestNGMethod[] methods,
Comparator<ITestNGMethod> comparator) |
Set<ITestResult> |
ITestResultNotifier.getPassedTests(ITestNGMethod tm) |
Set<ITestResult> |
ResultMap.getResults(ITestNGMethod method) |
Set<ITestResult> |
ITestResultNotifier.getSkippedTests(ITestNGMethod tm) |
static ParameterHolder |
Parameters.handleParameters(ITestNGMethod testMethod,
Map<String,String> allParameterNames,
Object instance,
Parameters.MethodParameters methodParams,
XmlSuite xmlSuite,
IAnnotationFinder annotationFinder,
Object fedInstance)
If the method has parameters, fill them in.
|
static ParameterHolder |
Parameters.handleParameters(ITestNGMethod testMethod,
Map<String,String> allParameterNames,
Object instance,
Parameters.MethodParameters methodParams,
XmlSuite xmlSuite,
IAnnotationFinder annotationFinder,
Object fedInstance,
Collection<IDataProviderListener> dataProviderListeners)
If the method has parameters, fill them in.
|
boolean |
XmlMethodSelector.includeMethod(IMethodSelectorContext context,
ITestNGMethod tm,
boolean isTestMethod) |
boolean |
RunInfo.includeMethod(ITestNGMethod tm,
boolean isTestMethod) |
boolean |
IBsh.includeMethodFromExpression(String expression,
ITestNGMethod tm) |
boolean |
BshMock.includeMethodFromExpression(String expression,
ITestNGMethod tm) |
boolean |
Bsh.includeMethodFromExpression(String expression,
ITestNGMethod tm) |
protected int |
TestMethodWorker.indexOf(ITestNGMethod tm,
ITestNGMethod[] allTestMethods) |
protected int |
TestMethodWorker.indexOf(ITestNGMethod tm,
ITestNGMethod[] allTestMethods) |
void |
TestResult.init(IClass testClass,
Object instance,
ITestNGMethod method,
Throwable throwable,
long start,
long end,
ITestContext context) |
void |
Invoker.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..
|
void |
IInvoker.invokeConfigurations(IClass testClass,
ITestNGMethod[] allMethods,
XmlSuite suite,
Map<String,String> parameters,
Object[] parameterValues,
Object instance)
Invoke configuration methods if they belong to the same TestClass
passed in parameter..
|
protected static Iterator<Object[]> |
MethodInvocationHelper.invokeDataProvider(Object instance,
Method dataProvider,
ITestNGMethod method,
ITestContext testContext,
Object fedInstance,
IAnnotationFinder annotationFinder) |
protected static void |
MethodInvocationHelper.invokeMethodConsideringTimeout(ITestNGMethod tm,
ConstructorOrMethod method,
Object targetInstance,
Object[] params,
ITestResult testResult) |
protected void |
TestMethodWorker.invokeTestMethods(ITestNGMethod tm,
Object instance,
ITestContext testContext) |
List<ITestResult> |
Invoker.invokeTestMethods(ITestNGMethod testMethod,
XmlSuite suite,
Map<String,String> testParameters,
ConfigurationGroupMethods groupMethods,
Object instance,
ITestContext testContext)
Invoke all the test methods.
|
List<ITestResult> |
IInvoker.invokeTestMethods(ITestNGMethod testMethod,
XmlSuite suite,
Map<String,String> parameters,
ConfigurationGroupMethods groupMethods,
Object instance,
ITestContext testContext)
Invoke the given method
|
protected static void |
MethodInvocationHelper.invokeWithTimeout(ITestNGMethod tm,
Object instance,
Object[] parameterValues,
ITestResult testResult)
Invokes a method on a separate thread in order to allow us to timeout the
invocation.
|
protected static void |
MethodInvocationHelper.invokeWithTimeout(ITestNGMethod tm,
Object instance,
Object[] parameterValues,
ITestResult testResult,
IHookable hookable) |
boolean |
ConfigurationGroupMethods.isLastMethodForGroup(String group,
ITestNGMethod method) |
static Parameters.MethodParameters |
Parameters.MethodParameters.newInstance(Map<String,String> params,
ITestNGMethod testNGMethod,
ITestContext context) |
TestException |
ExpectedExceptionsHolder.noException(ITestNGMethod testMethod) |
void |
ConfigurationGroupMethods.removeBeforeMethod(String group,
ITestNGMethod method) |
void |
ResultMap.removeResult(ITestNGMethod m) |
void |
NoOpTestClass.setAfterTestMethod(ITestNGMethod[] afterTestMethods) |
void |
NoOpTestClass.setBeforeTestMethods(ITestNGMethod[] beforeTestMethods) |
void |
TestResult.setMethod(ITestNGMethod method) |
Modifier and Type | Method and Description |
---|---|
static int |
Utils.calculateInvokedMethodCount(List<ITestNGMethod> methods) |
static ITestNGMethod[] |
MethodHelper.collectAndOrderMethods(List<ITestNGMethod> methods,
boolean forTests,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique,
List<ITestNGMethod> outExcludedMethods,
Comparator<ITestNGMethod> comparator)
Collects and orders test or configuration methods
|
static ITestNGMethod[] |
MethodHelper.collectAndOrderMethods(List<ITestNGMethod> methods,
boolean forTests,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique,
List<ITestNGMethod> outExcludedMethods,
Comparator<ITestNGMethod> comparator)
Collects and orders test or configuration methods
|
static ITestNGMethod[] |
MethodHelper.collectAndOrderMethods(List<ITestNGMethod> methods,
boolean forTests,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique,
List<ITestNGMethod> outExcludedMethods,
Comparator<ITestNGMethod> comparator)
Collects and orders test or configuration methods
|
int |
TestMethodWorker.compareTo(IWorker<ITestNGMethod> other) |
static void |
Utils.dumpMethods(List<ITestNGMethod> allMethods)
Deprecated.
Unused
|
protected static ITestNGMethod[] |
MethodHelper.findDependedUponMethods(ITestNGMethod m,
List<ITestNGMethod> methods)
Finds TestNG methods that the specified TestNG method depends upon
|
protected static void |
MethodGroupsHelper.findGroupTransitiveClosure(XmlMethodSelector xms,
List<ITestNGMethod> includedMethods,
List<ITestNGMethod> allMethods,
String[] includedGroups,
Set<String> outGroups,
Set<ITestNGMethod> outMethods) |
protected static void |
MethodGroupsHelper.findGroupTransitiveClosure(XmlMethodSelector xms,
List<ITestNGMethod> includedMethods,
List<ITestNGMethod> allMethods,
String[] includedGroups,
Set<String> outGroups,
Set<ITestNGMethod> outMethods) |
protected static void |
MethodGroupsHelper.findGroupTransitiveClosure(XmlMethodSelector xms,
List<ITestNGMethod> includedMethods,
List<ITestNGMethod> allMethods,
String[] includedGroups,
Set<String> outGroups,
Set<ITestNGMethod> outMethods) |
static void |
MethodHelper.fixMethodsWithClass(ITestNGMethod[] methods,
ITestClass testCls,
List<ITestNGMethod> methodList) |
static List<ITestNGMethod> |
MethodHelper.getMethodsDependedUpon(ITestNGMethod method,
ITestNGMethod[] methods,
Comparator<ITestNGMethod> comparator) |
AbstractParallelWorker.Arguments.Builder |
AbstractParallelWorker.Arguments.Builder.methods(List<ITestNGMethod> methods) |
static List<IMethodInstance> |
MethodHelper.methodsToMethodInstances(List<ITestNGMethod> sl) |
void |
MethodSelectorDescriptor.setTestMethods(List<ITestNGMethod> testMethods) |
void |
RunInfo.setTestMethods(List<ITestNGMethod> testMethods) |
void |
XmlMethodSelector.setTestMethods(List<ITestNGMethod> testMethods) |
static List<ITestNGMethod> |
MethodHelper.uniqueMethodList(Collection<List<ITestNGMethod>> methods)
Extracts the unique list of
ITestNGMethod s. |
Constructor and Description |
---|
ClonedMethod(ITestNGMethod method,
Method javaMethod) |
ConfigurationGroupMethods(ITestNGMethod[] allMethods,
Map<String,List<ITestNGMethod>> beforeGroupsMethods,
Map<String,List<ITestNGMethod>> afterGroupsMethods) |
ExpectedExceptionsHolder(IAnnotationFinder finder,
ITestNGMethod method,
IExpectedExceptionsHolder holder) |
InvokedMethod(Object instance,
ITestNGMethod method,
long date,
ITestResult testResult) |
InvokeMethodRunnable(ITestNGMethod thisMethod,
Object instance,
Object[] parameters,
IHookable hookable,
ITestResult testResult) |
MethodInstance(ITestNGMethod method) |
RegexpExpectedExceptionsHolder(IAnnotationFinder finder,
ITestNGMethod method) |
TestMethodWithDataProviderMethodWorker(Invoker invoker,
ITestNGMethod testMethod,
int parameterIndex,
Object[] parameterValues,
Object instance,
XmlSuite suite,
Map<String,String> parameters,
ITestClass testClass,
ITestNGMethod[] beforeMethods,
ITestNGMethod[] afterMethods,
ConfigurationGroupMethods groupMethods,
ExpectedExceptionsHolder expectedExceptionHolder,
ITestContext testContext,
boolean skipFailedInvocationCounts,
int invocationCount,
int failureCount,
ITestResultNotifier notifier) |
TestMethodWithDataProviderMethodWorker(Invoker invoker,
ITestNGMethod testMethod,
int parameterIndex,
Object[] parameterValues,
Object instance,
XmlSuite suite,
Map<String,String> parameters,
ITestClass testClass,
ITestNGMethod[] beforeMethods,
ITestNGMethod[] afterMethods,
ConfigurationGroupMethods groupMethods,
ExpectedExceptionsHolder expectedExceptionHolder,
ITestContext testContext,
boolean skipFailedInvocationCounts,
int invocationCount,
int failureCount,
ITestResultNotifier notifier) |
TestMethodWithDataProviderMethodWorker(Invoker invoker,
ITestNGMethod testMethod,
int parameterIndex,
Object[] parameterValues,
Object instance,
XmlSuite suite,
Map<String,String> parameters,
ITestClass testClass,
ITestNGMethod[] beforeMethods,
ITestNGMethod[] afterMethods,
ConfigurationGroupMethods groupMethods,
ExpectedExceptionsHolder expectedExceptionHolder,
ITestContext testContext,
boolean skipFailedInvocationCounts,
int invocationCount,
int failureCount,
ITestResultNotifier notifier) |
TestResult(IClass testClass,
Object instance,
ITestNGMethod method,
Throwable throwable,
long start,
long end,
ITestContext context) |
TestResult(Object instance,
ITestNGMethod method,
Throwable throwable,
ITestContext context) |
WrappedTestNGMethod(ITestNGMethod testNGMethod) |
Constructor and Description |
---|
ConfigurationGroupMethods(ITestNGMethod[] allMethods,
Map<String,List<ITestNGMethod>> beforeGroupsMethods,
Map<String,List<ITestNGMethod>> afterGroupsMethods) |
ConfigurationGroupMethods(ITestNGMethod[] allMethods,
Map<String,List<ITestNGMethod>> beforeGroupsMethods,
Map<String,List<ITestNGMethod>> afterGroupsMethods) |
TestNGMethodFinder(RunInfo runInfo,
IAnnotationFinder annotationFinder,
Comparator<ITestNGMethod> comparator) |
Modifier and Type | Method and Description |
---|---|
static ITestNGMethod[] |
AnnotationHelper.findMethodsWithAnnotation(Class<?> rootClass,
Class<? extends IAnnotation> annotationClass,
IAnnotationFinder annotationFinder,
XmlTest xmlTest)
Delegation method for creating the list of
ITestMethod s to be
analysed. |
Modifier and Type | Method and Description |
---|---|
<A extends IAnnotation> |
IAnnotationFinder.findAnnotation(ITestNGMethod m,
Class<A> annotationClass) |
<A extends IAnnotation> |
JDK15AnnotationFinder.findAnnotation(ITestNGMethod tm,
Class<A> annotationClass) |
static ITestAnnotation |
AnnotationHelper.findTest(IAnnotationFinder finder,
ITestNGMethod m) |
Modifier and Type | Class and Description |
---|---|
class |
JUnit3TestMethod |
class |
JUnit4TestMethod |
class |
JUnitTestMethod |
Modifier and Type | Method and Description |
---|---|
List<ITestNGMethod> |
JUnit4TestRunner.getTestMethods()
Needed from TestRunner in order to figure out what JUnit test methods
were run.
|
List<ITestNGMethod> |
IJUnitTestRunner.getTestMethods() |
List<ITestNGMethod> |
JUnitTestRunner.getTestMethods()
Needed from TestRunner in order to figure out what JUnit test methods were run.
|
Modifier and Type | Method and Description |
---|---|
protected void |
EmailableReporter.generateExceptionReport(Throwable exception,
ITestNGMethod method) |
Modifier and Type | Method and Description |
---|---|
static StackTraceElement[] |
StackTraceTools.getTestNGInstrastructure(StackTraceElement[] stack,
ITestNGMethod method)
Finds topmost position of the test method in the stack, or top of stack if
method is not in it. |
static int |
StackTraceTools.getTestRoot(StackTraceElement[] stack,
ITestNGMethod method)
Finds topmost position of the test method in the stack, or top of stack if
method is not in it. |
Copyright © 2024. All rights reserved.