Taking screenshots of the iOS App during runtime

Mobile Testing, Android App Testing.
chethshetty
Posts: 13
Joined: Wed Apr 09, 2014 5:18 pm

Taking screenshots of the iOS App during runtime

Post by chethshetty » Mon Jun 16, 2014 7:15 am

Hi,

Is there any way to take the screenshot of the iOS app during runtime without passing the repository item as a parameter.

I have few piece of code which takes screenshot, but here i need to pass the repository item. This may fail in few cases.

Example:
Report.Screenshot(ReportLevel.Error, "User", "get the screenhot", repo.MyDevice.Screens.UIview, false, new RecordItemIndex(1));

or



Does Ranorex has this feature? Take screenshot from the device without passing the repository item as a parameter.

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

Re: Taking screenshots of the iOS App during runtime

Post by Support Team » Wed Jun 18, 2014 3:52 pm

Hello chethshetty,

What if you specify the mobile app itself as the target for your screenshot? So, an specific element isn't necessarily needed.
MobileApp.jpg
MobileApp.jpg (18.63 KiB) Viewed 793 times
Hope this information helps you. Please do let us know if you need any further assistance, we’ll be glad to assist you.

Regards,
Robert
.
Image

chethshetty
Posts: 13
Joined: Wed Apr 09, 2014 5:18 pm

Re: Taking screenshots of the iOS App during runtime

Post by chethshetty » Thu Jun 19, 2014 5:22 am

Hello Robert,

Thanks for the Solution.

Now i could able to take the screenshot by passing the mobile app as an argument.

So my code would be:
Report.Screenshot(ReportLevel.Error, "User", "Testing the screenshot", repo.MyDevice.Self, false, new RecordItemIndex(1));

The above code works fine for me. :)