@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Repeat
times()
This annotation can be applied at the test method level and will
repeat a given test the number of times as specified by the times attribute.
The test will be executed with exactly the same set of parameters as specified for a single run of the test.
Note that in case you have specified 3 different input sets for the same test method and also have a Repeat annotation
on that test method with the times() attribute set to 5, then the test will be executed for a total of 15(3 * 5) times.
Currently, there is no way to specify the repeat for a given set of test input.| Modifier and Type | Required Element and Description |
|---|---|
int |
times
The number of times a given test method must be repeated
|
Copyright © 2014. All rights reserved.