Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
launching and Closing QTP Application by using single file
#2
Solved: 12 Years, 11 Months ago
Hi,

Check with the below code:
Code:
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

WScript.sleep 3000

If qtp_app.visible = True Then
qtp_app.quit
Set qtp_app=nothing
End if
Reply


Messages In This Thread
RE: launching and Closing QTP Application by using single file - by sreekanth chilam - 07-25-2010, 02:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SAP GUI gets hanged while closing the Windows Pop Up kathirvelnagaraj 0 5,986 10-23-2015, 06:47 PM
Last Post: kathirvelnagaraj
  UFT 12.02 Launching default home page sureshbl 0 3,704 06-01-2015, 02:15 AM
Last Post: sureshbl
  Launching .exe file with parameters magnifyingone 1 3,624 08-28-2014, 06:39 PM
Last Post: dplank
  How to convert a single dimension array to two dimensional array venkatesh9032 3 6,368 02-10-2014, 03:07 PM
Last Post: pranikgarg
  recovery scenario for closing a message box itself ashima 0 2,514 12-26-2013, 11:10 AM
Last Post: ashima

Forum Jump:


Users browsing this thread: 1 Guest(s)