Detect OS of endpoint

Mobile Testing, Android App Testing.
dkmpbrt
Posts: 21
Joined: Thu Jan 25, 2018 9:00 am
Location: Antwerp
Contact:

Detect OS of endpoint

Post by dkmpbrt » Wed Nov 04, 2020 11:46 am

Hey,

Is it possible to detect the OS running on the mobile endpoint you are running your tests on? Or maybe access the properties of the endpoint via C#?

kr,
Bart

User avatar
Support Team
Site Admin
Site Admin
Posts: 12161
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Detect OS of endpoint

Post by Support Team » Fri Nov 20, 2020 7:35 pm

Hi!

Please contact us via the links below and we will be more than happy to further assist you with this! If you do contact us, please include a link to this thread so we can provide the solution once found.

Kind Regards,
Ranorex Team
.
Image

dkmpbrt
Posts: 21
Joined: Thu Jan 25, 2018 9:00 am
Location: Antwerp
Contact:

Re: Detect OS of endpoint

Post by dkmpbrt » Mon Nov 30, 2020 3:51 pm

Hi Ranorex Team,

I have found the solution myself.

I used the following code to retrieve the OS:

Code: Select all

Ranorex.Core.Remoting.RemoteServiceLocator.Service.GetByDisplayName("DEVICENAME").RemoteInfo.Platform.MobilePlatform.ToString();
Kr,
Bart