Creating a cloud schedule

If you must scale up the user load for a performance test and cannot invest in physical computers, you can create a schedule that runs on the cloud.

Before you begin

About this task

The cost of running a cloud schedule is based on the number of virtual tester hours that the schedule runs. So, consider creating a local schedule and run it with the default 5 users to fix any errors before scaling up the load to run on the cloud.

When you run a schedule on the cloud, the location of the data center and the type of host used for agent virtual machines affects the measurement of response time. For example, if you run the schedule on agent virtual machines that use shared hypervisors, other guest operating systems would also be consuming hardware resources. This action might affect the measurement of response time. To avoid such an issue, you can use the Run a Fixed Delay Measurement Audit on every location option. This option applies a fixed time delay on the schedule run. After the schedule run completes, you can measure the length of the schedule run with the applied delay to ensure response time accuracy. If the delay is more, it implies that the agent virtual machines are overloaded.

To verify the response time accuracy of the schedule, you can also run a sample number of virtual users on a control agent that is at another location. After the run, you can compare reports to verify response time accuracy.

Procedure

  1. In the Test Navigator view, right-click a local schedule and click Scale Schedule.
  2. By default, the Scale up to field displays the number of virtual users that is specified in the local schedule. Specify a higher value to extend the user load.
  3. To retain the locations that are specified in the local schedule, clear the Remove existing fixed locations check box. To run the cloud schedule on both local and cloud locations, select the check box. The Remove existing dynamic locations check box is enabled only when you launch the Scale Schedule wizard from an already created cloud schedule.
  4. Specify the location of agents that are in the cloud:
    1. In Add dynamic locations, click the Add row icon Add row and click Add New or Add Existing.
    2. If you clicked Add New, specify a name for the new location template and click Finish. If you clicked Add Existing, select a location template and click OK. You can add multiple location templates for a schedule.
    3. In the Numbers to Add column, add the number of agents for each location template and click Next.
  5. To create a dummy test that applies a fixed duration delay to the run for response time accuracy, select the Run a Fixed Delay Measurement Audit on every location check box.
    1. To apply load for the dummy user group, specify the number of users.
    2. Specify a name for the test to be added to the user group and specify the time interval after which the response time accuracy is measured.
  6. To run certain number of users on a control agent (to ensure response time accuracy), select the Apply portion of load with a Control Agent check box.
    1. Specify the number of users to run on a control agent.
    2. Specify the location to run the control agent and click Next.
  7. To distribute and apply user load, select the Generate Stages check box.
    1. To add the existing stages available in the local schedule to the cloud schedule, select the Append to existing stages check box.
    2. Specify the parameters such as number of users to apply load initially in the first stage, number of stages, number of users to increment at every stage, run duration of each stage, time delay to apply for each user change, and time delay to apply when target number of users is reached. To add more stages, click Additional stages and specify the parameters again and click Next.
  8. Specify Cloud conversion options and click Finish. A cloud schedule is created.
    1. In Base name, specify a prefix to the cloud schedule name.
    2. To store the cloud locations in a different project, specify the path in Save generated locations in. By default, the cloud locations are saved in the current project.
    3. To preserve the cloud locations from being overwritten, select the Whose CLOUD_ROLE property contains check box and specify the property value. The CLOUD_ROLE property is available in the cloud location assets in the project.
    4. To prevent user groups that are specified to run on local agents to be run on cloud agents, in the Whose name contain field, specify the name of the user groups. To run a fixed number of virtual users on those user groups, select With fixed virtual user counts.
    5. If the local schedule has user groups with an absolute number of users set, when scaling that schedule to run in the cloud environment, to resize the number of users among user groups in a proportional manner according the number of locations, select the Adjust fixed virtual user counts proportional to the change in the number of locations check box.

Results

The location template and number of agents that you created as part of Scale Schedule wizard are displayed in the Test Navigator view. If you used the Run a Fixed Delay Measurement Audit on every location or Apply portion of load with a Control Agent options, new user groups are displayed in the cloud schedule editor.

What to do next

You can now run the cloud schedule. See Running a cloud schedule.

Feedback