Enum Class LoadScenario.StepSelection

java.lang.Object
java.lang.Enum<LoadScenario.StepSelection>
org.mockserver.load.LoadScenario.StepSelection
All Implemented Interfaces:
Serializable, Comparable<LoadScenario.StepSelection>, Constable
Enclosing class:
LoadScenario

public static enum LoadScenario.StepSelection extends Enum<LoadScenario.StepSelection>
How each iteration selects which steps to run from LoadScenario.getSteps().
  • Enum Constant Details

    • SEQUENTIAL

      public static final LoadScenario.StepSelection SEQUENTIAL
      Default: every iteration runs ALL steps in declared order (a multi-step user journey). Per-step weights are ignored.
    • WEIGHTED

      public static final LoadScenario.StepSelection WEIGHTED
      Each iteration runs exactly ONE step, chosen at random with probability proportional to the steps' weights (mixed-workload modelling, e.g. 70% browse / 20% search / 10% checkout). Because a WEIGHTED iteration runs a single step, cross-step captures have no later step to consume them and so are meaningful only under SEQUENTIAL; feeder data and pacing apply to both modes.
  • Method Details

    • values

      public static LoadScenario.StepSelection[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LoadScenario.StepSelection valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null