Ask a Question

ios system permission alert view not showing up, how to access it through script

jaspreet2
Occasional Contributor

ios system permission alert view not showing up, how to access it through script

while creating keyword test for my ios app i am unable to access the system permission alert view during my recording.

I even tried to access it in Object Browser but was unable to find the object for the system permission alert view.

please help

2 REPLIES 2
Marsha_R
Community Hero

Re: ios system permission alert view not showing up, how to access it through script

What happens when you try?  Screenshots please.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
slecault
Contributor

Re: ios system permission alert view not showing up, how to access it through script

For my experience automating our app, as soon as we step out of the app, TestComplete becomes blind. Under Android, TC is blind but can still interact with the device.  Under iOS, TC does become blind, but also the device no longer exists!

 

Our app will trigger the OS prompt to access the Photo and the GPS, also we have some hyperlinks that will open with the browser. 

 

To manage these situations, we had to: 

iOS: prompt the user to do Something on the device (respond to the prompt, validate the page and come back to the app) and the click ok in TestComplete to resume the test.

 

Android: We did use the simulation of the "physical back button" like for an hyperlink taking you out of the app.  For given devices, we hardcoded coordinates of what to touch.

 

In both iOS and Android, I use "prompt user" to put a valid "fingerprint" to login using "TouchID".

 

At least my tests always do the same thing in the same order.  We also try to group those "interactive" tests.

Win10 / Server 2016 - Testing Delphi Application, Dynamic AX, Web, Mobile app iOS and Android, TC 14 and TestExecute
cancel
Showing results for 
Search instead for 
Did you mean: