ios and dialogs

Mobile Testing, Android App Testing.
Mozzytm
Posts: 36
Joined: Fri Feb 08, 2013 11:18 am

ios and dialogs

Post by Mozzytm » Mon Apr 14, 2014 3:16 pm

Is there any function of ranorex to get the test run to dismiss any on screen dialogs? we are using the native prompt for some information and consequently ranorex thinks the app has vanished. this is interrupting the test run and blocking tests that come after.

Scenario example: Contact record with telephone
user taps on "Call Contact"
native iOS dialog pops up with the contacts number and call/cancel options

In this scenario i can tap "Call contact" but not "cancel"

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: ios and dialogs

Post by Support Team » Wed Apr 16, 2014 2:56 pm

Hi Mozzytm,

In order to analyze your issue in detail we would need some additional information.
May I ask you to answer the following questions?
  • Which version of Ranorex is installed on your machine?
  • Which version of iOS is installed on your device?
  • Have you instrumented your application with the correct lib?
Please note: It is only possible to automate application which are instrumented before.
Therefore it is not possible to automate native iOS applications!

Regards,
Markus(S)

Mozzytm
Posts: 36
Joined: Fri Feb 08, 2013 11:18 am

Re: ios and dialogs

Post by Mozzytm » Thu Apr 17, 2014 9:41 am

Hi Marcus,

[*]I'm using Ranorex version 5.0.1.17706
[*]The devices I'm working with have iOS 7 and 7.1 installed
[*]The developer took the latest files available to instrument the app (as of a week ago)

As i say the automation will run fine, it is purely when a native iOS dialog box appears i cannot dismiss it. If I add a "close app" step and then start the next test from "open app" the dialog from the last session remains. An ideal solution would be some form of tear-down to close all open activites on the device.

Thanks

M

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: ios and dialogs

Post by Support Team » Thu Apr 17, 2014 3:02 pm

Hy Mozzytm,

Thank you for the response.
As I already mentioned, it is unfortunately not possible to automate native iOS applications which includes iOS dialogs and other system applications.

Regards,
Markus (S)

mojohlic
Posts: 31
Joined: Thu Oct 11, 2012 4:37 pm

Re: ios and dialogs

Post by mojohlic » Fri Dec 19, 2014 12:05 am

Hi Markus,

Do you expect this to change?

I need to have access to the elements inside of a "_UIAlertControllerShimPresenterWindow" but I am not able to reach them currently.

Ideas?

Thanks :)

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: ios and dialogs

Post by krstcs » Fri Dec 19, 2014 3:27 pm

If the dialog is part of the internal OS then there is no way for Ranorex to get to them because of security settings in the operating systems. Neither of them (iOS or Android) allow automation of internal system components due to security concerns about apps being able to dial your phone or mess up the file system.

There is nothing that Ranorex can do about this, it is a limitation of the systems imposed by their developers.
Shortcuts usually aren't...