Micro Focus QTP (UFT) Forums
QTP script schedule - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: QTP script schedule (/Thread-QTP-script-schedule)



QTP script schedule - rabbaii - 04-15-2010

1) I have a login and logout script in qtp.
2) I would like to know how to quick this script from Tasks and schedules option from control pannel for a specific time schedule.
3) Ankur given testing.vbs script to add to Addscheduled tasks from control panel,

4) BUT I am not able to understand how this 2 scripts can be interconnected.

Someone throw some light.


RE: QTP script schedule - Saket - 04-16-2010

which testing.vbs you are talking about? Please paste the code here.


RE: QTP script schedule - rabbaii - 04-20-2010

Code:
Set App = CreateObject("QuickTest.Application")
App.Launch
App.Visible = True
App.WindowState = "Maximized" ' Maximize the QuickTest window
App.ActivateView "ExpertView" ' Display the Expert View
App.open "C:\Program Files\Mercury Interactive\QuickTest Professional\Tests\Test1", False  'Opens the test in editable mode

I created a script for login and logout for a website.I do wants to schedule this script for a scheduled time.What i am understanding that
the above code(testing.vbs) will invoke the script. or my script path should i include in
App.open "C:\Program Files\Mercury Interactive\QuickTest Professional\Tests\Test1", False 'Opens the test in editable mode
here.


RE: QTP script schedule - Saket - 04-20-2010

Yes you are getting it right, this script(testing.vbs) will open your QTP script from the path you specified.
if your scripts are at different location from the path mentioned in the statement, you will have to specify your path
e.g if the scripts are in C:\MyQTP\Scripts\Test1 then the statement will be
Code:
App.open "C:\MyQTP\Scripts\Test1 "