Package | Description |
---|---|
org.testng | |
org.testng.internal | |
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) |
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<org.testng.internal.thread.graph.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,
org.testng.internal.XmlMethodSelector xmlMethodSelector) |
Modifier and Type | Class and Description |
---|---|
class |
org.testng.internal.BaseTestMethod
Superclass to represent both @Test and @Configuration methods.
|
Modifier and Type | Class and Description |
---|---|
class |
JUnit3TestMethod |
class |
JUnit4TestMethod |
class |
JUnitTestMethod |
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> |
JUnit4TestRunner.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 © 2015. All rights reserved.