public static interface Scenario.Result
Describes the results of a load test scenario run
-
Method Summary
Modifier and TypeMethodDescriptionlongduration()static Scenario.Resultscenario()longstarted()static Scenario.Resultboolean
-
Method Details
-
scenario
String scenario()- Returns:
- the usage scenario name
-
started
long started()- Returns:
- the time the scenario run started
-
duration
long duration()- Returns:
- the duration in microseconds, -1 in case of failure
-
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 scenariostarted- the start timeduration- the duriation in microseconds- Returns:
- a new
Scenario.Resultinstance
-
failure
- Parameters:
scenarioName- the name of the usage scenariostarted- the start timeexception- the exception- Returns:
- a new
Scenario.Resultinstance
-