Call us: +1 415 800 4705

Running Quick Test Pro Scripts in Load Runner 11 for Performance Tests

HP Quick Test Pro

HP Quick Test Pro is one of the most widely used functional & regression testing tool. Scripts written in this tool can be very helpful while testing application specific features and going through the validation process. Once a script is created, it can be used as many times (to test the application during regression) as required. QTP scripts are completely optimized, portable and easy to maintain. With Quick test Pro, you can run test(s) by just clicking the objects being displayed at application GUI. It enters input fields stored information to validate the behavior of an application. In this way, QTP runs tests much faster than the typical users.

Load Runner

HP Load Runner is one of the tools used for conducting Software Performance Testing on applications. It stresses the whole application to analyze its behavior under heavy load (with the help of Virtual Users) and also to find out server and network bottle necks. Load Runner emulates an environment in which multiple users try to access the application concurrently. It monitors the behavior of each user under specified load and later on shows the results in form of graphs which helps to analyze the application behavior and also helps in identifying bottle necks in server network and/or at client side.

QTP & LR Script Approach

As in QTP we mostly write a script to automate and validate the functionality of a system and to measure its performance we prefer mostly HP Load Runner, so a question may arise here i.e. is it possible to run a QTP script  in Load Runner to measure its performance? The answer is yes as it can be done by following these approaches:

  • Create a QTP test which directly runs load test in Load Runner
  • First create QTP script to generate Load Runner script than  use this script to run the load test

Create Script in QTP not in Load Runner VuGen

The test script (with all modifications and validations) should be created in QTP as Load runner VuGen is not able to record and replay a QTP script. Once a QTP script has been created, it will be ported to the Load Runner Controller for load testing.

Need to Install the QTP on the Load generator machine

The QTP should be installed on the same machine in which the Load Generator is installed as it is required by the Load Runner to run the QTP script.

Screen Resolution is consistent on both the QTP and Load Generator Machine

The Load Generator screen resolution should be same as the machine in which the QTP script has been developed. It prevents any problem(s) which may arise due to the missing objects, as QTP is quite object sensitive.

Steps to Run QTP Script to Load Generator

  1. Create a script in QTP
  2. Open Load Runner controller
  3. Navigate to Load Testing tab, press Run Load Tests.
  4. Under selected scenario type, select option ‘Manual Scenario’
  5. Select file type as “Quick Test Tests ” from the Como box
  6. Click ok

7.  Open the QTP script, you will notice that the “quantity field” is displaying value ‘1’, which means that only one user can run the test.

8.  Select scenario schedule with respect to the desired configuration

9.  Now execute the scenario and  the Load Generator will start executing the scenario

Ending Note

QTP script(s) can be run directly on the Load Generator for conducting the Load Test but we can’t record and replay QTP script in the Load Runner VuGen. Secondly in order to run the QTP script for a certain number of users, we have to set Load Generator terminals as it only emulates a single user against a QTP script therefore, we have to create terminals so that concurrent users can run their tests on different Load Generators to measure and analyze the Load Test Bottlenecks.

Tagged with: , , , ,
Posted in Performance Testing
Free Testing Services

Name (required)

Your Email (required)


Company (required)