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
Post a Comment