Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
com.griddynamics.jagger.user.test.configurations.JLoadScenario Class Reference

Describes the execution sequence of the load tests during single run
. More...

Classes

class  Builder
 

Public Member Functions

String getId ()
 
List< Provider
< LoadScenarioListener > > 
getListeners ()
 
List< Double > getPercentileValues ()
 
List< JParallelTestsGroupgetTestGroups ()
 

Static Public Member Functions

static Builder builder (Id id, List< JParallelTestsGroup > testGroups)
 Builder of the JLoadScenario
. More...
 
static Builder builder (Id id, JParallelTestsGroup testGroup, JParallelTestsGroup...testGroups)
 Builder of the JLoadScenario
. More...
 

Detailed Description

Describes the execution sequence of the load tests during single run
.

Details:

JLoadScenario describes the execution sequence of the load tests. Only single load scenario can be executed at a time
Project can contain multiple load scenarios
What load scenario to execute is defined by 'jagger.load.scenario.id.to.execute' property
You can set it via system properties or in the 'environment.properties' file

See Load scenario for more details

More information on the parameter of the test definition, you can find in the Builder documentation

Code example:

// begin: following section is used for docu generation - Load test scenario configuration
@Configuration
public class SimpleJLoadScenarioProvider {
@Bean
public JLoadScenario exampleSimpleJaggerLoadScenario() {
JTestDefinition jTestDefinition = JTestDefinition.builder(Id.of("td_example"), new EndpointsProvider()).build();
JLoadProfile jLoadProfileRps = JLoadProfileRps.builder(RequestsPerSecond.of(10)).withMaxLoadThreads(10).withWarmUpTimeInMilliseconds(10000).build();
JTerminationCriteria jTerminationCriteria = JTerminationCriteriaIterations.of(IterationsNumber.of(500), MaxDurationInSeconds.of(30));
JLoadTest jLoadTest = JLoadTest.builder(Id.of("lt_example"), jTestDefinition, jLoadProfileRps, jTerminationCriteria).build();
JParallelTestsGroup jParallelTestsGroup = JParallelTestsGroup.builder(Id.of("ptg_example"), jLoadTest).build();
// To launch your load scenario, set 'jagger.load.scenario.id.to.execute' property's value equal to the load scenario id
// You can do it via system properties or in the 'environment.properties' file
return JLoadScenario.builder(Id.of("ls_example"), jParallelTestsGroup).build();
}
}
// end: following section is used for docu generation - Load test scenario configuration

Definition at line 33 of file JLoadScenario.java.


The documentation for this class was generated from the following file: