05-14-2008, 04:41 PM
If u r testing a we app, it will not have any problems until u get a popup window. When the system is locked the OS wont allow any key stroke or mouse movement. so the script will not be able to click the popup and will fail.
U can avoid the System lock by Following steps
1. copy & Paste below code in notepad
2. Save as keypress.vbs file
3. Schedule in microsoft scheduler (Start> Programs> Accessories> system tools> Scheduled Tasks> Add Scheduled Task)map the .vbs file
4. Schedule for 'n' number of hours...
U r system won't lock.....and qtp will execute the scripts successfully....
U can avoid the System lock by Following steps
1. copy & Paste below code in notepad
Code:
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys "{CTRL}+{ALT}"
2. Save as keypress.vbs file
3. Schedule in microsoft scheduler (Start> Programs> Accessories> system tools> Scheduled Tasks> Add Scheduled Task)map the .vbs file
4. Schedule for 'n' number of hours...
U r system won't lock.....and qtp will execute the scripts successfully....