Also any issues that you came up with such as speed of executing the tests. How and where did you run the tests and do you think there are better ways to do mobile app testing with some of the new products out there?
1 Answer, 1 is accepted
0
Georgi
Telerik team
answered on 06 Jul 2022, 08:38 AM
Hi ubarn,
Here are some tips and tricks:
Set AutomationId in the app where possible and then use it to locate elements. This is the most reliable and fast way to find elements. Also searching by the text is good as well.
Use the App.Repl() to look the tree and search for element.
For the initial setup you can look the documentation.
Also as Xamarin UI tests is part of AppCenter and AppCenter is in maintenance mode, you may look in to other testing frameworks like Appium.
Here are some reasons to why I would recommend Appium:
It is open source and has a bigger community.
It is not as stale as Xamarin UI tests, you can check this and this issues.
Appium has support for Desktop platforms as well.
Often Xamarin UI test has issue when new XCode is released and you cannot use the latest simulator or XCode, usually it takes few months to be fixed. There is no such issue with Appium due to the nature of the framework.