Interface UsageScenario.RunResult
- Enclosing interface:
- UsageScenario<T>
public static interface UsageScenario.RunResult
Describes the results of a load test scenario run
-
Method Summary
Modifier and TypeMethodDescriptionintduration()static UsageScenario.RunResultscenario()static UsageScenario.RunResultboolean
-
Method Details
-
scenario
String scenario()- Returns:
- the usage scenario name
-
duration
int duration()- Returns:
- the duration in microseconds
-
successful
boolean successful()- Returns:
- true if the run was successful
-
exception
- Returns:
- the exception in case the run was unsuccessful, otherwise an empty optional
-
success
- Parameters:
scenarioName- the name of the usage scenarioduration- the duriation in microseconds- Returns:
- a new
UsageScenario.RunResultinstance
-
failure
- Parameters:
scenarioName- the name of the usage scenarioexception- the exception- Returns:
- a new
UsageScenario.RunResultinstance
-