In this tutorial, we modify a test created using the Creating Your First Load Test tutorial to run it on cloud agents instead of a local computer. We will use the public Amazon machine image provided by SmartBear. For instructions on creating a custom image, see Creating Custom Amazon Machine Images.
To run LoadUI distributed cloud tests, you need to meet the following requirements:
You need a cloud service profile. Currently, only Amazon is supported.
Open the port used for the connection on the local computer. By default, the agent uses port 1991 to communicate with LoadUI. If you use a proxy or firewall, allow network connections using these ports.
Make sure that you have network access to the cloud that will simulate the test.
In the load test editor, switch to the Distribution page.
Add a Cloud Agent. Click on the toolbar.
In the Add Cloud Agent dialog, make sure that the Amazon cloud provider is selected, and click .
In the Add Amazon Cloud Credentials dialog, specify the profile name, your access key, and secret access key. Click OK in both dialogs.
Select the created Cloud Agent. The Cloud Agent Controller editor will appear.
Specify the Region and Zone of the cloud instance you want to use.
Select SmartBear LoadUI Agent or your custom image as the Image. ReadyAPI will launch the specified count of cloud instances from the provided image that LoadUI can interact with.
Input the number of agents and the type of the instance these agents will be run on. In this example, we use 10 agents run on the m3.medium instance. The type of the instance you need depends on how many virtual users you plan to simulate and how complex your underlying SoapUI test is.
Now, drag the scenarios into the agents. If you add multiple scenarios, LoadUI will simulate all of them simultaneously.
By default, LoadUI does not run tests on agents. You need to switch it to the Distributed Mode before running your load test. To do this, use the drop-down list next to the play button and select Run scenarios on agents. After this, the load test will run on cloud agents.
To start the load test, click . LoadUI will first display the Price Check dialog. This dialog displays the price of your test. Click OK. LoadUI will start the required cloud instances and run the tests on them.
|Note:||If the computer where ReadyAPI is installed and where you run your distributed test is unavailable to a cloud agent for a few minutes, the cloud machine running the agent is terminated automatically.|
Switch to the Statistics page. On this page, add a new statistics group. When selecting statistics to display, you can choose them from the cloud agent you need. To display the statistics for the cloud agent, choose the agent name. To display overall test statistics, choose The sum of values for all agents. For more information about checking test results, see Statistics Page.
For details about load test results, see Viewing Test Results.