Package org.testng

Interface ITestClass

  • All Superinterfaces:
    IClass
    All Known Implementing Classes:
    JUnit3TestClass, JUnit4TestClass, JUnitTestClass

    public interface ITestClass
    extends IClass
    This class represents a test class:
    • The test methods
    • The configuration methods (test and method)
    • The class file
    Note that the methods returned by instances of this class are expected to be correct at runtime. In other words, they might differ from what the ITestMethodFinder returned since ITestClass will take into account the groups being included and excluded.
    • 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.