Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to execute the qtp script when this script is added to schedule tasks?
#1
Solved: 10 Years, 9 Months, 1 Week ago
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.
Reply
#2
Solved: 10 Years, 9 Months, 1 Week ago
see if this article helps you
How To Run QTP Scripts at Scheduled Time?

Reply
#3
Solved: 10 Years, 9 Months, 1 Week ago
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.
Reply
#4
Solved: 10 Years, 9 Months, 1 Week ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 330 11-05-2023, 03:55 PM
Last Post: lravi4u
  How do you Change Run mode mid script? Caleytown 6 6,523 03-25-2021, 08:27 AM
Last Post: RB26578
  picking different points in UFT using VB Script azjk786 0 903 12-14-2020, 09:57 AM
Last Post: azjk786
  script for mouseover rumitkon 2 1,738 02-20-2019, 12:52 AM
Last Post: rumitkon
  Call Stack in QTP Script smitapawar610 0 1,496 12-03-2018, 10:42 AM
Last Post: smitapawar610

Forum Jump:


Users browsing this thread: 1 Guest(s)