Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is the script not running when the system is lock?
#1
Solved: 11 Years, 4 Months ago
Hi,

While running the script i am going to lock the system and some time later i open the system but the script is not running it shows only security alert window. Could you tell me once the system is locked then the qtp is not able to identify the object? Note: in my script have alert and security window.



Regards,
Durai.
Reply
#2
Solved: 11 Years, 4 Months ago
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

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....
Reply
#3
Solved: 11 Years, 4 Months ago
Can you please explain me what is the use of {ctrl}+{ALT} in this code.What will it do to avoid locking your pc?How it will do??

Just being curious!!!!Thanks for making this forum a gr8 one.
Reply
#4
Solved: 11 Years, 4 Months ago
We cant run any web based scripts that have Pop Up windows, you have to make sure that your machine dont have auto lock off.

You can ask your system administrator to remove auto lock off in your machine, so that i will not lock ever, until you do a manual lock
Reply
#5
Solved: 11 Years, 4 Months ago
Hi Surya,

Is this workaround works for Windows Application also?

Code:
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys "{CTRL}+{ALT}"
OR
Do we need to ask Sys Admin to remove the autolock?

Regards
SaranKumarV
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to make QTP Script to work when system gets locked? ramkumarad 6 12,482 11-02-2017, 03:37 PM
Last Post: Divv
  UFT Script running twice SacJoshi 0 2,236 11-11-2016, 01:51 PM
Last Post: SacJoshi
  machine lock unlock uft_usr 0 1,759 06-21-2016, 09:52 PM
Last Post: uft_usr
  Local System Monitor kbhargava505 0 2,522 10-16-2015, 12:52 PM
Last Post: kbhargava505
  QTP system related issue Bharathi Kanagarajan 1 2,094 09-12-2015, 11:28 PM
Last Post: ADITI1992

Forum Jump:


Users browsing this thread: 2 Guest(s)