How can I get Model Number + Mobile Name + OS name in Xamarin UITest using C# (Visual Studio) in My Test Result?
There is another discussion about this here: https://forums.xamarin.com/discussion/63234/how-to-get-os-version-of-mobile-from-c-in-xamarin-forms
You can use a backdoor from the UITest project to call into the platform code. Info on using a back door:
So basically make one or more backdoor methods in your Android project (or iOS or UWP as the case may be) and have those methods return the info you need, and then call into those backdoor methods from the UITest project.
Thanks JGoldberger. finally We have implemented backdoor method to get Device info. in Test.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies