Applies to ReadyAPI 2.1, last modified on August 1, 2017

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. 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
    In the basic version of LoadUI, you can simulate up to 10 concurrent virtual users. To simulate more users, you need a LoadUI Pro license. You can try it for free.
  7. In Base duration, enter the time during which LoadUI will simulate the minimum number of virtual users, for example, 1 second.

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

  9. In Wait time, enter the time LoadUI 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, LoadUI runs a new virtual user to reach the needed number.

  10. Run the test.
    During the test run, LoadUI will increase the number of virtual users until the specified maximum number is reached. Then, LoadUI 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
  11. Examine the test results to see how the performance of your target web service changes under the load.

You can click Add Scenario or on the LoadUI toolbar to add an additional scenario to the test. This scenario will be simulated in parallel with your initial scenario, so you can create more complex load shapes. You will need to configure it in the same way as described above.

API load testing with ReadyAPI: Add New Scenario

Prev     Next

See Also

About Load Profiles
Load Type