Saturday 2 June 2012

Can QTP and LR be installed on the same machine

Can QTP and LR be installed on the same machine

QTP and LR share some files. Therefore, if QTP is installed and then LR is installed, this will cause problems. QTP and LR can be installed on the same machine, but special attention has to be given to the install squence.

LR needs to be installed first, then QTP can be installed.

If you plan to execute QTP scripts, QTP should be installed on Load Generator computer.

One QTP script be executed on one computer?
How does QTP work? It takes full control on GUI desktop of computer. Each computer has one desktop only.
That's why there is a limitation: you can run one QTP script per computer!

To run QTP script from LoadRunner you have to have "GUI" Vuser LoadRunner license.

The steps are:
  1. Record and save QTP script.
  2. Start LoadRunner Controller.
    Note, that QTP scripts can be executed in LoadRunner Controller. You cannot use LoadRunner Generator to run or debug QTP script.
  3. Select 'New Scenario...'.
    'New Scenario' dlg will be opened. Do not forget to select 'Quick Test Tests' from combobox:
  4. Open QTP script.
    Note, that 'Quantity' field will contain value '1', i.e. one user will be run:
    That's funny, LoadRunner set correct 'Quantity' value in Scenario Groups settings, but it forgot to set correct values in Scenario Schedule section:
    It seems like a small bug :)
  5. Execute scenario.
    You will find that your QTP script works - it will be starting a browser, performing search, clicking 'Next' btn and closing browser during 5 minutes (default time from Global Schedule settings)

    Congratulation! QTP script runs from LoadRunner.



 
How to execute QTP script from LoadRunner?

No comments:

Post a Comment

How to Change Password of IUSR_METRO Account

Sometime we need to change the password of IUSR_METRO Account. This may be required due to compliance issue. Below are the steps to chang...