Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to schedule regular UFT runs
#1
Not Solved
Hi Gurus,
Do any of you guys have any ideas or can point me to some good documentation which will allow me to schedule runs of UFT tests on a Win7 or Win8 operating system? The idea at our company is to have the tests run overnight so we can detect any regressions made in the software product.

Cheers,
Reply
#2
Not Solved
Code:
Dim App
Set App = CreateObject("QuickTest.Application")
App.Launch
App.Visible = True
Dim QTP_Tests(2)
'Location of the test script
QTP_Tests(1) = "C:\Tests\paypage hits"
'Creating the RunResultsOptions object. It is a collection of properties that indicate preferences for the run results. E.g. ResultsLocation property as used below which tells the path in which the run results will be stored.
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) & "\Res25" ' Set the results location
'Using the Run method. Run Method runs the open test or business component and creates results in the specified file or Quality Center path. A Boolean value - true or false can be set. Indicates whether the Test.Run statement waits until the end of the run before performing the next statement in the automation script. Default=True.
QTP_Test.Run res_obj, True
QTP_Test.Close
Next
App.Quit
Set res_obj = nothing
Set QTP_Test = nothing
Set App = nothing
Save the script in .vbs format. After that open control panel select Scheduled Tasks and click on the Add schedule task click on next and click browse and select the script and proceed with next option displayed while using the wizard
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT Tool runs more than one iteration always cthossain 2 3,356 02-12-2017, 01:25 PM
Last Post: cthossain
  QTP 11 with QC 11 - When script runs from QC it is running on all the datatable rows anil2u 1 3,306 11-26-2011, 01:09 PM
Last Post: anil2u
  DB Output Checking is not run during Schedule Script Run charmieaka 1 3,082 04-23-2010, 07:00 PM
Last Post: Saket
  QTP script schedule rabbaii 3 5,169 04-20-2010, 11:21 AM
Last Post: Saket
  how to schedule a QTP script balreddy 5 23,391 04-09-2010, 10:48 PM
Last Post: rabbaii

Forum Jump:


Users browsing this thread: 1 Guest(s)