Annotation Type Seed


Defines the starting seed for a given test or the entire suite.

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
    Modifier and Type
    Optional Element
    Description
    The seed expressed as a hexadecimal long number or a string random to indicate randomized seed should be used (default value).
  • Element Details

    • value

      String value
      The seed expressed as a hexadecimal long number or a string random 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). See Seeds for more info.

      Default:
      "random"