Is there any way to close and reconnect to my app in Xamarin UITest?
In my test case I want close and reconnect my Android app.
Is there any way to close and reconnect to my app in Xamarin UITest?
In my test case I want close and reconnect my Android app.
Depending upon what you mean by "close", but here are a couple of ways...
In the
MainActivty
of yourXamarin.Forms
Android app, add someUITest
backdoors:Now in your test, you can "exit" your app and "restart" it:
Update:
Android/Java and Calabash/Ruby
To invoke this method in Ruby/calabash-android: