Package | Description |
---|---|
org.testng | |
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[] |
ITestContext.getAllTestMethods() |
ITestNGMethod[] |
TestRunner.getAllTestMethods() |
protected ITestNGMethod[] |
TestListenerAdapter.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 |
IMethodInstance.getMethod() |
ITestNGMethod |
ITestResult.getMethod() |
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 |
---|---|
List<org.testng.internal.thread.graph.IWorker<ITestNGMethod>> |
TestRunner.createWorkers(Set<ITestNGMethod> methods)
Create a list of workers to run the methods passed in parameter.
|
Collection<ITestNGMethod> |
IResultMap.getAllMethods() |
Collection<ITestNGMethod> |
ITestContext.getExcludedMethods() |
Collection<ITestNGMethod> |
ISuite.getExcludedMethods() |
Collection<ITestNGMethod> |
TestRunner.getExcludedMethods() |
Collection<ITestNGMethod> |
SuiteRunner.getExcludedMethods() |
Collection<ITestNGMethod> |
ISuite.getInvokedMethods()
Deprecated.
Use getAllInvokedMthods().
|
List<ITestNGMethod> |
TestRunner.getInvokedMethods() |
Collection<ITestNGMethod> |
SuiteRunner.getInvokedMethods() |
Map<String,Collection<ITestNGMethod>> |
ISuite.getMethodsByGroups()
Retrieves the map of groups and their associated test methods.
|
Map<String,Collection<ITestNGMethod>> |
SuiteRunner.getMethodsByGroups() |
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) |
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) |
Set<ITestResult> |
TestRunner.getPassedTests(ITestNGMethod tm) |
Set<ITestResult> |
IResultMap.getResults(ITestNGMethod method) |
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<org.testng.internal.thread.graph.IWorker<ITestNGMethod>> |
TestRunner.createWorkers(Set<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 |
---|
ClassMethodMap(ITestNGMethod[] methods) |
Modifier and Type | Class and Description |
---|---|
static class |
JUnitUtils.JUnitTestMethod
An
ITestNMethod implementation for test methods in JUnit. |
Modifier and Type | Method and Description |
---|---|
List<ITestNGMethod> |
JUnitTestRunner.getTestMethods()
Needed from TestRunner in order to figure out what JUnit test methods were run.
|
List<ITestNGMethod> |
IJUnitTestRunner.getTestMethods() |
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 © 2012. All Rights Reserved.