How do I add a Bitmap to the Report

Class library usage, coding and language questions.
tvu
Posts: 195
Joined: Tue Apr 07, 2015 10:47 pm

How do I add a Bitmap to the Report

Post by tvu » Thu Oct 29, 2015 7:50 pm

Hello,

I am taking a screenshot of a picture element on my mobile app and then comparing it to a bitmap image I retrieved from a web request. I know you can add a screenshot of the picture element to the report by using the Report.Screenshot(element) API. Is there a way I add the bitmap image I retrieved to the report as well?

Thanks for the help.

Darren
Posts: 2
Joined: Thu Dec 05, 2013 2:45 am

Re: How do I add a Bitmap to the Report

Post by Darren » Fri Oct 30, 2015 12:53 am

You can use the Report.LogData API method.

Example:

Code: Select all

Report.LogData(ReportLevel.Info, "Screenshot", "This is a screenshot", bitmapImage);

tvu
Posts: 195
Joined: Tue Apr 07, 2015 10:47 pm

Re: How do I add a Bitmap to the Report

Post by tvu » Fri Oct 30, 2015 8:27 pm

Thanks Darren!