Run a load test
After you configure a load test, you schedule its run time, preview the settings, and initiate the run.
Schedule a test to run on a specific date and time.
Note: The most up-to-date test settings are used when the test is launched.
To schedule a test:
- From the Load tests page, open the Test scheduler pane .
Click the Add schedules button. You can configure up to 50 schedules for a load test.
- From the date picker, select a date to run the test.
- From the time picker, specify a time to run the test.
To apply the schedule, click the toggle to On.
The Schedule On button appears in the cart section indicating that a schedule is set for this load test.
Tip: In the Loads Test page, a test with a set schedule has the scheduler icon displayed next to its status.
On the lower part of the page, underneath the list of set schedules, the following two tabs show additional schedule information:
The Runs tab displays a list of previously scheduled runs and their launch status.
Launched. The test was launched successfully. Click the run ID to view results.
Failed to launch. The test was not launched successfully.
Troubleshooting failed launches:
The number of Vusers scheduled in your test exceeds the amount remaining in your license.
A load generator or monitor that is defined in your test is down.
- This tab is only displayed for tests whose license mode is set as VU.
- This tab is not displayed for load tests configured for the Iterations run mode.
The Timeline tab displays the timeline for the selected schedule, as well as for any other schedule in the project that overlaps with the selected schedule.
If the current project uses global licenses (that is, it does not have dedicated licenses assigned to it), then schedules from other global license projects that overlap with the selected schedule are also displayed.
The timeline is colored according to its status, as follows:
OK (green). There are no conflicts and this schedule will run as planned.
Conflicting (orange). This schedule impacts another schedule and will cause it to breach your license count, but this schedule will still run as planned.
Blocked (red). This schedule breaches your license count and may not run.
You can preview your run settings in the Run Preview window, which shows test run details such as:
How load generators are allocated (both cloud and on-premises).
How scripts are distributed across load generators.
The number of Vusers allocated to each load generator per script.
The number of dedicated IPs for cloud-based load generators required and allocated for the test run.
If LoadRunner Cloud detects a potential error, it alerts you when you open the window, even before you run the test. Knowing this information helps you better understand your test runs and allows you to run load tests more efficiently.
To view a short demo, see Load test setup demos.
To show the run preview:
On the Load tests page, click a test.
In the right corner of the banner, click Run Preview. The preview information is provided in two tabs: Vusers Distribution and Dedicated IPs for load generators. (If Dedicated IPs are not enabled for your tenant, the preview window only shows the Vusers Distribution tab contents.)
Optionally, expand the Group by dropdown to choose the way in which to group the information.
Vusers Distribution tab
The Vusers Distribution tab lets you see if Vusers were distributed evenly over the cloud generators. An unbalanced distribution may help you understand why CPU alerts occurred on certain load generator machines.
In addition, this tab lets you verify the changes that you may have made to a test's settings. For example, if you adjusted the distribution locations or if you selected a different on-premises load generator, the run preview lets you see its impact on the load distribution.
The grid shows the load generator vendors, their locations, the scripts that are used in the load test, and number of Vusers running on the load generator.
The Dedicated IPs for load generators tab lets you see how many dedicated IP addresses for cloud-based load generators are required for your test. This tab is only displayed when you have enabled Dedicated IP addresses for cloud-based load generators in your tenant. If it is not enabled, submit a service request.
For details about dedicated IPs, see Dedicated IP addresses.
A warning symbol indicates that there is an insufficient number of allocated IPs. Hover over the warning symbols to show the number of missing IPs for each load generator.
Before you run the test, click Preview the run settings to review the Vuser distribution, and check the Run Configuration Summary toolbar in the banner:
- Before running your load test, if you defined any server monitors, make sure that they are up and accessible so that LoadRunner Cloud can monitor the test and display results in the dashboard.
- An on-premises load generator can only be used by one running test at a time.
The number of Vusers defined in your test must not exceed the maximum number of Vusers defined in your Vuser license.
LoadRunner Cloud waits for all Vusers to be provisioned before running the test. If some Vusers were not provisioned after the default waiting period, it starts running the test if at least 95% of the Vusers were successfully provisioned. For further information, submit a service request.
To run the test:
Click Run Test. The Dashboard opens showing the default metrics for your test run in real time.
During the test run, the dashboard's toolbar shows summary information such as the elapsed time and number of running Vusers.
To pause the scheduling during the test run, click the Pause scheduling button on the toolbar. To resume, click . For details, see Pause scheduling during a test run.
To increase or decrease the number of running Vusers during a test run, click the Change Load button . For details, see Change the Vuser load dynamically.
Note: This feature is only enabled when all Vusers in all scripts are in Duration mode. If Vusers in at least one script are ramping up or ramping down, or a script finishes running, the change load capability is no longer available for the remaining scripts.
To end a test run before its completion, click Stop Test.
For information about known issues relating to running load tests, see Load test limitations.
If some of the Vusers that were assigned to the test failed, you can re-run them using the Restart Vusers capability.
Note: To enable this option, submit a service request.
When you run a test, the summary toolbar shows the number of Failed Vusers. If the Restart capability is available, the Failed Vusers gauge shows the Restart Vusers button, when at least one Vuser failed to run.
The Restart Vusers button is enabled for:
- Tests running in Duration mode. For details, see Run mode.
Tests for which the Restart process is not already in progress.
Tests with at least one script that is eligible to be restarted, according the following criteria:
Note: For tests running on on-premises load generators (OPLGs), the OPLG versions must be 2022.03 or higher.
Restart the Vusers
To restart failed Vusers:
Click the Restart Vusers button in the summary toolbar's Failed Vusers gauge. The Restart Failed Vusers window opens.
Select a Ramp up option, at the bottom of the window.
- According to script: Perform a ramp up based on the scripts' configuration.
- All at once: Disregard the scripts' configuration and run all of the failed Vusers at once.
- Click Apply.