|
||||||||||
| 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 ITestpublic void setExpectedExceptions(java.lang.Class<?>[] expectedExceptions)
setExpectedExceptions in interface ITestexpectedExceptions - the expectedExceptions to setpublic void setAlwaysRun(boolean alwaysRun)
setAlwaysRun in interface ITestpublic void setDataProvider(java.lang.String dataProvider)
public java.lang.Class<?> getDataProviderClass()
getDataProviderClass in interface ITestpublic void setDataProviderClass(java.lang.Class<?> dataProviderClass)
public void setInvocationCount(int invocationCount)
setInvocationCount in interface ITestpublic void setSuccessPercentage(int successPercentage)
setSuccessPercentage in interface ITestpublic void setTimeOut(long timeOut)
setTimeOut in interface ITestpublic long getTimeOut()
ITest
getTimeOut in interface ITestpublic int getInvocationCount()
ITest
getInvocationCount in interface ITestpublic int getSuccessPercentage()
ITest
getSuccessPercentage in interface ITestpublic java.lang.String getDataProvider()
getDataProvider in interface ITestpublic boolean getAlwaysRun()
ITest
getAlwaysRun in interface ITestpublic int getThreadPoolSize()
ITest
getThreadPoolSize in interface ITestpublic void setThreadPoolSize(int threadPoolSize)
setThreadPoolSize in interface ITestpublic java.lang.String getSuiteName()
getSuiteName in interface ITestpublic void setSuiteName(java.lang.String xmlSuite)
setSuiteName in interface ITestpublic java.lang.String getTestName()
getTestName in interface ITestpublic void setTestName(java.lang.String xmlTest)
setTestName in interface ITestpublic boolean getSequential()
getSequential in interface ITestpublic void setSequential(boolean sequential)
setSequential in interface ITestpublic IRetryAnalyzer getRetryAnalyzer()
getRetryAnalyzer in interface ITestpublic void setRetryAnalyzer(java.lang.Class<?> c)
setRetryAnalyzer in interface ITestpublic void setSkipFailedInvocations(boolean skip)
setSkipFailedInvocations in interface ITestpublic boolean skipFailedInvocations()
skipFailedInvocations in interface ITest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||