Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bitmap Image
#4
Solved: 7 Years, 9 Months ago
Hi Ankur,

I have tried with the above method

Code:
Errorpath = "C:\Rajesh Training\Exported mlm\Compilation Error.bmp"
JavaWindow("MainWindow").CaptureBitmap Errorpath,True
Reporter.ReportEvent micFail,object_snap,"&nbsp<img src='" & Errorpath &"'>"

For the above code I was geting declaration error (object_snap is not declared)

I though it may be the report description so I have modified the code as

Code:
Errorpath = "C:\Rajesh Training\Exported mlm\Compilation Error.bmp"
JavaWindow("MainWindow").CaptureBitmap Errorpath,True
Reporter.ReportEvent micFail,"The expected compilation error is displayed","&nbsp<img src='" & Errorpath &"'>"

Finally I got a result checkpoint failed but unfortunately I didnt see the captured bitmap image in the result sheet.

please let me know what is "object_snap".
Is it a variable? if so what is stored in it and what is the use of it.

Thanks in advance.
Reply


Messages In This Thread
Bitmap Image - by Rajesh - 05-15-2008, 12:15 AM
RE: Bitmap Image - by Ankur - 05-21-2008, 12:44 AM
RE: Bitmap Image - by Rajesh - 05-22-2008, 11:37 AM
RE: Bitmap Image - by Rajesh - 05-22-2008, 12:22 PM
RE: Bitmap Image - by Ankur - 05-22-2008, 12:38 PM
RE: Bitmap Image - by Rajesh - 05-22-2008, 09:10 PM
RE: Bitmap Image - by Rajesh - 05-25-2008, 05:10 PM
RE: Bitmap Image - by Ankur - 05-26-2008, 04:14 PM
RE: Bitmap Image - by Rajesh - 05-26-2008, 04:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP - each step screenshot bitmap in to word balamurali 0 2,144 02-07-2018, 10:06 PM
Last Post: balamurali

Forum Jump:


Users browsing this thread: 1 Guest(s)