Package org.mockserver.load
Enum Class LoadScenario.StepSelection
- All Implemented Interfaces:
Serializable,Comparable<LoadScenario.StepSelection>,Constable
- Enclosing class:
- LoadScenario
How each iteration selects which steps to run from
LoadScenario.getSteps().-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefault: every iteration runs ALL steps in declared order (a multi-step user journey).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). -
Method Summary
Modifier and TypeMethodDescriptionstatic LoadScenario.StepSelectionReturns the enum constant of this class with the specified name.static LoadScenario.StepSelection[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SEQUENTIAL
Default: every iteration runs ALL steps in declared order (a multi-step user journey). Per-stepweightsare ignored. -
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
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
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 nameNullPointerException- if the argument is null
-