Wednesday, June 16, 2010

How to run qtp from CMD

Write the Vbs script and execute it from CMD using cscript orWscript

Sample Vbscript as follow

Set qtApp= CreateObject("QuickTest.Application")
qtApp.Launch
qtApp.Visible = True

'And then call your scripts one after another
qtApp.Open "Enter Complete path for script here"
qtApp.Test.Run
'and once you are done then close the QTP with the following :

qtApp.Quit

No comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | JCpenney Printable Coupons