Bug 53091 - Cannot set the port using UITest
Summary: Cannot set the port using UITest
Status: RESOLVED INVALID
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: XI 10.4 (C9)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-03-06 21:27 UTC by Jim Bennett
Modified: 2017-03-07 20:52 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Jim Bennett 2017-03-06 21:27:00 UTC
When I try to set the port in a UI test using configurator.DevicePort(port) the port setting is ignored. I'm sure it used to work on earlier version of UITest but now doesn't seem to work on 2.0.7.

I have a Mac with multiple user accounts, and each account runs a set of UI tests (to get round the one instruments per user limitation), and each user runs UI tests using a different port - 37265 for one user, 37264 for another. When my tests run I get errors for the user that should be using 37264 saying port 37265 is in use.
Comment 1 Vincent Dondain [MSFT] 2017-03-07 20:28:47 UTC
cc dominic who will transfer this bug to the Test Cloud team (maintaining the UI test framework).
Comment 2 Dominic N [MSFT] 2017-03-07 20:52:15 UTC
Hey Jim - 

https://developer.xamarin.com/api/member/Xamarin.UITest.Configuration.iOSAppConfigurator.DevicePort/p/System.Int32/

Indicates the following for `configurator.DevicePort(port)`:

> Configures the port of the device. Generally best left unset.

I'm uncertain whether this approach is expected to work as Apple likely has set that Instruments limitation for a reason - and if that limitation is required by Apple, then we can't support a method to circumvent that. I'll be resolving this as invalid for now (UITest issues don't typically get tracked in Bugzilla). If you do have any additional questions or want to talk further, use the link to contact support at the top right of the page when you're logged into Test Cloud and that'll get you directed through the appropriate route.