Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can we run QTP on virtual machine at scheduled time through VB script.
#12
Solved: 11 Years, 3 Months, 3 Weeks ago
Code:
Dim App
Set App = CreateObject("QuickTest.Application")
App.Launch
App.Visible = True
Dim QTP_Tests(3)
QTP_Tests(1) = "F:\QTP Projects\urltesting"
Set res_obj = CreateObject("QuickTest.RunResultsOptions")
For i = 1 to UBound (QTP_Tests)
App.Open QTP_Tests(i), True
Set QTP_Test = App.Test
res_obj.ResultsLocation = QTP_Tests(i) & "\Res1" ' Set the results location
QTP_Test.Run res_obj, True
QTP_Test.Close
Next
App.Quit
Set res_obj = nothing
Set QTP_Test = nothing
Set App = nothing
Reply


Messages In This Thread
RE: How can we run QTP on virtual machine at scheduled time through VB script. - by vinod123 - 08-21-2012, 04:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Loading QRS files at Run time dvkbabu 2 10,038 03-24-2017, 09:04 PM
Last Post: UrmilaSaha
  Running UFT scripts on a remote machine with no UFT installed on the Remote machine anupam4j 0 3,039 01-21-2016, 06:48 PM
Last Post: anupam4j
  Missing Resources, Information Pane, Debug Viewer, Run time Data Table not visible Aurodeepta 3 6,994 05-28-2015, 02:52 PM
Last Post: Aurodeepta
  Object Identification not working on Run Time Ajatshatru 2 3,275 05-06-2015, 07:27 PM
Last Post: Ajatshatru
  Error while adding Object to Object repository at run time SaranKumarV 3 8,664 02-02-2015, 01:40 AM
Last Post: dubeyvin

Forum Jump:


Users browsing this thread: 3 Guest(s)