Definition has several top-level keys.
| Name | Description |
|---|---|
| Scenarios | List of scenarios. |
You can find bellow an example on how to define your scenario when launching a test in command line using the -project parameter.
Please read the full command line documentation.
Example:
scenariosnameMyScenario descriptionMy scenario with 1 SLA profile and 1 population sla_profileMySlaProfile populationsnameMyPopulation rampup_load min_users10 max_users1500 increment_users10 increment_every5s duration15mYou can find bellow 2 examples on how to define your scenario containing a constant load, a ramp-up load and a peaks load.
Example 1:
Define a scenario containing a constant load, a ramp-up load and a peaks load in using 3 different populations. The duration of the test is unlimited (stop manually).
xxxxxxxxxxscenariosnameMyScenario populationsnameMyPopulation1 constant_load users500nameMyPopulation2 rampup_load min_users10 increment_users10 increment_every5snameMyPopulation3 peaks_load minimum users100 duration5m maximum users500 duration3m startminimumExample 2:
Define a scenario containing a constant load, a ramp-up load and a peaks load* in using 3 different populations including some advanced settings.
xxxxxxxxxxscenariosnameMyScenario descriptionMy scenario with 1 SLA profile and 3 populations sla_profileMySlaProfile populationsnameMyPopulation1 constant_load users500 duration15m start_after30s rampup1m stop_after30snameMyPopulation2 rampup_load min_users10 max_users500 increment_users10 increment_every1 iteration duration15 iterations start_afterMyPopulation1 increment_rampup1m30s stop_aftercurrent_iterationnameMyPopulation3 peaks_load minimum users100 duration5 iterations maximum users500 duration2 iteration startmaximum duration70 iterations start_after1m30s step_rampup15s stop_after1m30sA scenario defines a test configuration. Select an existing SLA profile to verify and a list of existing populations to test from NeoLoad project. Define a load policy for each population.
Available settings are:
| Name | Description | Required/Optional |
|---|---|---|
| name | The name of the scenario. | Required |
| description | The description of the scenario. | Optional |
| sla_profile | The SLA (Service Level Agreement) profile to verify in this scenario. | Optional |
| populations | The list of existing populations from NeoLoad project. | Required |
Example:
Define three scenarios: a test with a constant load, a test with a ramp-up load or a test with peaks load with the same population.
xxxxxxxxxxscenariosnameMyScenario1 populationsnameMyPopulation constant_load users500nameMyScenario2 populationsnameMyPopulation rampup_load min_users10 increment_users10 increment_every5snameMyScenario3 populationsnameMyPopulation peaks_load minimum users100 duration2m maximum users500 duration2m startminimumA population is a group of Virtual User types. Select an existing population to test and defines its load policy. The simulated load from a population is determined by a duration and a number of Virtual Users.
Available settings are:
| Name | Description | Required/Optional |
|---|---|---|
| name | The name of the population from NeoLoad project. | Required |
| constant_load | A load that generates a fixed number of Virtual Users. | Optional |
| rampup_load | A load that generates a number of Virtual Users that increases throughout the test. Useful for checking the server behavior under an increasing load. | optional |
| peaks_load | A load that generates a fixed number of Virtual Users with periodic phases of high load. Useful for checking whether the server recovers its normal behavior after a load peak. | optional |
A population must contain only one load policy among the constant, ramp-up and peaks load.
This load policy generates a load with a fixed number of Virtual Users.
Available settings are:
| Name | Description | Required/Optional |
|---|---|---|
| users | The fixed number of Virtual Users. | Required |
| duration | The duration of the load policy: unlimited, time or number of iterations. | Optional |
Advanced settings are:
| Name | Description | Required/Optional |
|---|---|---|
| start_after | Define how the population is started: the population starts at the start of the test, after a preset delay or after the end of the selected population. | Optional |
| rampup | Define how Virtual Users start: simultaneously or with a preset delay. | Optional |
| stop_after | Define how the population is stopped: the population immediately stop the executing of the current iteration, give a preset delay to finish the current iteration or allow the population to end the current iteration for each Virtual User. | Optional |
Example 1:
A test with a constant load of 500 Virtual Users. The duration of the test is unlimited (stop manually). The population starts at the start of the test. The Virtual Users simultaneously start. The population immediately stop.
xxxxxxxxxxscenariosnameMyScenario populationsnameMyPopulation constant_load users500Example 2:
A test with a constant load of 500 Virtual Users during 15 minutes. The population starts after 45 seconds. The Virtual Users simultaneously start. The population stops after 90 seconds.
xxxxxxxxxxscenariosnameMyScenario populationsnameMyPopulation constant_load users500 duration15m start_after45s stop_after1m30s Example 3:
A test including 2 constant loads: 1 constant load of 100 Virtual Users during 5 iterations. The population starts at the start of the test. The Virtual Users simultaneously start. The population immediately stop. 1 constant load of 500 Virtual Users during 15 iterations. The population starts after the end of the selected population. The Virtual Users start with 30 seconds. The population wait the executing of the current iteration.
xxxxxxxxxxscenariosnameMyScenario populationsnameMyPopulation1 constant_load users100 duration5 iterationsnameMyPopulation2 constant_load users500 duration15 iterations start_afterMyPopulation1 rampup30s stop_aftercurrent_iterationThis load policy generates a load with a number of Virtual Users that increases throughout the test. Useful for checking the server behavior under an increasing load.
Available settings are:
| Name | Description | Required/Optional |
|---|---|---|
| min_users | The initial number of Virtual Users. | Required |
| max_users | The maximum number of Virtual Users. | Optional |
| increment_users | The number of Virtual Users to increment. | Required |
| increment_every | The duration to increment: time or number of iterations. | Required |
| duration | The duration of the load policy: unlimited, time or number of iterations. | Optional |
Advanced settings are:
| Name | Description | Required/Optional |
|---|---|---|
| start_after | Define how the population is started: the population starts at the start of the test, after a preset delay or after the end of the selected population. | Optional |
| increment_rampup | Define how Virtual Users start: simultaneously or with a preset delay. This rule is used each time new Virtual Users are created, at each load increase for a ramp-up load policy. | Optional |
| stop_after | Define how the population is stopped: the population immediately stop the executing of the current iteration, give a preset delay to finish the current iteration or allow the population to end the current iteration for each Virtual User. | Optional |
Example 1:
A test with a ramp-up load of 10 initial Virtual Users in incrementing 5 Virtual Users every 2 seconds. The duration of the test is unlimited (stop manually). The population starts at the start of the test. The Virtual Users simultaneously start. The population immediately stop.
xxxxxxxxxxscenariosnameMyScenario populationsnameMyPopulation rampup_load min_users10 increment_users5 increment_every2sExample 2:
A test with a ramp-up load of 10 initial Virtual Users in incrementing 5 Virtual Users every 2 seconds during 15 minutes and limited at 1500 maximum Virtual Users. The population starts after 45 seconds. The Virtual Users simultaneously start. The population stops after 90 seconds.
xxxxxxxxxxscenariosnameMyScenario populationsnameMyPopulation rampup_load min_users10 max_users1500 increment_users5 increment_every2s duration15m start_after45s stop_after1m30s Example 3:
A test including 2 load policies: 1 constant load of 100 Virtual Users during 5 iterations. The population starts at the start of the test. The Virtual Users simultaneously start. The population immediately stop. 1 ramp-up load of 100 initial Virtual Users in incrementing 50 Virtual Users every iteration during 30 iterations and limited at 1500 maximum Virtual Users. The population starts after the end of the selected population. The Virtual Users start with 5 seconds. The population stops in waiting the executing of the current iteration.
xxxxxxxxxxscenariosnameMyScenario populationsnameMyPopulation1 constant_load users100 duration5 iterationsnameMyPopulation2 rampup_load min_users100 max_users1500 increment_users50 increment_every1 iteration duration30 iterations start_afterMyPopulation1 increment_rampup5s stop_aftercurrent_iterationThis load policy generates a load with a fixed number of Virtual Users with periodic phases of low and high load. Useful for checking whether the server recovers its normal behavior after a load peak.
Available settings are:
| Name | Description | Required/Optional |
|---|---|---|
| minimum | The phase of low load. | Required |
| maximum | The phase of high load. | Required |
| start | Select the phase to start. | Required |
| duration | The duration of the load policy: unlimited, time or number of iterations. | Optional |
Available settings for the minimum and maximum phases are:
| Name | Description | Required/Optional |
|---|---|---|
| users | The fixed number of Virtual Users. | Required |
| duration | The duration of the phase: time or number of iterations. | Required |
Advanced settings are:
| Name | Description | Required/Optional |
|---|---|---|
| start_after | Define how the population is started: the population starts at the start of the test, after a preset delay or after the end of the selected population. | Optional |
| step_rampup | Define how Virtual Users start: simultaneously or with a preset delay. This rule is used each time new Virtual Users are created, at each load peak for a peak load policy. | Optional |
| stop_after | Define how the population is stopped: the population immediately stop the executing of the current iteration, give a preset delay to finish the current iteration or allow the population to end the current iteration for each Virtual User. | Optional |
Example 1:
A test with a peaks load: a minimum load of 100 Virtual Users during 5 minutes and a maximum load of 500 Virtual Users during 3 minutes. The test starts with the minimum load. The duration of the test is unlimited (stop manually). The population starts at the start of the test. The Virtual Users simultaneously start. The population immediately stop.
xxxxxxxxxxscenariosnameMyScenario populationsnameMyPopulation peaks_load minimum users100 duration5m maximum users500 duration3m startminimumExample 2:
A test with a peaks load: a minimum load of 100 Virtual Users during 5 minutes and a maximum load of 500 Virtual Users during 3 minutes. The test starts with the maximum load. The duration of the test is 80 minutes. The population starts after 45 seconds. The Virtual Users simultaneously start. The population stops after 90 seconds.
xxxxxxxxxxscenariosnameMyScenario populationsnameMyPopulation peaks_load minimum users100 duration5m maximum users500 duration3m startmaximum duration1h20m start_after45s stop_after1m30s Example 3:
A test including 2 load policies:
1 constant load of 100 Virtual Users during 5 iterations. The population starts at the start of the test. The Virtual Users simultaneously start. The population immediately stop.
1 peaks load: a minimum load of 100 Virtual Users during 5 iterations and a maximum load of 500 Virtual Users during 3 iterations. The test starts with the minimum load. The duration of the test is 80 iterations. The population starts after the end of the selected population. The Virtual Users start with 15 seconds. The population stops in waiting the executing of the current iteration.
xxxxxxxxxxscenariosnameMyScenario populationsnameMyPopulation1 constant_load users100 duration5 iterationsnameMyPopulation2 peaks_load minimum users100 duration5 iterations maximum users500 duration3 iterations startminimum duration80 iterations start_afterMyPopulation1 step_rampup15s stop_aftercurrent_iterationAll time specifications, including delays and durations, are always expressed in unit of seconds. Use special strings convention to make it human-readable.
h for hours, m for minutes, s for seconds
Examples:
90s,5m,2h30m30s
All iteration specifications, including durations, are always expressed in unit of iterations. Use special strings convention to make it human-readable.
iteration or iterations
Examples:
1 iteration, 15 iterations