Micro Focus QTP (UFT) Forums
How to execute the qtp script when this script is added to schedule tasks? - 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: How to execute the qtp script when this script is added to schedule tasks? (/Thread-How-to-execute-the-qtp-script-when-this-script-is-added-to-schedule-tasks)



How to execute the qtp script when this script is added to schedule tasks? - venkatbatchu - 10-08-2009

When we add a script to "Schedule tasks" which is in "Contro Panel" then respective qtp script is been getting and opened at a scheduled time but respective script will be executed only and when Run command is performed

Can you please help me in this regard to sort out this issue

Thanks in advance,
Venakt.


RE: How to execute the qtp script when this script is added to schedule tasks? - Saket - 10-08-2009

see if this article helps you
How To Run QTP Scripts at Scheduled Time?


RE: How to execute the qtp script when this script is added to schedule tasks? - sreekanth chilam - 10-08-2009

Hi Venkat,

You could use AOM for accomplishing this.

Follow the below process :

Step 1: Open notepad & copy the below code
Code:
Dim Obj
            Set Obj=CreateObject("QuickTest.Application")
            Obj.launch
            Obj.Open "give ur Test script path here"
            Obj.Test.Run
            Obj.Quit
            Set Obj=Nothing
Step2 : Save As "filename.VbS" into some loc.
Step3 : Add the above VBS file to Schedule Tasks & schedule it

Thats it , it would work fine now.


RE: How to execute the qtp script when this script is added to schedule tasks? - venkatbatchu - 10-08-2009

Hi Sreekanth,
I have tried with the code u mentioned, and my observations are
1.It launches the application
2.It opens the corresponding file
3.It not start getting executed

Please help me at step 3

Thanks in advacne,
Venkat

Hi Sreekanth,
Thanks its working i did not keep the objt.test.run
thanks alot