5. Modify Load Tests

Applies to ReadyAPI 3.56, last modified on October 29, 2024

You have successfully run your first load test. Now, let's change some parameters and run it again with a different load profile:

  1. Switch to the Load page of the Load Test editor.

  2. In the Load Type drop-down list, select VUs (simulate user behavior). When this load type is selected, the load profile settings specify the number of virtual users working simultaneously.

    API load testing with ReadyAPI: Load Type
  3. Click the load scenario. The scenario editor will be displayed in the panel on the right.

    API load testing with ReadyAPI: The New Scenario Editor

    Click the image to enlarge it.

  4. In the Load profile drop-down list, select the Burst profile. It simulates the load that varies during the test run as the profile icon indicates:

    API load testing with ReadyAPI: Burst Parameters
  5. In Base VUs, enter the minimum number of virtual users to be simulated, for example, 5 users.

  6. The Burst VUs value shows the maximum number of virtual users to be simulated. It is calculated from the load test settings. To increase it, increase the total number of VUs or the share of VUs that this scenario takes up.

    In our tutorial, we have only one scenario, so it takes 100% of the virtual users. Set the VUs parameter to, for example, 10 users.

    VUs parameter

    Click the image to enlarge it.

    In the Base version, you can simulate up to 10 concurrent virtual users. To simulate more users, you need a ReadyAPI Performance license. You can try it for free.
  7. In Base duration, enter the time during which ReadyAPI will simulate the minimum number of virtual users, for example, 1 second.

  8. In Burst duration, enter the time during which ReadyAPI will simulate the maximum number of virtual users, for example, 5 seconds.

  9. In Wait time, enter the time ReadyAPI should wait before restarting the test for each virtual user, for example, 1 second.

    Why restarting is needed: if simulation of some virtual user is over, the number of concurrent users decreases. If this number is less than the number the profile tries to simulate, ReadyAPI runs a new virtual user to reach the needed number.

  10. Run the test.
    During the test run, ReadyAPI will increase the number of virtual users until the specified maximum number is reached. Then, ReadyAPI will decrease the number of virtual users, then it will increase it again, and it will continue doing this until the test is over:

    Test Run with Burst

    Click the image to enlarge it.

  11. Examine the test results to see how the performance of your target web service changes under the load.

Prev     Next

See Also

About Load Profiles
Load Type

Highlight search results