Guidelines for using UFT tests in LoadRunner Professional
When creating test scripts in Unified Functional Testing (UFT) that are going to be used as GUI Vuser scripts in a LoadRunner Professional testing scenario, you need to follow certain guidelines to ensure smooth integration of the script. For detailed explanations about creating tests in UFT, see the UFT One Help Center.
UFT offers several features that are designed specifically for integration with LoadRunner Professional. Some UFT features, however, may not be available when they are integrated with LoadRunner Professional. For more information about specific limitations, see the UFT One Help Center.
To measure the performance of the server, you define transactions. A transaction represents an action or a set of actions that you are interested in measuring. You define transactions within your Vuser script by enclosing the appropriate sections of the script with start and end transaction statements.
For example, you can define a transaction that measures the time it takes for the server to process a request to view the balance of an account and for the information to be displayed at the ATM.
Note: LoadRunner Professional only provides performance information for data that is included within a transaction. Therefore, your UFT test must include transactions to be used by LoadRunner Professional.
You can use the Services object and its associated methods to insert statements that are specifically relevant to performance testing. These include Abort, GetEnvironmentAttribute, LogMessage, SetTransactionStatus, ThinkTime, UserDataPoint, StartTransaction and EndTransaction.
Designing tests for LoadRunner Professional
Consider the following design guidelines when designing tests for use with LoadRunner Professional:
The UFT tests you use with LoadRunner Professional should be simple tests, designed to pinpoint specific operations.
LoadRunner Professional cannot run nested action iterations.
Do not include references to external actions or other external resources, such as an external Data Table file, environment variable file, or shared object repositories.
Include transactions in your UFT test since LoadRunner Professional only provides performance information for data that is included within a transaction.
- If you want to run a UFT API load test in LoadRunner Professional, make sure it has been converted in UFT to API Load Test type.