-
Invoke QTP script from command prompt
Can anyone explain How to invoke QTP script from command prompt?
If we need to create a batch file, what should be the content of the batch file? If we need to create the vbs file, what should be the content of that one?
Your help is really appreciated.
Question asked by visitor Vimala
-
Contributing Member
Re: Invoke QTP script from command prompt
you can invoke it by having these lines in a VBScript file:
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
Hope this helps 
Kunals.
-
Junior Member
Re: Invoke QTP script from command prompt
you can invoke it by having these lines in a VBScript file:
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
If we Execute the QTP Scripts like this,then how can we get the results of the Executed Script
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules