Package org.testng.internal.annotations
Class TestOrConfiguration
java.lang.Object
org.testng.internal.annotations.BaseAnnotation
org.testng.internal.annotations.TestOrConfiguration
- All Implemented Interfaces:
IAnnotation,IParameterizable,ITestOrConfiguration
- Direct Known Subclasses:
BaseBeforeAfter,ConfigurationAnnotation,TestAnnotation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]String[]booleanWhether this annotation is enabled.String[]intlongvoidsetDependsOnGroups(String[] dependsOnGroups) voidsetDependsOnMethods(String[] dependsOnMethods) voidsetDescription(String description) voidsetEnabled(boolean enabled) voidvoidsetPriority(int priority) voidsetTimeOut(long timeOut) Methods inherited from class org.testng.internal.annotations.BaseAnnotation
getConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClass
-
Field Details
-
m_groups
-
m_enabled
private boolean m_enabled -
m_dependsOnGroups
-
m_dependsOnMethods
-
m_description
-
m_priority
private int m_priority -
m_timeOut
private long m_timeOut
-
-
Constructor Details
-
TestOrConfiguration
public TestOrConfiguration()
-
-
Method Details
-
getGroups
- Specified by:
getGroupsin interfaceITestOrConfiguration- Returns:
- The list of groups this class/method belongs to.
-
getEnabled
public boolean getEnabled()Description copied from interface:IParameterizableWhether this annotation is enabled.- Specified by:
getEnabledin interfaceIParameterizable- Returns:
- true if enabled
-
setDependsOnGroups
- Specified by:
setDependsOnGroupsin interfaceITestOrConfiguration
-
setDependsOnMethods
- Specified by:
setDependsOnMethodsin interfaceITestOrConfiguration
-
setGroups
- Specified by:
setGroupsin interfaceITestOrConfiguration
-
getDescription
- Specified by:
getDescriptionin interfaceITestOrConfiguration- Returns:
- The description for this method, which will be shown in the reports.
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceIParameterizable
-
getDependsOnGroups
- Specified by:
getDependsOnGroupsin interfaceITestOrConfiguration- Returns:
- The list of groups this method depends on. Every method member of one of these groups is guaranteed to have been invoked before this method. Furthermore, if any of these methods was not a SUCCESS, this test method will not be run and will be flagged as a SKIP.
-
getDependsOnMethods
- Specified by:
getDependsOnMethodsin interfaceITestOrConfiguration- Returns:
- The list of methods this method depends on. There is no guarantee on the order on which
the methods depended upon will be run, but you are guaranteed that all these methods will
be run before the test method that contains this annotation is run. Furthermore, if any of
these methods was not a SUCCESS, this test method will not be run and will be flagged as a
SKIP.
If some of these methods have been overloaded, all the overloaded versions will be run.
-
setDescription
- Specified by:
setDescriptionin interfaceITestOrConfiguration
-
getPriority
public int getPriority() -
setPriority
public void setPriority(int priority) -
setTimeOut
public void setTimeOut(long timeOut) - Specified by:
setTimeOutin interfaceITestOrConfiguration
-
getTimeOut
public long getTimeOut()- Specified by:
getTimeOutin interfaceITestOrConfiguration- Returns:
- Returns the maximum number of milliseconds this test should take. If it hasn't returned after this time, it will be marked as a FAIL.
-