SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    289
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Running QTP scripts after logoff

    I currently use MS Scheduler to run my test scripts durring the day, when I am around. Not good.

    I have been trying to figure out how to run them at night without QC. Once they go into QC, all kids of management "concerns" get heard. So, to test behind the scenses, I need to run my tests outside of QC until management is ready.

    My issue is waking up my machine and log back in. After 20 minutes my machine locks up. No, I can not turn this off from my Right-Click properties. There is no tab on my XP box to disabled the screensaver or the logging off.

    Does any run Schedular at night that has figuired out how to reopen windows XP?

    thx
    Thx for the help ;-)

    see ya

    Lorena

  2. #2
    Advanced Member gencke's Avatar
    Join Date
    Feb 2008
    Location
    Seattle, Washington, United States
    Posts
    531
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    2 Thread(s)
    Total Downloaded
    0

    Re: Running QTP scripts after logoff

    When I want to keep my machine awake, I run a task every ten minutes to press the f8 key

    Dim WSHShell
    Set WSHShell = CreateObject("WScript.Shell")

    'Send a keypress to keep Screen Lock from starting
    WSHShell.SendKeys "^%{F8}"

    A lot of folks use a program called caffeine to accomplish the same task
    Patience is like bread I say.... I ran out of that yesterday.

  3. #3
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Running QTP scripts after logoff

    Lorerna there is a free utility to stop locking called Caffeine, I've used it a lot and its good.

    Mark Smith.

  4. #4
    Moderator
    Join Date
    Oct 2010
    Location
    Norway
    Posts
    3,265
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Running QTP scripts after logoff

    Isn't that a policy violation? I don't think any company concerned about data security would approve using such a tool.
    Rajkumar

  5. #5
    Advanced Member
    Join Date
    Aug 2006
    Location
    Other side of the Computer
    Posts
    598
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Running QTP scripts after logoff

    We got a VM ware with special privilege. A generic user for automation who does not have a restriction on screen server. If you can get that that would be good.

    Caffeine is good as well but check with your IT first because some company won't allow it.

    You can try Greg's script. if Caffeine is not allowed. I have uploaded caffeine in one of the post look through it.
    ===========================================

  6. #6
    Member
    Join Date
    Jun 2004
    Posts
    289
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Running QTP scripts after logoff

    @Greg ... Thx, do I place this is a Scheduklad task to run every 10min?

    @Mark... I will look into Caffeen. thx

    @ Rajkumar... Yes, I have been discussing this with Security. As of yet, nobody that I have spoken to has the knowlege of who I need to talk to get answer. But younafre correct.

    @Eagles ... Thx! for both ideas
    Thx for the help ;-)

    see ya

    Lorena

  7. #7
    Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    359
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Running QTP scripts after logoff

    [ QUOTE ]
    Lorerna there is a free utility to stop locking called Caffeine, I've used it a lot and its good.

    Mark Smith.

    [/ QUOTE ]

    If you are doing a number of opration using sendkeys in your script, I think it may cause focus lost...

  8. #8
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Running QTP scripts after logoff

    caffeine runs as a process and doesn't seem to interrupt or be interrupted by QTP John.

    However as Caffeine runs in cycles I cannot say whether it had run at the same time as QTP was issuing a Sendkeys method.

    Mark Smith.

  9. #9
    Member
    Join Date
    Jan 2004
    Location
    Pune
    Posts
    47
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Running QTP scripts after logoff

    Thanks for info about Caffeine.
    it works better. [img]/images/graemlins/smile.gif[/img]

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 8.82%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:39 AM.

Copyright BetaSoft Inc.