Login   /   Register

Embedded Screenshot on QTP Report

Rate this article
     9 votes, average: 5 out of 59 votes, average: 5 out of 59 votes, average: 5 out of 59 votes, average: 5 out of 59 votes, average: 5 out of 5
Loading ... Loading ...
April 7th, 2008 by daniva

Almost every test object in QTP supports the method CaptureBitmap even the Desktop object.

During your test or within a recovery scenario you want to capture a screenshot of a specific object or the desktop. to later analyze the results.

The content you are accessing is for registered users only
Registeration is FREE, quick and private.
You can either Register pr Login if you have already registered

Posted in Reports

25 Responses to “Embedded Screenshot on QTP Report”

  1. jloyzaga Says:

    [-]

    how to use as part od reportmanager???

  2. jloyzaga Says:

    [-]

    Can you more fully explain this please?

  3. blackfalcon03 Says:

    [+]

    This does not work when scripts are run from QC. The image files cannot be linked if the different machine is used for viewing th... ...

  4. bboisschot Says:

    [+]

    I tried this with QTP 9.5 and always get a wrong URL in the report for the image : URL : about:blank’C:\temp\Res1\test.png’... ...

  5. girish78 Says:

    [-]

    Image file is not displayed in test results window for QTP 9.5.

  6. Vishal Says:

    [+]

    Hello, Why is it displyaing image path starting from "about blank" and followed by the actual path. That is causing problem for ... ...

  7. daniva Says:

    [+]

    Hi to all i have read the last comments and you are right something works wrong with QTP9.5 and this code. i am trying to fi... ...

  8. Vishal Says:

    [+]

    Hello Daniva, I am working with 9.2 but still facing some issues. After lot of R&D, i found that there is some problem in the... ...

  9. pmgrossman Says:

    [+]

    Dani, I think this approach takes advantage of a security risk of embedding executable HTML code into an input field. I think QTP... ...

  10. daniva Says:

    [+]

    after a reserch i can tell that this code does not work in QTP9.5 QTP always put the "about:" prefix before the path. in this ... ...

  11. rajatjuyal Says:

    [-]

    I see the file is there in the Temp results directory, however getting a red X in the results.

  12. mgicqtp Says:

  13. arunsanthosh23 Says:

    [+]

    I use QTP 9.5 integrated with QC 9.2. I use a similar kind of Function to embed Screenshots on the result file. But it is not disp... ...

  14. heqingbluesky Says:

    [-]

    This screenshot can’ be show up in Reporter in spite of using png or bmp image format.

  15. Embedded Screen-shots in QTP - Now Working on QTP9.5 | AdvancedQTP Says:

    [+]

    [...] i posted a few months ago an embedded screenshot solution at the following article http://www.advancedqtp.com/knowledge-base... ...

  16. Nothing found for Embedded-screen-shots-in-qtp-now-working-on-qtp95 Says:

    [+]

    [...] Rated Embedded Screenshot on QTP Report (4 votes)Reserved Objects as an env. object replacement (3 votes)Working with DOS ... ...

  17. MikePietsch Says:

    [+]

    I am most intrigued by this line, wanting to understand what the colon in the middle of it does. qtp.Visible = False : Wait 0, 50... ...

  18. daniva Says:

    [-]

    is like a new line in vbscript

  19. vishwanath_uppala Says:

    [+]

    Hi, Can we store all the screenshot generated by QTP in some other file say .xls in sequential manner? I have seen QTP gener... ...

  20. vishwanath_uppala Says:

    [-]

    Also, i run QTP in windows locked mode to generate screenshots.

  21. limbo Says:

    [+]

    hello all, i have reviewed the code below and found the problem. here is the code fixed. the picture then is shown in the repor... ...

  22. limbo Says:

    [+]

    sorry the code wasnt pasted correctly. here is: Public Sub CaptureScreenshot( ByRef Sender, ByVal micStatus, ByVal description... ...

  23. limbo Says:

    [+]

    again there is a problem pasting the code i will put th code in the forum under the titel "Embedded Screenshot on QTP Report Fixed... ...

  24. vamshi Says:

    [-]

    I have tried the above code using QTP 8.2 but could nt capture the screen shot in the test result.Help me in this regard

  25. netamu Says:

    [+]

    Public Sub CaptureScreenshot( ByRef Sender, ByVal micStatus, ByVal descriptionStr ) Dim dateTimeNow, fileNameStr, divDesc, cap... ...

Leave a Reply

You must be logged in to post a comment.

This article was viewed 5777 times