Package io.ryos.rhino.sdk.runners
Interface SimulationRunner
-
- All Known Implementing Classes:
AbstractSimulationRunner
,ReactiveHttpSimulationRunner
public interface SimulationRunner
Simulation controller to start and stop simulations. Simulations will be run depending on the method being called as load, performance or verification tests.- Author:
- Erhan Bagdemir
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
start()
Starts a simulation instance for load testing.void
stop()
Stop the simulation instance immediately by shutting down all components.void
times(int numberOfRepeats)
Starts a simulation instance for the number of times given as numberOfRepeats parameter.void
verify()
Starts a simulation instance for verification testing in which the test will be run once and depending onVerifiableDslItem
DSL, the test will fail or pass.
-
-
-
Method Detail
-
start
void start()
Starts a simulation instance for load testing. The test will be run till the time is over, that is defined in theSimulation
annotation, orEnsureDsl
DSL item fails.
-
verify
void verify()
Starts a simulation instance for verification testing in which the test will be run once and depending onVerifiableDslItem
DSL, the test will fail or pass.
-
times
void times(int numberOfRepeats)
Starts a simulation instance for the number of times given as numberOfRepeats parameter. This method is handy if you run performance tests and take samples for fix sized executions.- Parameters:
numberOfRepeats
- Number of cycles the simulation needs to run.
-
stop
void stop()
Stop the simulation instance immediately by shutting down all components.
-
-