NeoLoad Project definition

Definition has several top-level keys.

NameDescription
ScenariosList 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:

Scenarios Settings

You 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).

Example 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.

Scenario

A 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:

NameDescriptionRequired/Optional
nameThe name of the scenario.Required
descriptionThe description of the scenario.Optional
sla_profileThe SLA (Service Level Agreement) profile to verify in this scenario.Optional
populationsThe 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.

Population

A 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:

NameDescriptionRequired/Optional
nameThe name of the population from NeoLoad project.Required
constant_loadA load that generates a fixed number of Virtual Users.Optional
rampup_loadA 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_loadA 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.

Constant Load Policy

This load policy generates a load with a fixed number of Virtual Users.

Available settings are:

NameDescriptionRequired/Optional
usersThe fixed number of Virtual Users.Required
durationThe duration of the load policy: unlimited, time or number of iterations.Optional

Advanced settings are:

NameDescriptionRequired/Optional
start_afterDefine 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
rampupDefine how Virtual Users start: simultaneously or with a preset delay.Optional
stop_afterDefine 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.

Example 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.

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.

Ramp-up Load Policy

This 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:

NameDescriptionRequired/Optional
min_usersThe initial number of Virtual Users.Required
max_usersThe maximum number of Virtual Users.Optional
increment_usersThe number of Virtual Users to increment.Required
increment_everyThe duration to increment: time or number of iterations.Required
durationThe duration of the load policy: unlimited, time or number of iterations.Optional

Advanced settings are:

NameDescriptionRequired/Optional
start_afterDefine 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_rampupDefine 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_afterDefine 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.

Example 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.

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.

Peaks Load Policy

This 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:

NameDescriptionRequired/Optional
minimumThe phase of low load.Required
maximumThe phase of high load.Required
startSelect the phase to start.Required
durationThe duration of the load policy: unlimited, time or number of iterations.Optional

Available settings for the minimum and maximum phases are:

NameDescriptionRequired/Optional
usersThe fixed number of Virtual Users.Required
durationThe duration of the phase: time or number of iterations.Required

Advanced settings are:

NameDescriptionRequired/Optional
start_afterDefine 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_rampupDefine 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_afterDefine 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.

Example 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.

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.

Human-Readable Time Specifications

All 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

Human-Readable Iteration Specifications

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