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
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.
Basanth Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
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