Taking screenshots while recording apps (Andriod and iOS)

Mobile Testing, Android App Testing.
AQLIVE
Posts: 7
Joined: Mon Sep 22, 2014 1:25 pm

Taking screenshots while recording apps (Andriod and iOS)

Post by AQLIVE » Mon Sep 22, 2014 1:29 pm

Is it possible to take screenshots while doing an app recording?
Lets say I get to a screen that contains a picture I need to do OCR on. Is it then possible somehow within the recording to take a screenshot - Open an app - Process it - grab a value - and then continue in the app recording???

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Taking screenshots while recording apps (Andriod and iOS)

Post by Support Team » Fri Sep 26, 2014 3:26 pm

Hi AQLIVE,

Of course, it is possible to create screenshots of your application during a test.
You can for instance use the Report.Screenshot()-method as shown in the example below:
Report_Screenshot.png
Report_Screenshot.png (32.14 KiB) Viewed 1002 times

Action #5 creates a screenshot of the complete application (RanorexRxBrowser) whereby action #6 creates a screenshot of one specific element (Logo).

This screenshots are shown in the report and are also saved to the report directory of your Solution.
Report_Screenshot2.png
Report_Screenshot2.png (104.66 KiB) Viewed 1002 times
Regards,
Markus (S)
.
Image