- Type Parameters:
T- the type used to run the scenario
public interface Scenario<T>
Specifies a load test usage scenario.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAScenariobuilder.static interfacePerforms a load test scenario.static interfaceDescribes the results of a load test scenario run -
Method Summary
Modifier and TypeMethodDescriptionbuilder()intname()booleanRuns this scenario with the given applicationstatic <T> Scenario<T> scenario(Scenario.Performer<T> performer) static <T> Scenario<T> scenario(Scenario.Performer<T> performer, int defaultWeight)
-
Method Details
-
name
String name()- Returns:
- the name of this scenario
-
defaultWeight
int defaultWeight()- Returns:
- the default weight for this scenario, 1 by default
-
pause
- Parameters:
exception- the exception- Returns:
- true if the load test should be paused when the given exception occurs in this scenario
-
run
Runs this scenario with the given application- Parameters:
application- the application to use- Returns:
- the run result
-
builder
- Returns:
- a new
Scenario.Builder.PerformerStepinstance
-
scenario
- Type Parameters:
T- the load test application type- Parameters:
performer- the scenario performer- Returns:
- a new
Scenarioinstance
-
scenario
- Type Parameters:
T- the load test application type- Parameters:
performer- the scenario performerdefaultWeight- the default scenario weight- Returns:
- a new
Scenarioinstance
-