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
public class TestOrConfiguration extends BaseAnnotation implements ITestOrConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]m_dependsOnGroupsprivate java.lang.String[]m_dependsOnMethodsprivate java.lang.Stringm_descriptionprivate booleanm_enabledprivate java.lang.String[]m_groupsprivate intm_priorityprivate longm_timeOut
-
Constructor Summary
Constructors Constructor Description TestOrConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getDependsOnGroups()The list of groups this method depends on.java.lang.String[]getDependsOnMethods()The list of methods this method depends on.java.lang.StringgetDescription()The description for this method, which will be shown in the reports.booleangetEnabled()Whether this annotation is enabled.java.lang.String[]getGroups()The list of groups this class/method belongs to.intgetPriority()longgetTimeOut()Returns the maximum number of milliseconds this test should take.voidsetDependsOnGroups(java.lang.String[] dependsOnGroups)voidsetDependsOnMethods(java.lang.String[] dependsOnMethods)voidsetDescription(java.lang.String description)voidsetEnabled(boolean enabled)voidsetGroups(java.lang.String[] groups)voidsetPriority(int priority)voidsetTimeOut(long timeOut)-
Methods inherited from class org.testng.internal.annotations.BaseAnnotation
getConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClass
-
-
-
-
Field Detail
-
m_groups
private java.lang.String[] m_groups
-
m_enabled
private boolean m_enabled
-
m_dependsOnGroups
private java.lang.String[] m_dependsOnGroups
-
m_dependsOnMethods
private java.lang.String[] m_dependsOnMethods
-
m_description
private java.lang.String m_description
-
m_priority
private int m_priority
-
m_timeOut
private long m_timeOut
-
-
Method Detail
-
getGroups
public java.lang.String[] getGroups()
Description copied from interface:ITestOrConfigurationThe list of groups this class/method belongs to.- Specified by:
getGroupsin interfaceITestOrConfiguration
-
getEnabled
public boolean getEnabled()
Description copied from interface:IParameterizableWhether this annotation is enabled.- Specified by:
getEnabledin interfaceIParameterizable
-
setDependsOnGroups
public void setDependsOnGroups(java.lang.String[] dependsOnGroups)
- Specified by:
setDependsOnGroupsin interfaceITestOrConfiguration
-
setDependsOnMethods
public void setDependsOnMethods(java.lang.String[] dependsOnMethods)
- Specified by:
setDependsOnMethodsin interfaceITestOrConfiguration
-
setGroups
public void setGroups(java.lang.String[] groups)
- Specified by:
setGroupsin interfaceITestOrConfiguration
-
getDescription
public java.lang.String getDescription()
Description copied from interface:ITestOrConfigurationThe description for this method, which will be shown in the reports.- Specified by:
getDescriptionin interfaceITestOrConfiguration
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfaceIParameterizable
-
getDependsOnGroups
public java.lang.String[] getDependsOnGroups()
Description copied from interface:ITestOrConfigurationThe 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.- Specified by:
getDependsOnGroupsin interfaceITestOrConfiguration
-
getDependsOnMethods
public java.lang.String[] getDependsOnMethods()
Description copied from interface:ITestOrConfigurationThe 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.
- Specified by:
getDependsOnMethodsin interfaceITestOrConfiguration
-
setDescription
public void setDescription(java.lang.String description)
- 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()
Description copied from interface:ITestOrConfigurationReturns the maximum number of milliseconds this test should take. If it hasn't returned after this time, it will be marked as a FAIL.- Specified by:
getTimeOutin interfaceITestOrConfiguration- Returns:
- the maximum number of milliseconds this test should take.
-
-