Micro Focus QTP (UFT) Forums
How to make QTP Script to work when system gets locked? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to make QTP Script to work when system gets locked? (/Thread-How-to-make-QTP-Script-to-work-when-system-gets-locked)



How to make QTP Script to work when system gets locked? - ramkumarad - 01-09-2012

Hi,

I have automated one of the process which should run for more than 2 hrs.
But as per my company policy, system gets locked down after 10 min if there is no manual intervention.

Because of this policy, my script gets hanged after 10 min.

How to overcome this issue without changing this policy?

Regards,
Ramkumar


RE: How to make QTP Script to work when system gets locked? - sshukla12 - 01-09-2012

Hi,
Rules are meant to be broken. I can provide u an exe which will disable the lock for ur PC and scripts will run fine.If u need then let me know.

Regards,
Sankalp
[/quote]


RE: How to make QTP Script to work when system gets locked? - Tarik Sheth - 01-09-2012

@SShukla
Not the proper solution if your script is hacking in any company's security policy and you might be violating company's rules for doing that.
@Ramkumarad
Prepare a script, which will do the button click, like say you are pressing space bar or any number and loop it for every 10 minutes, this will ensure unlocking the computer.
Also Put this VB Script in your function file or framewor which will run parallely with your script.

This should resolve your issue.


RE: How to make QTP Script to work when system gets locked? - sshukla12 - 01-09-2012

@Tarik: If u are making ur script to press any button or spacebar or enter then I think it will effect the application in flow also and this approach is something that I had never seen in any framework.Not sure whether this is a correct soluntion.
@Ramkumarad: I 2 have same policy in my company but according to need policies can be modified also depending upon the nature of work.Go head and talk to ur manager regarding this.

Regards,
Sankalp


RE: How to make QTP Script to work when system gets locked? - Tarik Sheth - 01-09-2012

To block the screen saver and keep machine unlocked please see the below link. This is wiindows registry settings.

http://www.howtogeek.com/howto/windows-vista/disableenable-lock-workstation-functionality-windows-l/

normally hitting keys after some interval will not interfere entering data.









RE: How to make QTP Script to work when system gets locked? - Bianca - 01-09-2012

Hi,

I've got the same problem.
But I want to lock my screen, when the test is running an I'm leaving the office.
Fot this, I found the following issues:
https://www.learnqtp.com/forums/Thread-Execute-the-QTp-scripts-when-i-lock-my-computer
https://www.learnqtp.com/forums/Thread-Execute-QTP-script-in-locked-machine

I tried it and it works until a dialog box in my test pops up.
With QTP 10 and FF 3.5. it was possible to fill this dialog box by locked screen.
Now I made an upgrade to FF 8.0. It is only possible to fill this dialog box, when my PC is unlocked.

Any idea?

Thank a lot
Bianca


RE: How to make QTP Script to work when system gets locked? - Divv - 11-02-2017

(01-09-2012, 01:46 PM)sshukla12 Wrote: Hi,
Rules are meant to be broken. I can provide u an exe which will disable the lock for ur PC and scripts will run fine.If u need then let me know.

Regards,
Sankalp
[/quote]

Hi sshukla12

Please give the scripts for the same. I will be really thankful to you.

Thanks in Advance !!

Divv