Sometimes you need to run your QTP scripts at a scheduled time. We can use the Windows Task Scheduler in order to accomplish this. In order to do this, we need to understand QTP’s object Model (AOM, as explained in the post – https://learn2automate.wordpress.com/2013/11/06/how-to-automate-qtp-itself/)
After you are clear with AOM and have created a VBS file that launches QTP and starts the Test run, you need to go to the Windows Task Scheduler (Control Panel -> Administrator Tools -> Task Scheduler)
On reaching the Task Scheduler screen, you need to create a Task from the right section of the screen :-
Then after defining the name of the task in the General Tab,you need to define the Trigger, Action and specify any additional settings. For the purpose of this demo, I’ll be creating a Task that executes at 9:00 AM everyday. For doing this, I need to define the Trigger in the following way :-
After this, I need to specify the VBS file which needs to be run at this scheduled time :-
Any additional settings can be done in the Settings Tab :-
This is all you need to schedule your QTP scripts.
Happy Automating !