在适用于iOS的Macos上运行Xamarin.UITest:DeviceAgent启动会话失败

时间:2018-04-17 11:44:10

标签: c# ios macos xamarin mono

在带有下一个输出的模拟器(iPhone X iOS 11.3)的Macos机器上本地运行Xamarin.UI测试时:

完整日志文件:/var/folders/_4/g83h2w4975bfsv5t19_qwf5h0000gn/T/uitest/log-2018-04-17_14-29-22-619.txt

iOS测试运行Xamarin.UITest版本:2.2.4

跳过IDE集成作为重要属性已配置。要强制IDE集成,请将.PreferIdeSettings()添加到ConfigureApp。

跳过本地屏幕截图。配置应用程序时可以使用EnableScreenshots()启用。

模拟检查:未安装应用程序。

1 - LaunchTestAsync:     deviceId:9108E538-E44E-4D6D-9AA8-BB9A2CCCDDC1

1 - 启动模拟器(如果尚未运行)

7 - 启动模拟器(如果尚未运行)

7 - InstallApp:     pathToBundle:/Users/{user}/Projects/UITest/iOS/bin/iPhoneSimulator/Debug/device-builds/iphone7.2-10.1/UITest.iOS.app     deviceId:9108E538-E44E-4D6D-9AA8-BB9A2CCCDDC1

8 - HTTP请求失败,重试限制命中 例外:System.Net.Http.HttpRequestException:发送请求时发生错误---> System.Net.WebException:错误:ConnectFailure(连接被拒绝)---> System.Net.Sockets.SocketException:连接被拒绝   在/ Users / builder / data / lanes / 5533 / mono-mac-sdk / external / bockbuild / builds / mono-x64 / mcs中的System.Net.Sockets.Socket.Connect(System.Net.EndPoint remoteEP)[0x000b0] /class/System/System.Net.Sockets/Socket.cs:879   在/ Users / builder / data / lanes / 5533 / mono-mac-sdk / external / bockbuild / builds / mono-x64 / mcs / class中的System.Net.WebConnection.Connect(System.Net.HttpWebRequest请求)[0x0016d] /System/System.Net/WebConnection.cs:187    ---内部异常堆栈跟踪结束---   在/ Users / builder / data / lanes / 5533 / mono-mac-sdk / external / bockbuild / builds / mono-x64 / mcs / class / System中的System.Net.HttpWebRequest.EndGetRequestStream(System.IAsyncResult asyncResult)[0x0003c] /System.Net/HttpWebRequest.cs:904   在System.Threading.Tasks.TaskFactory 1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func 2 [T,TResult] endFunction,System.Action 1[T] endAction, System.Threading.Tasks.Task 1 [TResult] promise,System.Boolean requiresSynchronization)[0x0000f] in / Users / builder / data /lanes/5533/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/FutureFactory.cs:550 ---从抛出异常的先前位置开始的堆栈跟踪结束---   在/ Users / builder / data / lanes / 5533 / mono-mac-sdk / external / bockbuild / builds / mono-x64 / mcs / class / referencesource / mscorlib中的System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()[0x0000c] /system/runtime/exceptionservices/exceptionservicescommon.cs:152   在/ Users / builder / data / lanes / 5533 / mono-mac-sdk / external / bockbuild / builds / mono-x64中的System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task任务)[0x00037] /mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187   在/ Users / builder / data / lanes / 5533 / mono-mac-sdk / external / bockbuild / builds / mono-x64中的System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task任务)[0x00028] /mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156   在/ Users / builder / data / lanes / 5533 / mono-mac-sdk / external / bockbuild / builds / mono-x64中的System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(System.Threading.Tasks.Task任务)[0x00008] /mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128   在/ Users / builder / data / lanes / 5533 / mono-mac-sdk / external / bockbuild / builds / mono-x64 /中的System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1 + ConfiguredTaskAwaiter [TResult] .GetResult()[0x00000] MCS /类/ referencesource / mscorlib程序/系统/运行/ compilerservices / TaskAwaiter.cs:535   在/ Users / builder / data / lanes / 5533 / mono-mac-sdk / external / bockbuild / builds / mono-x64 / mcs / class / System中的System.Net.Http.HttpClientHandler + d__64.MoveNext()[0x0029d] .Net.Http / System.Net.Http / HttpClientHandler.cs:392

使用的包:

  • Xamarin.TestCloud.Agent
  • 0.21.5 Xamarin.UITest
  • 2.2.4 NUnit 2.6.3

在干净的新Xamarin.Forms项目上测试。 已经尝试删除xdb文件夹 - 没有帮助。 有人有经验如何解决这个问题吗?

0 个答案:

没有答案