Interface UsageScenario<T>
- Type Parameters:
T
- the type used to run the scenario
- All Known Implementing Classes:
AbstractEntityUsageScenario
,AbstractUsageScenario
,QueryLoadTestModel.QueryScenario
public interface UsageScenario<T>
Specifies a load test usage scenario.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Describes the results of a load test scenario run -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the exceptions that have been collected so farint
int
The maximum time in milliseconds this scenario can run before issuing a warning.name()
void
Resets the run countersRuns this scenario with the given applicationint
int
int
-
Method Details
-
name
String name()- Returns:
- the name of this scenario
-
defaultWeight
int defaultWeight()- Returns:
- the default weight for this scenario, 1 by default
-
maximumTime
int maximumTime()The maximum time in milliseconds this scenario can run before issuing a warning.- Returns:
- the warning time
-
run
Runs this scenario with the given application- Parameters:
application
- the application to use- Returns:
- the run result
-
totalRunCount
int totalRunCount()- Returns:
- the total number of times this scenario has been run
-
exceptions
- Returns:
- any exceptions that have occurred during a run
-
resetRunCount
void resetRunCount()Resets the run counters -
clearExceptions
void clearExceptions()Clears the exceptions that have been collected so far -
successfulRunCount
int successfulRunCount()- Returns:
- the number of times this scenario has been successfully run
-
unsuccessfulRunCount
int unsuccessfulRunCount()- Returns:
- the number of times this scenario has been unsuccessfully run
-