@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface ParallelSuite
Suite level Annotation that is used
to run test classes defined in Suite, in Parallel.
A user can use the annotation as it is without specifying
any threads value in which case Executors.newCachedThreadPool() method is used
to create a Thread Pool.
In case the value of threads attribute is specified and it is greater than 0,
Executors.newFixedThreadPool(int) method is used to create a fixed thread pool| Modifier and Type | Optional Element and Description |
|---|---|
int |
threads
Number of threads to start while executing the test classes in the given suite class
If the value is ZERO or a NEGATIVE number,
Executors.newCachedThreadPool() is used
to create thread pools else Executors.newFixedThreadPool(int) is used with the supplied thread count |
public abstract int threads
Executors.newCachedThreadPool() is used
to create thread pools else Executors.newFixedThreadPool(int) is used with the supplied thread countCopyright © 2014. All rights reserved.