Xamarin UITest for mobile testing

Burak Dönmez
Mobile Application Testing
2 min readApr 8, 2020

Normally, Xamarin is used to develop applications using C# programming language. However, Xamarin also provides a powerful test framework. To use this, you have to install Visual Studio and import XamarinUITest.dll and related other dlls.

Try RobotQA cloud based device farm for debugging for free:

Link: RobotQA

You can two choices when writing Xamarin test. Firstly, you can install application then start test. The second choice is that you can write your test then it installs and executes test codes. Xamarin testing is useful for delopers who uses C# language.

Xamarin test can be written for both android and iOS. For android, xamarin uses adb to connect and do processes. In iOS, xamarin uses iOSDeviceManager tool to install, delete etc. processes on phones.

iOSDeviceManager is a open source tool to connect phones. You can install, delete applications on real phones.

For iOS, xamarin also uses calabash framework. You have two options. Firstly, you can link your application with calabash and run xamarin test. When you choose this option, Xamarin will not link your application calabash and just run your test codes. Secondly, xamarin will link your application if you do not link it with calabash. In this case, xamarin will link. Xamarin uses default calabash port in this case.Calabash is using to build a bridge between your application and xamarin server.

For now, i wrote about xamarin basics. I will write more information about Xamarin UITest at next stories.

--

--

Burak Dönmez
Mobile Application Testing

Sharing experiences about mobile test automation. cofounder @roboticmobi