Package org.testng
Interface ITestClass
- All Superinterfaces:
IClass
- All Known Implementing Classes:
JUnit3TestClass
,JUnit4TestClass
,JUnitTestClass
,NoOpTestClass
,TestClass
This class represents a test class:
- The test methods
- The configuration methods (test and method)
- The class file
-
Method Summary
Modifier and TypeMethodDescriptionReturns all the methods that should be invoked after all the tests have been run on this class.Returns all @Configuration methods that should be invoked after certain groups.Returns all the methods that should be invoked after the suite has run.Returns all @Configuration methods that should be invoked last before any others in the current test.Returns all the methods that should be invoked after a test method completes.Return all the methods that should be invoked after the test class has been created and before any of its test methods is invoked.Returns all @Configuration methods that should be invoked before certain groups.Returns All the methods that should be invoked before the suite is run.Returns all @Configuration methods that should be invoked before any others in the current test.Returns all the methods that should be invoked before a test method is invoked.Returns all the applicable test methods.Methods inherited from interface org.testng.IClass
addInstance, getInstanceHashCodes, getInstances, getInstances, getName, getRealClass, getTestName, getXmlClass, getXmlTest
-
Method Details
-
getTestMethods
ITestNGMethod[] getTestMethods()Returns all the applicable test methods.- Returns:
- All the applicable test methods.
-
getBeforeTestMethods
ITestNGMethod[] getBeforeTestMethods()Returns all the methods that should be invoked before a test method is invoked.- Returns:
- All the methods that should be invoked before a test method is invoked.
-
getAfterTestMethods
ITestNGMethod[] getAfterTestMethods()Returns all the methods that should be invoked after a test method completes.- Returns:
- All the methods that should be invoked after a test method completes.
-
getBeforeClassMethods
ITestNGMethod[] 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.- Returns:
- All the methods that should be invoked after the test class has been created and before any of its test methods is invoked.
-
getAfterClassMethods
ITestNGMethod[] getAfterClassMethods()Returns all the methods that should be invoked after all the tests have been run on this class.- Returns:
- All the methods that should be invoked after all the tests have been run on this class.
-
getBeforeSuiteMethods
ITestNGMethod[] getBeforeSuiteMethods()Returns All the methods that should be invoked before the suite is run.- Returns:
- All the methods that should be invoked before the suite is run.
-
getAfterSuiteMethods
ITestNGMethod[] getAfterSuiteMethods()Returns all the methods that should be invoked after the suite has run.- Returns:
- All the methods that should be invoked after the suite has run.
-
getBeforeTestConfigurationMethods
ITestNGMethod[] getBeforeTestConfigurationMethods()Returns all @Configuration methods that should be invoked before any others in the current test.- Returns:
- all @Configuration methods that should be invoked before any others in the current test.
-
getAfterTestConfigurationMethods
ITestNGMethod[] getAfterTestConfigurationMethods()Returns all @Configuration methods that should be invoked last before any others in the current test.- Returns:
- all @Configuration methods that should be invoked last before any others in the current test.
-
getBeforeGroupsMethods
ITestNGMethod[] getBeforeGroupsMethods()Returns all @Configuration methods that should be invoked before certain groups.- Returns:
- all @Configuration methods that should be invoked before certain groups.
-
getAfterGroupsMethods
ITestNGMethod[] getAfterGroupsMethods()Returns all @Configuration methods that should be invoked after certain groups.- Returns:
- all @Configuration methods that should be invoked after certain groups.
-