|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.testng.internal.annotations.BaseAnnotation
org.testng.internal.annotations.TestOrConfiguration
org.testng.internal.annotations.TestAnnotation
public class TestAnnotation
An implementation of ITest Created on Dec 20, 2005
Constructor Summary | |
---|---|
TestAnnotation()
|
Method Summary | |
---|---|
boolean |
getAlwaysRun()
If set to true, this test method will always be run even if it depends on a method that failed. |
java.lang.String |
getDataProvider()
|
java.lang.Class<?> |
getDataProviderClass()
|
java.lang.Class<?>[] |
getExpectedExceptions()
|
int |
getInvocationCount()
Returns the number of times this method should be invoked. |
IRetryAnalyzer |
getRetryAnalyzer()
|
boolean |
getSequential()
|
int |
getSuccessPercentage()
The percentage of success expected from this method. |
java.lang.String |
getSuiteName()
|
java.lang.String |
getTestName()
|
int |
getThreadPoolSize()
The size of the thread pool for this method. |
long |
getTimeOut()
Returns the maximum number of milliseconds this test should take. |
void |
setAlwaysRun(boolean alwaysRun)
|
void |
setDataProvider(java.lang.String dataProvider)
|
void |
setDataProviderClass(java.lang.Class<?> dataProviderClass)
|
void |
setExpectedExceptions(java.lang.Class<?>[] expectedExceptions)
|
void |
setInvocationCount(int invocationCount)
|
void |
setRetryAnalyzer(java.lang.Class<?> c)
|
void |
setSequential(boolean sequential)
|
void |
setSkipFailedInvocations(boolean skip)
|
void |
setSuccessPercentage(int successPercentage)
|
void |
setSuiteName(java.lang.String xmlSuite)
|
void |
setTestName(java.lang.String xmlTest)
|
void |
setThreadPoolSize(int threadPoolSize)
|
void |
setTimeOut(long timeOut)
|
boolean |
skipFailedInvocations()
|
Methods inherited from class org.testng.internal.annotations.TestOrConfiguration |
---|
getDependsOnGroups, getDependsOnMethods, getDescription, getEnabled, getGroups, getParameters, setDependsOnGroups, setDependsOnMethods, setDescription, setEnabled, setGroups, setParameters |
Methods inherited from class org.testng.internal.annotations.BaseAnnotation |
---|
getConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.testng.internal.annotations.ITestOrConfiguration |
---|
getDependsOnGroups, getDependsOnMethods, getDescription, getEnabled, getGroups, setDependsOnGroups, setDependsOnMethods, setGroups |
Methods inherited from interface org.testng.internal.annotations.IParameterizable |
---|
getParameters |
Constructor Detail |
---|
public TestAnnotation()
Method Detail |
---|
public java.lang.Class<?>[] getExpectedExceptions()
getExpectedExceptions
in interface ITest
public void setExpectedExceptions(java.lang.Class<?>[] expectedExceptions)
setExpectedExceptions
in interface ITest
expectedExceptions
- the expectedExceptions to setpublic void setAlwaysRun(boolean alwaysRun)
setAlwaysRun
in interface ITest
public void setDataProvider(java.lang.String dataProvider)
public java.lang.Class<?> getDataProviderClass()
getDataProviderClass
in interface ITest
public void setDataProviderClass(java.lang.Class<?> dataProviderClass)
public void setInvocationCount(int invocationCount)
setInvocationCount
in interface ITest
public void setSuccessPercentage(int successPercentage)
setSuccessPercentage
in interface ITest
public void setTimeOut(long timeOut)
setTimeOut
in interface ITest
public long getTimeOut()
ITest
getTimeOut
in interface ITest
public int getInvocationCount()
ITest
getInvocationCount
in interface ITest
public int getSuccessPercentage()
ITest
getSuccessPercentage
in interface ITest
public java.lang.String getDataProvider()
getDataProvider
in interface ITest
public boolean getAlwaysRun()
ITest
getAlwaysRun
in interface ITest
public int getThreadPoolSize()
ITest
getThreadPoolSize
in interface ITest
public void setThreadPoolSize(int threadPoolSize)
setThreadPoolSize
in interface ITest
public java.lang.String getSuiteName()
getSuiteName
in interface ITest
public void setSuiteName(java.lang.String xmlSuite)
setSuiteName
in interface ITest
public java.lang.String getTestName()
getTestName
in interface ITest
public void setTestName(java.lang.String xmlTest)
setTestName
in interface ITest
public boolean getSequential()
getSequential
in interface ITest
public void setSequential(boolean sequential)
setSequential
in interface ITest
public IRetryAnalyzer getRetryAnalyzer()
getRetryAnalyzer
in interface ITest
public void setRetryAnalyzer(java.lang.Class<?> c)
setRetryAnalyzer
in interface ITest
public void setSkipFailedInvocations(boolean skip)
setSkipFailedInvocations
in interface ITest
public boolean skipFailedInvocations()
skipFailedInvocations
in interface ITest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |