write a vbs file in that write the below code and on command line, run
c:\filename.vbs.


Dim qtp_app
Set qtp_app = CreateObject("quicktest.application")
If qtp_app.launch = false Then
qtp_app.quit
qtp_app.launch
qtp_app.new
qtp_app.visible=true
End if
It is working

2. This is the code to close the qtp application
Dim qtp_app
Set qtp_app = CreateObject("quicktest.application")
If qtp_app.visible = true Then
qtp_app.quit
Set qtp_app=nothing
End if
It is working

But when we are giving the condition for launch and close in the single
file it is not working
Dim qtp_app
Set qtp_app = CreateObject("quicktest.application")
If qtp_app.visible = true Then
qtp_app.quit
Set qtp_app=nothing
End if
If qtp_app.launch = false Then
qtp_app.quit
qtp_app.launch
qtp_app.new
qtp_app.visible=true
End if





On Thu, Apr 4, 2013 at 11:41 AM, <[email protected]> wrote:

> Hi
>
> did you get solution for ur query
> can you plz forward me th esolution
> i am facing the same problem
>
>
> On Tuesday, June 5, 2007 9:11:49 PM UTC+5:30, xyshio wrote:
>
>> Hi!
>> I need to run QTP script from command line but command:
>>
>> "Program Files\Mercury Interactive\QuickTest Professional\bin
>> \QTPro.exe" C:\TEST\QTP_test1
>>
>> opens only QTP with my test QTP_test1.
>> What other parameters should I add to  run test after launching QTP.
>> What will be correct syntax for this.
>>
>> Thanks for any tips
>>
>>  --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to