SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Dec 2003
    Posts
    47
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    screen cap always capturing black

    I have the following code to do a screen grab when a test fails

    Dim sScreenCapFilename, sScreenCapFullPathFilename
    sScreenCapFilename = "Error in Sheet - " & oSheet.Name & ".png"
    sScreenCapFullPathFilename = Environment( "ResultDir" ) & "\" & sScreenCapFilename
    Browser( oBrowser ).CaptureBitmap sScreenCapFilename

    I'm using a framework that i wrote to run my tests. It is scheduled to run @ 3am every night

    My guess when I capture the screen its getting the screen saver screen as my machine locks after 10 mins

    Any ideas why this happens ie. the black screen grabs? Is there something i'm missing in the code above

  2. #2
    Senior Member
    Join Date
    Jan 2000
    Location
    USA, CA
    Posts
    1,998
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: screen cap always capturing black

    Nothing wrong with your code.
    QTP Method CaptureBitmap requires active screen.
    It will make shot of whatever presents: application or black ScreenSaver.

    Janna

  3. #3
    Senior Member
    Join Date
    Dec 2006
    Posts
    225
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: screen cap always capturing black

    As you have identified it is happening because of the machine gets locked.
    The pop ups coming in the application may not be handled in this case.

    there are many posts in the forum to prevent this issue.
    Please search for working on locked machine
    Regards,
    Kalesh

  4. #4
    Junior Member
    Join Date
    Oct 2008
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: screen cap always capturing black

    [ QUOTE ]
    Nothing wrong with your code.
    QTP Method CaptureBitmap requires active screen.
    It will make shot of whatever presents: application or black ScreenSaver.

    Janna

    [/ QUOTE ]

    and makesure not Minimize the Remote desktop connection 's window

 

 

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 10.00%
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:41 AM.

Copyright BetaSoft Inc.