How to run a QTP test set stored in Quality Center server from command line?

Editorial / Best Answer

Steiner  

  • Member Since Oct-2008 | Oct 1st, 2008


You need to use the quality center OTA API - you can read the documentation by going to quality center Help->Documentation Library, and under API References, click  HP Quality Center Open Test Architecture API Reference (you will need to download this file to your local hard drive probably, since there is some XP patch that will not allow you to open CHM files from an external server). If you go to the index and search for "StartExecution Method (TestSet)", there is a very nice example at the bottom that shows you a vbs script that you could use to run a test set on your local machine, planned host, or a remote machine. Copy this code to a .vbs file, and execute that with the arguments you need. Let me know if you need any other info about this.

Showing Answers 1 - 6 of 6 Answers

md_vinodh

  • May 13th, 2008
 

If ur script into QC , Then U can't run the thru command line... but if script stored in to local system then u can run command mode Ex: Wscript (filename.vbs)

  Was this answer useful?  Yes

Steiner

  • Oct 1st, 2008
 

You need to use the quality center OTA API - you can read the documentation by going to quality center Help->Documentation Library, and under API References, click  HP Quality Center Open Test Architecture API Reference (you will need to download this file to your local hard drive probably, since there is some XP patch that will not allow you to open CHM files from an external server). If you go to the index and search for "StartExecution Method (TestSet)", there is a very nice example at the bottom that shows you a vbs script that you could use to run a test set on your local machine, planned host, or a remote machine. Copy this code to a .vbs file, and execute that with the arguments you need. Let me know if you need any other info about this.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions