Bug 58993 - Xamarin.UITest 2.0.10 busted
Summary: Xamarin.UITest 2.0.10 busted
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: XI 10.10 (d15-2)
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-08-24 02:24 UTC by Kent
Modified: 2017-08-24 17:54 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 ANSWERED

Description Kent 2017-08-24 02:24:43 UTC
Aside: shouldn't there be a UITest product in Bugzilla?

Can't find an existing report on this, but various IApp methods in Xamarin.UITest 2.0.10 are failing with:

Error while performing DragCoordinates(0, 100, 1000, 100, null)
Exception: System.AggregateException: One or more errors occurred. ---> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'void' to 'object'
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object)
  at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0) [0x00104] in /private/tmp/source-mono-d15-3/bockbuild-d15-3/profiles/mono-mac-xamarin/build-root/mono-x64/external/corefx/src/System.Linq.Expressions/src/System/Dynamic/UpdateDelegates.Generated.cs:266 
  at Xamarin.UITest.XDB.Services.iOSDeviceAgentService+<DragAsync>c__async2.MoveNext () [0x003b5] in <a87c90c09452445fbb922acae3a82f00>:0 
   --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00013] in /private/tmp/source-mono-d15-3/bockbuild-d15-3/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2159 
  at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in /private/tmp/source-mono-d15-3/bockbuild-d15-3/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:3189 
  at System.Threading.Tasks.Task.Wait () [0x00000] in /private/tmp/source-mono-d15-3/bockbuild-d15-3/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:3054 
  at Xamarin.UITest.iOS.iOSGestures.DragCoordinates (System.Single fromX, System.Single fromY, System.Single toX, System.Single toY, System.Nullable`1[T] duration) [0x00048] in <a87c90c09452445fbb922acae3a82f00>:0 
  at Xamarin.UITest.iOS.iOSApp+<DragCoordinates>c__AnonStorey15.<>m__0 () [0x0008b] in <a87c90c09452445fbb922acae3a82f00>:0 
  at Xamarin.UITest.Utils.ErrorReporting.With (System.Action func, System.Object[] args, System.String memberName) [0x00006] in <a87c90c09452445fbb922acae3a82f00>:0 
---> (Inner Exception #0) Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'void' to 'object'
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object)
  at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0) [0x00104] in /private/tmp/source-mono-d15-3/bockbuild-d15-3/profiles/mono-mac-xamarin/build-root/mono-x64/external/corefx/src/System.Linq.Expressions/src/System/Dynamic/UpdateDelegates.Generated.cs:266 
  at Xamarin.UITest.XDB.Services.iOSDeviceAgentService+<DragAsync>c__async2.MoveNext () [0x003b5] in <a87c90c09452445fbb922acae3a82f00>:0 <---

Another user reported the same thing in the forums here: https://forums.xamarin.com/discussion/101665/error-using-dragcoordinates-or-any-swipe-method-cannot-implicitly-convert-type-void-to-object

Apparently introduced by 2.0.10.
Comment 1 Kent Green [MSFT] 2017-08-24 17:14:26 UTC
Even though you might only be hitting this issue locally, we research & triage Xamarin.UITest issues through the Test Cloud support channels because there's a lot of crossover between the testing platform and testing frameworks.

You can reach out to support by logging into testcloud.xamarin.com & clicking on "Support" in the menubar: http://content.screencast.com/users/Kent.Green/folders/Jing/media/572442e2-c82c-4a25-9a30-1f594f156dd7/00000323.png

In particular, it would be helpful if you're able to share your Xamarin.UITest source code to reproduce the issue & an IPA or APK to run it against or a link to the issue occurring in the Xamarin Test Cloud.
Comment 2 Kent Green [MSFT] 2017-08-24 17:54:57 UTC
One of my colleagues reported that the were able to reproduce the issue described in the forum thread you referenced; and are filing a bug report on it. 

If you're confident that it's exactly the same issue, then it might not be necessary to reach out to support as I described in comment 1; but you can keep that process in mind if you suspect any future bugs in Xamarin.UITest.