cancel
Showing results for 
Search instead for 
Did you mean: 

TC is not able to recognise popup window of a xamarin form based iOS app

SOLVED
Contributor

TC is not able to recognise popup window of a xamarin form based iOS app

I am working on automating a xamarin form based iOSapp. In this app 50-60% of core functionality is being covered in popups built using Rg.Plugins.Popup library.I am facing issue in automating these popup windows.As per smartbear support team TC does not support popup built with this plugin.

The issue is that TC does not read them as xamarin XF objects but treat them as regular iOS objects which is treating them as windows with dyanamic index.The index of thsese window changes after each navigation. For example if I am on x window right now which TC is showing as window(1) and I navigate to some other area of application and then come back to same x window then index of window changes and TC reads window as window(10) this Please find screenshot attached to see details of it.

This Window object is available in all popups of entire app.

Aliases.Device.processQaA36020.Window(28).ScrollView().Button("", 0) ---button object

Aliases.Device.processQaA36020.Window(39).PickerView().TableView(0) ------TableView object

I can not Map these object because of this dynamic window object.I have tried clicking on 'Ok' 'Cancel' button using FindChild Method(by mentioning "Aliases.Device.processQaA36020" as parent)but it does not seem to be stable as at times it works and next it does not.So I cannot automate complex functioanlity availble in these poup using FindChild method . Also this approach does not seem to be reliable to automate 50-60% functionality of the app.

Can anyone please suggest a wayout for this problem.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: TC is not able to recognise popup window of a xamarin form based iOS app

Hi @ptrevino  

First of all, please make sure that your application is prepared properly according to the Preparing for Testing Mobile Applications help topic - https://support.smartbear.com/testcomplete/docs/app-testing/mobile/preparing.html 

After, please make sure that the control you test is in the list of the supported ones. You can find the full list here: https://support.smartbear.com/testcomplete/docs/general-info/supported-technologies/controls/xamarin... 

In case the control isn’t supported, it’s worth playing with Object Mapping to make TestComplete treat the control as a supported one. 

If none of these help, please submit a support case to our TestComplete Customer Care team:  

https://support.smartbear.com/message/?prod=testcomplete 


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

2 REPLIES 2
Highlighted
Frequent Visitor

Re: TC is not able to recognise popup window of a xamarin form based iOS app

I'm also having a similar issue with my Xamarin Android app using Rg.Plugins.Popup.  My issue is simply that the object mapper does not recognize anything on my popup.  Anything that it highlights on the screen is actually an object BEHIND the popup.

 

Did you ever get anything resolved on this?

Highlighted
Community Manager

Re: TC is not able to recognise popup window of a xamarin form based iOS app

Hi @ptrevino  

First of all, please make sure that your application is prepared properly according to the Preparing for Testing Mobile Applications help topic - https://support.smartbear.com/testcomplete/docs/app-testing/mobile/preparing.html 

After, please make sure that the control you test is in the list of the supported ones. You can find the full list here: https://support.smartbear.com/testcomplete/docs/general-info/supported-technologies/controls/xamarin... 

In case the control isn’t supported, it’s worth playing with Object Mapping to make TestComplete treat the control as a supported one. 

If none of these help, please submit a support case to our TestComplete Customer Care team:  

https://support.smartbear.com/message/?prod=testcomplete 


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors