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 TypeMethodDescriptionint
duration()
static UsageScenario.RunResult
scenario()
static UsageScenario.RunResult
boolean
-
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.RunResult
instance
-
failure
- Parameters:
scenarioName
- the name of the usage scenarioexception
- the exception- Returns:
- a new
UsageScenario.RunResult
instance
-