Applies to ReadyAPI 2.8, last modified on September 11, 2019

About

Virtual users simulate client actions on the tested server. To do this, each virtual user runs a user scenario – a sequence of targets, or SoapUI test cases.

In the simplest case, all the virtual users of a load test run one scenario, that is, they simulate the same client behavior. To make a load test more realistic, you can use different scenarios in a test. This helps you simulate different behavior patterns in the same test, for example, some users will add goods to their carts, while others will send queries on price changes.

You can also combine multiple load scenarios, for example, to simulate a steady increase to the peak number of users on the server during a lengthy soak test.

Add a scenario

To add a scenario to your load test:

  • In the load test editor, click Add Scenario below the existing scenarios.

    – or –

    While a load test editor is open, click on the main ReadyAPI toolbar.

  • Enter the scenario name in the subsequent dialog box:

    Adding a scenario to a load test

    Click the image to enlarge it.

By default, a new scenario includes the first test case found in your ReadyAPI project, and uses the Fixed load profile and 5 VUs.

Assign virtual users to scenarios

After you create a scenario, you can specify virtual users that will run it. The way you do this depends on the Load Allocation setting on the toolbar. You can either set a load for each scenario individually, or specify some base number and then set a portion of this value for each scenario:

Load Allocation setting

Click the image to enlarge it.

For complete information, see Set Virtual User Number.

Rename a scenario

  • In the load test editor, right-click the needed scenario and select Rename Scenario from the context menu.

    – or –

    Select the scenario in the load test editor, and then click the scenario name in the property editor on the right:

  • Enter a new scenario name in the subsequent dialog box:

    Rename a scenario

    Click the image to enlarge it.

Delete a scenario

Right-click a scenario in the load test editor, and choose Remove Scenario from the context menu:

Remove a scenario

See Also

Setting Up Load Tests
About Targets
Load Scheduler

Highlight search results