Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
JLoadScenario JLoadScenarioProvider.myFirstJaggerLoadScenario ( )

Definition at line 130 of file JLoadScenarioProvider.java.

References com.griddynamics.jagger.user.test.configurations.JTestDefinition.Builder.addValidators(), com.griddynamics.jagger.user.test.configurations.load.JLoadProfileRps.Builder.build(), com.griddynamics.jagger.user.test.configurations.JTestDefinition.Builder.build(), com.griddynamics.jagger.user.test.configurations.JParallelTestsGroup.builder(), com.griddynamics.jagger.user.test.configurations.JLoadScenario.builder(), com.griddynamics.jagger.user.test.configurations.load.JLoadProfileRps.builder(), com.griddynamics.jagger.user.test.configurations.JLoadTest.builder(), com.griddynamics.jagger.user.test.configurations.JTestDefinition.builder(), com.griddynamics.jagger.user.test.configurations.termination.JTerminationCriteriaBackground.getInstance(), com.griddynamics.jagger.user.test.configurations.termination.auxiliary.MaxDurationInSeconds.of(), com.griddynamics.jagger.user.test.configurations.termination.auxiliary.IterationsNumber.of(), com.griddynamics.jagger.user.test.configurations.auxiliary.Id.of(), com.griddynamics.jagger.user.test.configurations.load.auxiliary.RequestsPerSecond.of(), com.griddynamics.jagger.engine.e1.collector.DefaultResponseValidatorProvider.of(), com.griddynamics.jagger.user.test.configurations.termination.JTerminationCriteriaIterations.of(), com.griddynamics.jagger.user.test.configurations.JTestDefinition.Builder.withQueryProvider(), and com.griddynamics.jagger.user.test.configurations.load.JLoadProfileRps.Builder.withWarmUpTimeInMilliseconds().

130  {
131  JTestDefinition description = JTestDefinition
132  .builder(Id.of("myFirstJaggerTestDefinition"), new EndpointsProvider())
133  // optional
134  .withComment("no comments")
135  .withQueryProvider(new QueriesProvider())
137  .build();
138 
139  JLoadProfile load = JLoadProfileRps.builder(RequestsPerSecond.of(10)).withMaxLoadThreads(10).withWarmUpTimeInMilliseconds(10000).build();
140  JLoadProfile load2 = JLoadProfileRps.builder(RequestsPerSecond.of(20)).withMaxLoadThreads(20).withWarmUpTimeInMilliseconds(20000).build();
141 
144 
145  JLoadTest test1 = JLoadTest.builder(Id.of("my_first_test"), description, load, termination).build();
146  JLoadTest test2 = JLoadTest.builder(Id.of("yet_another_test"), description, load2, terminationBackground).build();
147 
148  JParallelTestsGroup testGroup = JParallelTestsGroup.builder(Id.of("my_first_test_group"), test1, test2).build();
149 
150  return JLoadScenario.builder(Id.of("myFirstJaggerLoadScenario"), testGroup).build();
151  }

Here is the call graph for this function: