Top Description Methods
org.testng

public Interface ITestClass

extends IClass
Known Direct Implementers
org.testng.internal.NoOpTestClass, org.testng.TestClass

This class represents a test class: 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 Summary

Modifier and TypeMethod and Description
public ITestNGMethod[]

Returns:

All the methods that should be invoked after all the tests have been run on this class.
getAfterClassMethods
()

Returns all the methods that should be invoked after all the tests have been run on this class.

public ITestNGMethod[]

Returns:

all @Configuration methods that should be invoked after certain groups.
getAfterGroupsMethods
()

Returns all @Configuration methods that should be invoked after certain groups.

public ITestNGMethod[]

Returns:

All the methods that should be invoked after the suite has run.
getAfterSuiteMethods
()

Returns all the methods that should be invoked after the suite has run.

public ITestNGMethod[]

Returns:

all @Configuration methods that should be invoked last before any others in the current test.
getAfterTestConfigurationMethods
()

Returns all @Configuration methods that should be invoked last before any others in the current test.

public ITestNGMethod[]

Returns:

All the methods that should be invoked after a test method completes.
getAfterTestMethods
()

Returns all the methods that should be invoked after a test method completes.

public ITestNGMethod[]

Returns:

All the methods that should be invoked after the test class has been created and before any of its test methods is invoked.
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.

public ITestNGMethod[]

Returns:

all @Configuration methods that should be invoked before certain groups.
getBeforeGroupsMethods
()

Returns all @Configuration methods that should be invoked before certain groups.

public ITestNGMethod[]

Returns:

All the methods that should be invoked before the suite is run.
getBeforeSuiteMethods
()

Returns All the methods that should be invoked before the suite is run.

public ITestNGMethod[]

Returns:

all @Configuration methods that should be invoked before any others in the current test.
getBeforeTestConfigurationMethods
()

Returns all @Configuration methods that should be invoked before any others in the current test.

public ITestNGMethod[]

Returns:

All the methods that should be invoked before a test method is invoked.
getBeforeTestMethods
()

Returns all the methods that should be invoked before a test method is invoked.

public ITestNGMethod[]

Returns:

All the applicable test methods.
getTestMethods
()

Returns all the applicable test methods.

Inherited from org.testng.IClass:
addInstancegetInstanceHashCodesgetInstancesgetInstancesgetNamegetRealClassgetTestNamegetXmlClassgetXmlTest

Method Detail

getAfterClassMethodsback to summary
public ITestNGMethod[] getAfterClassMethods()

Returns all the methods that should be invoked after all the tests have been run on this class.

Returns:ITestNGMethod[]

All the methods that should be invoked after all the tests have been run on this class.

getAfterGroupsMethodsback to summary
public ITestNGMethod[] getAfterGroupsMethods()

Returns all @Configuration methods that should be invoked after certain groups.

Returns:ITestNGMethod[]

all @Configuration methods that should be invoked after certain groups.

getAfterSuiteMethodsback to summary
public ITestNGMethod[] getAfterSuiteMethods()

Returns all the methods that should be invoked after the suite has run.

Returns:ITestNGMethod[]

All the methods that should be invoked after the suite has run.

getAfterTestConfigurationMethodsback to summary
public ITestNGMethod[] getAfterTestConfigurationMethods()

Returns all @Configuration methods that should be invoked last before any others in the current test.

Returns:ITestNGMethod[]

all @Configuration methods that should be invoked last before any others in the current test.

getAfterTestMethodsback to summary
public ITestNGMethod[] getAfterTestMethods()

Returns all the methods that should be invoked after a test method completes.

Returns:ITestNGMethod[]

All the methods that should be invoked after a test method completes.

getBeforeClassMethodsback to summary
public 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:ITestNGMethod[]

All the methods that should be invoked after the test class has been created and before any of its test methods is invoked.

getBeforeGroupsMethodsback to summary
public ITestNGMethod[] getBeforeGroupsMethods()

Returns all @Configuration methods that should be invoked before certain groups.

Returns:ITestNGMethod[]

all @Configuration methods that should be invoked before certain groups.

getBeforeSuiteMethodsback to summary
public ITestNGMethod[] getBeforeSuiteMethods()

Returns All the methods that should be invoked before the suite is run.

Returns:ITestNGMethod[]

All the methods that should be invoked before the suite is run.

getBeforeTestConfigurationMethodsback to summary
public ITestNGMethod[] getBeforeTestConfigurationMethods()

Returns all @Configuration methods that should be invoked before any others in the current test.

Returns:ITestNGMethod[]

all @Configuration methods that should be invoked before any others in the current test.

getBeforeTestMethodsback to summary
public ITestNGMethod[] getBeforeTestMethods()

Returns all the methods that should be invoked before a test method is invoked.

Returns:ITestNGMethod[]

All the methods that should be invoked before a test method is invoked.

getTestMethodsback to summary
public ITestNGMethod[] getTestMethods()

Returns all the applicable test methods.

Returns:ITestNGMethod[]

All the applicable test methods.