How to export the snapshots included in the result - 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 export the snapshots included in the result (/Thread-How-to-export-the-snapshots-included-in-the-result) |
How to export the snapshots included in the result - surekha.kadi - 05-03-2010 Hi, As i working on web page testing, i used the option to " Code: Browser("Login").CaptureBitmap error_file1,True Its working fine it will display the screen shot of error page, but the problem what i am facing, i am not able to export the same to html or pdf format while saving the result sheet. Currently, I am using QTP version 10.0 with default add-in's and working windows service pack 2 Can any one suggest me how to import that snapshots too Thanks in advance. RE: How to export the snapshots included in the result - basanth27 - 05-04-2010 What happens when you try to convert to PDF or html ? Does it throw a error or the space is blank for the given screenshot ? It could possibly be a embed issue...but answer the above and lets see if we go further. RE: How to export the snapshots included in the result - surekha.kadi - 05-04-2010 It does not throw any error message. It displays the complete path of the snapshot stored. You can check the below attachment Can you please help me out ..... RE: How to export the snapshots included in the result - basanth27 - 05-04-2010 Believe me, i dont use QTP reporting. However, since now that you asked with some details i did a sample try and suprisingly it worked for me. There are several reasons why you wouldnt have been able to see the image, 1. Where are you storing your run results ? 2. How are you specifying CaptureBitmap ?error_file1..where is this path set to ? 3. Your PDF exported report seems to be very brief. Try with the Detailed Option ? have you tried yet ? I have used QTP 10.0 with the same basic add-ins. Attached is a sample of the report. Let me know if it helps. RE: How to export the snapshots included in the result - surekha.kadi - 05-04-2010 This is how i used it error_file1="C:/Documents and settings/Desktop/sur/error.bmp Browser("Login").CaptureBitmap error_file1,True Reporter.ReportEvent micFail,object_snap,"&<img src='" & error_file1&"'>" Can you please share the script what you have used, so that i can come to know where i am wrong Thanks in Advance RE: How to export the snapshots included in the result - basanth27 - 05-04-2010 So, thats the point. You have used absolute path confusing the report to not carry it around. Anyways, here is the code, Code: Browser("Login").CaptureBitmap "test.bmp" RE: How to export the snapshots included in the result - surekha.kadi - 05-11-2010 Thanks basanth Its working fine it works for the first iteration only and for the second iteration it gives an warning message Can any one help me out |