The default user load strategy is a ramp-up followed by a peak of concurrent users. You can edit the maximum number of simulated users by editing the Maximum concurrent users field and change the test duration by updating the field Total duration.
Changing these values will update all the steps. The load curve will remain identical but aligned with the new max duration and max concurrent user settings.
Strategy Curve Edition¶
You can also change the shape of the curve (to create multiple steps or add a starting delay) by:
- Resetting the entire curve to a preset,
- Clicking on the graph to add a point/step,
- Dragging and dropping a point across the chart,
- Clicking on a point to edit its values.
At any time you can reset to one one the basic ramp up/down load policies using the
Reset strategy section:
It is also a good way to add a specific number of steps by clicking the
+ button as many times as required.
This can be an easy way to get something close to your needs that you can then edit.
Add a point¶
You cannot drag a point before its predecessor or after its successor. But you place arbitrarily change its value by clicking on it.
Move a point¶
You can drag and drop points to quickly edit the user load curve.
Edit a point¶
When you click on a point, the Step edition panel is displayed:
The current step position can be updated by changing the values of the Concurrent users and Time fields.
The button lets you go back to the user load scale configuration.
The Previous and Next button allows you to quickly navigate through the steps of the user load strategy.
The Delete button removes the current step. The first step (at time 0) cannot be removed. Your curve must also have at least two points.
Press CTRL and click on a point to quickly remove the associated step.
Several options are available by clicking on the Advanced Configuration button:
On Sample Error policy¶
The error policy defines what to do when an error occurs (i.e. an assertion failed):
- Continue: the error is ignored and the test goes on.
- Start next VU Iteration: the current Virtual User iteration is stopped and a new one is started.
- Stop VU: The current Virtual User execution is completely stopped.
- Stop Test: The all load test is stopped gracefully.
- Stop Test Now: The all load test is stopped immediately.
The iterations field lets you limit the Virtual Users execution to a number of iterations.
You still need to set up a duration for the User Profile, so make sure that the execution of all iterations wil not take more time than the specified duration.
You can also override think times for all actions of the selected Virtual User in this tab:
Click on the Override all HTTP Request actions think times toggle to activate the think times override.
Then you can switch between 3 different modes by clicking on the left green arrow button:
- Constant: All think times have the same value.
- Range: Think times vary between a lower bound and an upper bound.
- Hits: Think times are set in order to execute a certain number of requests (hits) per second per concurrent user.
- Text: All think times have the same value defined in milliseconds.