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