Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Launch QTP using vbscript.
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,

Is it possible to write a vbscript, which will open and execute a particular QTP script.

Regards:
TurtleRock
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Yes, Search this forum you will get lots of info on this here

Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
I found the following script....and it works fine.

Code:
Dim QTPObj,QTPTest
Set QTPObj=CreateObject("QuickTest.Application")

'Check if the application is not already Launched
If Not QTPObj.Launched then
QTPObj.Launch
end if

QTPObj.Visible=True
QTPObj.Open "D:\resolve_automation\Resolve_Regr_CPE_TC 002" 'name of the start up script
Set QTPTest=QTPObj.Test
QTPTest.Run 'Run the Test
QTPTest.Close 'Close the Test
QTPObj.Quit 'Quit the QTP Application


Regards:
TurtleRock
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to find and change text in PDF document using QTP UFT automation VBscript alexwhite 0 12,050 02-18-2017, 04:20 AM
Last Post: alexwhite
  "qtp.launch" throwing "class not registered" error auto_tester 0 3,148 08-13-2013, 10:52 PM
Last Post: auto_tester
  Remote QTP launch tester_rahul 3 10,354 07-26-2012, 12:19 PM
Last Post: supputuri
  qtp launch application siri786 3 4,947 04-26-2012, 12:27 AM
Last Post: siri786
  How to launch DBVisualizer and then execute SQL queries sqadri 0 3,470 02-28-2012, 04:58 AM
Last Post: sqadri

Forum Jump:


Users browsing this thread: 1 Guest(s)