android - Xamarin UI Tests get info about device and app version -


i have question. can in xamarin ui test information device , app? need information (ios+android):

  • system version.
  • device id
  • app version

there's nothing out of box gives this. instead way using backdoor.

https://developer.xamarin.com/guides/testcloud/uitest/working-with/backdoors/

this method expose on app, , can call using iapp.invoke(), giving name of method. these methods can take string parameter , return string. inside backdoor method can whatever details want , return them.

we use @ work device info such if phone or tablet, orientation it's running in (so can custom test steps on landscape vs portrait). it's useful trick.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -