NThomas
7 years agoOccasional Contributor
Capture log errors screen between the mobile and the desktop
Hello,
I wanted to know if we could choose where to take the screenshot, when there is an error, if we run Mobile and Desktop tests?
Currently, if a mobile is connected and used during a test, all screenshots are made on the Mobile.
In my Mobile tests, I pilot a Desktop application, when an error occurs on this application, the screenshot is made on the Mobile, not on the PC (so the screenshot is not interesting).
Thank you.
Nicolas
Ah, now I see...
Yes, you may pass proper picture object to Log.Error() to have it (picture) to be posted to the log.
E.g.:
Log.Error('Error message', 'Extended message', pmNormal, null, Mobile.Device().Desktop.Picture())
or
Log.Error('Error message', 'Extended message', pmNormal, null, Sys.Desktop.Picture())