- Type Parameters:
T- the type of application used by this load test.
public interface LoadTest<T>
Specifies a class for running multiple application instances for load testing purposes.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceHandles running a load test applicationstatic interfaceControls the load test applicationsstatic interfaceBuilds aLoadTest.static interfaceControls the load test think time -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Method Summary
-
Field Details
-
DEFAULT_MINIMUM_THINKTIME
static final int DEFAULT_MINIMUM_THINKTIME- See Also:
-
DEFAULT_MAXIMUM_THINKTIME
static final int DEFAULT_MAXIMUM_THINKTIME- See Also:
-
DEFAULT_LOGIN_DELAY_FACTOR
static final int DEFAULT_LOGIN_DELAY_FACTOR- See Also:
-
DEFAULT_APPLICATION_BATCH_SIZE
static final int DEFAULT_APPLICATION_BATCH_SIZE- See Also:
-
-
Method Details
-
shutdown
void shutdown()Shuts down and removes all applications -
name
- Returns:
- the load test name, or an empty Optional if none is available
-
scenarios
Collection<Scenario<T>> scenarios()- Returns:
- the usage scenarios used by this load test.
-
result
Observer<Scenario.Result> result()- Returns:
- an observer notified each time a run result is produced
-
shuttingDown
Observer<?> shuttingDown()- Returns:
- an observer notified when this load test model has been shutdown.
-
paused
State paused()- Returns:
- the
Statecontrolling the paused state of this load test
-
pauseOnException
State pauseOnException()- Returns:
- the
Statecontrolling if the load test is automatically paused when an exception occures in a scenario run - See Also:
-
applications
LoadTest.Applications applications()- Returns:
- the
LoadTest.Applications
-
thinkTime
LoadTest.ThinkTime thinkTime()- Returns:
- the think time
-
randomizer
ItemRandomizer<Scenario<T>> randomizer()- Returns:
- the randomizer used to select scenarios
-
builder
- Returns:
- a
LoadTest.Builder.CreateApplicationStepinstance
-