Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to export the snapshots included in the result
#1
Solved: 10 Years, 9 Months, 1 Week ago
Hi,
As i working on web page testing, i used the option to "
Code:
Browser("Login").CaptureBitmap error_file1,True
Reporter.ReportEvent micFail,object_snap,"&amp;<img src='" & error_file1&"'>"
".

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.
Reply
#2
Solved: 10 Years, 9 Months, 1 Week ago
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.
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.
Reply
#3
Solved: 10 Years, 9 Months, 1 Week ago
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 .....


Attached Files
.pdf   snap_sample [Res10].pdf (Size: 71.65 KB / Downloads: 150)
Reply
#4
Solved: 10 Years, 9 Months, 1 Week ago
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.


Attached Files
.pdf   Test [TempResults_2].pdf (Size: 113.83 KB / Downloads: 208)
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.
Reply
#5
Solved: 10 Years, 9 Months, 1 Week ago
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,"&amp;<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
Reply
#6
Solved: 10 Years, 9 Months, 1 Week ago
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"
Reporter.ReportEvent micFail,"testing","test","test.bmp"
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.
Reply
#7
Solved: 10 Years, 9 Months, 1 Week ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to Export run result viewer with CAPTURED DATA and save it in PDF,or Doc,or HTML akhandesh 0 2,802 07-16-2015, 06:03 PM
Last Post: akhandesh
  Export data shayk1985 3 3,105 05-18-2013, 09:40 AM
Last Post: venugqtp
  export function is not working diya 1 2,315 12-18-2012, 11:07 AM
Last Post: Ankesh
  Importdata and Export results shayk1985 1 2,161 12-17-2012, 12:26 PM
Last Post: udayanem
  Export verification QAVA 1 2,479 11-05-2012, 10:25 AM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)