Relevant for: API testing only
This task describes how to prepare a test for load testing in LoadRunner.
Make sure that LoadRunner or a standalone version of VuGen (Virtual User Generator) is installed. Without this installation, the Load Testing template will not be available.
If you are running the test from a Performance Center host, ensure that UFT is installed on the same machine as the Performance Center host.
In the New/Add New <Document> Dialog Box, in the Select type section, choose API Load Test.
If you have a test that was created with the standard API testing template, select Design > Operation > Enable Test for Load Testing or click the Enable Test for Load Testing button .
Drag activities from the Toolbox pane onto the canvas to add steps to the test.
To measure the performance of a group of steps, define a transaction.
|Mark the beginning of a transaction||
|Mark the end of a transaction||
|Set the think time||
If you have data in the Data Pane, set the data retrieval properties. Click the Link to a data source button
In the General pane of the API Testing tab in the Options dialog (Tools > Options > API Testing tab > General node), in the Run Sessions options, select Release. The Release mode conserves resources, thus enhancing the load testing capabilities.
Expand the toolbar Run button and select Run Test in Load Testing Mode. This run is only for debugging purposes, to verify that the test is functional.
Note: When you run a test in Load Testing mode, the Output pane does not contain data and the run results do not open. To view the results, select Run to run the test in functional mode.
Add the test to the LoadRunner Controller console to include it in a load test.