iOS EndPoint not listed in Host.AvailableHosts

Class library usage, coding and language questions.
sam1974
Posts: 6
Joined: Tue Jun 14, 2016 12:23 pm

iOS EndPoint not listed in Host.AvailableHosts

Post by sam1974 » Mon May 07, 2018 10:30 am

Hi all

Even if the iOS EndPoint show up as 'Connected' in the 'EndPoint View' it's not possible to list them (via Host.AvailableHosts).

I am searching for the possibility to switch the current host to one of my iOS endpoints before executing some recordings for an iOS-App. After that I need to switch back to a WebDriver "do something" in Chrome on a real Machine and last I need to execute some CLI tools on the local machine.

So how can I execute some tests on iOS EndPoint and some on WebDriver (and even some on "local Browser") within only ONE test run?

Kind Regards, sam1974

asdf
Posts: 174
Joined: Mon Mar 21, 2016 3:16 pm

Re: iOS EndPoint not listed in Host.AvailableHosts

Post by asdf » Wed May 09, 2018 2:00 pm

Hi Sam,

When I execute this code, every endpoint is in the list. Doesn't matter if it is connected or not. Therefore, may I ask you to post the code which you used to do so?
I used the following lines to get all available hosts and log them to the report.

Code: Select all

        	IEnumerable<string> hosts = Host.AvailableHosts;
        	foreach (var element in hosts) {
        		Report.Info(element);
        	}
The snippet below changes the current host.

Code: Select all

        	Host.MakeCurrentHost("YourDevice");
Hope this helps.
Regards,
asdf

sam1974
Posts: 6
Joined: Tue Jun 14, 2016 12:23 pm

Re: iOS EndPoint not listed in Host.AvailableHosts

Post by sam1974 » Mon Jun 25, 2018 1:05 pm

It works now. Thanks! Please excuse my very late answer.