Annotation Type Seed
If applied to the
suite, it semantically overrides SysGlobals.SYSPROP_RANDOM_SEED
, but
does not affect individual test cases (these should be repeatable anyway).
If applied to the method, it overrides the default randomized value that is derived from the global suite's seed.
Typically, you'll want to override the class's seed to make the test repeat a "fixed" scenario. Occasionally if there's a single failing test case for repeated tests, one may want to override both to fix both the class's randomness and a given test case randomness.
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueThe seed expressed as a hexadecimal long number or a stringrandom
to indicate randomized seed should be used (default value).The default value
random
can be used to construct a list of known seeds for which a test previously failed and a random seed in addition to that (coverage of previous failures + randomized run). SeeSeeds
for more info.- Default:
"random"
-