Class LoadStep
LoadScenario: the request to fire and the optional
think-time to wait before firing the next step in the same iteration.
The request reuses HttpRequest; per-iteration template placeholders
(e.g. $iteration.index, $uuid) live in its fields (path, body,
headers, query) and are rendered fresh each iteration by the orchestrator using
the scenario's templateType.
thinkTime is inter-step pacing only — the orchestrator schedules the
next step after thinkTime.sampleValueMillis() on its scheduler thread and
never calls Delay.applyDelay() (which would block a worker thread). A null
thinkTime means no pause.
Cross-step correlation is declarative: getCaptures() extracts values from this step's
response into the iteration's mutable captured-variable map, which a subsequent step references from
its templated fields via $iteration.captured.<name>. See LoadCapture for scope.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCross-step capture rules for this step (may be null/empty).Step-level custom labels (may be null/empty).getName()Optional human label for this step (may be null).Relative selection weight for WEIGHTED step selection (may be null = treated as 1.0).static LoadSteploadStep()static LoadSteploadStep(HttpRequest request) withCapture(LoadCapture capture) withCaptures(List<LoadCapture> captures) withLabels(Map<String, String> labels) withRequest(HttpRequest request) withThinkTime(Delay thinkTime) withWeight(Double weight) Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
-
Constructor Details
-
LoadStep
public LoadStep()
-
-
Method Details
-
loadStep
-
loadStep
-
getRequest
-
withRequest
-
getThinkTime
-
withThinkTime
-
getName
Optional human label for this step (may be null). Seename. -
withName
-
getLabels
Step-level custom labels (may be null/empty). Seelabels. -
withLabels
-
withLabel
-
getCaptures
Cross-step capture rules for this step (may be null/empty). Seecaptures. -
withCaptures
-
withCapture
-
getWeight
Relative selection weight for WEIGHTED step selection (may be null = treated as 1.0). Seeweight. -
withWeight
-