Package io.karatelabs.gatling
Class KarateUriPattern
java.lang.Object
io.karatelabs.gatling.KarateUriPattern
Represents a URI pattern with optional method-specific pause configurations.
URI patterns can include path parameters like "/users/{id}".
Example usage:
KarateUriPattern pattern = KarateUriPattern.uri("/cats/{id}")
.pauseFor(method("get", 10), method("post", 20))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for KarateUriPattern. -
Method Summary
Modifier and TypeMethodDescriptionGet all method pause configurations.Get the URI pattern string.intgetPauseFor(String method) Get the pause duration for a specific HTTP method.static KarateUriPattern.BuilderCreate a builder for a URI pattern.
-
Method Details
-
getPattern
Get the URI pattern string. -
getPauseFor
Get the pause duration for a specific HTTP method.- Parameters:
method- the HTTP method (GET, POST, etc.)- Returns:
- the pause duration in milliseconds, or 0 if not specified
-
getMethodPauses
Get all method pause configurations. -
uri
Create a builder for a URI pattern.- Parameters:
pattern- the URI pattern (e.g., "/users/{id}")- Returns:
- a new builder
-