@Retention(value=RUNTIME) @Target(value={METHOD,TYPE,CONSTRUCTOR}) public @interface Test
Modifier and Type | Optional Element and Description |
---|---|
boolean |
alwaysRun
If set to true, this test method will always be run even if it depends
on a method that failed.
|
String |
dataProvider
The name of the data provider for this test method.
|
Class<?> |
dataProviderClass
The class where to look for the data provider.
|
String[] |
dependsOnGroups
The list of groups this method depends on.
|
String[] |
dependsOnMethods
The list of methods this method depends on.
|
String |
description
The description for this method.
|
boolean |
enabled
Whether methods on this class/method are enabled.
|
Class[] |
expectedExceptions
The list of exceptions that a test method is expected to throw.
|
String |
expectedExceptionsMessageRegExp
If expectedExceptions was specified, its message must match the regular expression
specified in this attribute.
|
String[] |
groups
The list of groups this class/method belongs to.
|
boolean |
ignoreMissingDependencies
If set to true, this test will run even if the methods
it depends on are missing or excluded.
|
int |
invocationCount
The number of times this method should be invoked.
|
long |
invocationTimeOut
The maximum number of milliseconds that the total number of invocations on this test
method should take.
|
String[] |
parameters
Deprecated.
Use @Parameters
|
int |
priority
The scheduling priority.
|
Class |
retryAnalyzer
The name of the class that should be called to test if the test
should be retried.
|
boolean |
sequential
Deprecated.
Use singleThreaded
|
boolean |
singleThreaded
If set to true, all the methods on this test class are guaranteed to run
in the same thread, even if the tests are currently being run with parallel="true".
|
boolean |
skipFailedInvocations
If true and invocationCount is specified with a value > 1,
then all invocations after a failure will be marked as a SKIP
instead of a FAIL.
|
int |
successPercentage
The percentage of success expected from this method.
|
String |
suiteName
The name of the suite this test class should be placed in.
|
String |
testName
The name of the test this test class should be placed in.
|
int |
threadPoolSize
The size of the thread pool for this method.
|
long |
timeOut
The maximum number of milliseconds this test should take.
|
public abstract String[] groups
public abstract boolean enabled
@Deprecated public abstract String[] parameters
public abstract String[] dependsOnGroups
public abstract String[] dependsOnMethods
public abstract long timeOut
public abstract long invocationTimeOut
public abstract int invocationCount
public abstract int threadPoolSize
public abstract int successPercentage
public abstract String dataProvider
DataProvider
public abstract Class<?> dataProviderClass
public abstract boolean alwaysRun
public abstract String description
public abstract Class[] expectedExceptions
public abstract String expectedExceptionsMessageRegExp
public abstract String suiteName
public abstract String testName
public abstract boolean sequential
public abstract boolean singleThreaded
public abstract Class retryAnalyzer
public abstract boolean skipFailedInvocations
public abstract boolean ignoreMissingDependencies
public abstract int priority
Copyright © 2013. All Rights Reserved.