Scheduled QTP test with SCHTASKS.exe
I have to schedule a task it should run whether user is logged in or logged off from system. When User is logged in
"SCHTASKS.exe" working just fine. The problem is when user is logged off.
I am calling the .VBS file to launch QTP and then test the my application.
I used the following commandd to activate my .vbs file.
SystemUtil.Run "C:\Windows\system32\SCHTASKS.exe","/CREATE /SC ONCE /TN Test /TR abc.vbs /ST 15:31","C:\Windows\system32",""
I have written the following code to launch QTP and open my application.
My QTP test script "mytest" is located at the following location
"C:\Program Files\HP\QuickTest Professional\Tests\mytest"
App.Open "C:\Program Files\HP\QuickTest Professional\Tests\mytest", False
Any help will be appreciated.
Re: Scheduled QTP test with SCHTASKS.exe
QTP needs a session open,only then it will execute scripts.
If you log off it won't execute so look for an option to keep the Login session open all the time or when required.