Page 1 of 1

How do I add a Bitmap to the Report

Posted: Thu Oct 29, 2015 7:50 pm
by tvu
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.

Re: How do I add a Bitmap to the Report

Posted: Fri Oct 30, 2015 12:53 am
by Darren
You can use the Report.LogData API method.

Example:

Code: Select all

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

Re: How do I add a Bitmap to the Report

Posted: Fri Oct 30, 2015 8:27 pm
by tvu
Thanks Darren!