Name:
Location: Richmond, Virginia, United States

Wednesday, May 20, 2009

RUNNING QTP SCRIPTS FROM PERFORMANCE CENTER


Here are the steps to do a performance test with QTP scripts. This method is expecially helpful if the scripts cannot be recorded in VuGen like some windows based scripts. If you do not have the licence for AJAX protocol, this method may be used.

Let me know your comments.......

1. Create Scripts using QTP. Replay and test it.

2. Now close QTP and go to QTP --> Tools --> Silent Test Runner

3. Browse to the script and run the QTP script from here. Successful run ensures that the script will run from Performance Center

4. Install QTP on all the work-stations that will be part of the performance test.
5. Install ‘Agent’ on the work-stations above. Now, these work-stations serve as Generators.

6. The ‘Agent’ is installed as a service. We need to change it to a ‘Process’ to run using QTP. It can run as a ‘Service’ while using Citrix.

7. How to change ‘Service’ to a ‘Process’ :

  • Close the ‘Agent’ by right clicking on the agent icon ()
  • Go to DOS prompt
  • Browse to the following path:
    D:\Program Files\HP\Load Generator\launch_service\bin
  • Type command magentservice.exe –remove and press enter
  • Type command magentproc.exe –install and press enter
  • Close the DOS prompt.

8. If needed you may copy magentproc.exe to the Startup menu folder:
        C:\Documents and Settings\shivam1\Start Menu\Programs\Startup
This will make the ‘Process’ to be up and running every time the machine is restarted.

9. Now add the generators to the Performance Center. Performance center admin may need to add the workstation’s (Generator’s) asset tag number to the performance center.

10. When creating the scenario in Performance Center, assign the above added generator(s) to each running VUser. This way each user is assigned to the workstation that is a part of the Performance test.

11. Only one VUser can be assigned to each script and to the generator.

12. After the test is started, check on the workstation (Generator) to see if the application is up and running.

1 Comments:

Blogger fg said...

hi shivam,

Am following ur approach but after uploading QTP script to HP Performance center11.52.
We are unable to run the script .can you please let us know if we are missing anything here.

1:42 PM  

Post a Comment

<< Home