在视觉工作室更新和xcode更新后,我无法运行我的xamarin ui测试。不知道为什么会发生这种情况......
我得到以下异常:
SetUp : System.Exception : ApkFile or InstalledApp has not been configured.
at Xamarin.UITest.Configuration.AndroidAppConfiguration.Verify () [0x0003d] in <2a16c16730a54859bda72c6bc1c728f7>:0
at Xamarin.UITest.Android.LocalAndroidAppInitializer.VerifyConfiguration () [0x00008] in <2a16c16730a54859bda72c6bc1c728f7>:0
at Xamarin.UITest.Android.AndroidApp..ctor (Xamarin.UITest.Configuration.IAndroidAppConfiguration appConfiguration, Xamarin.UITest.Shared.Execution.IExecutor executor) [0x000c3] in <2a16c16730a54859bda72c6bc1c728f7>:0
at Xamarin.UITest.Android.AndroidApp..ctor (Xamarin.UITest.Configuration.IAndroidAppConfiguration appConfiguration) [0x00000] in <2a16c16730a54859bda72c6bc1c728f7>:0
at Xamarin.UITest.Configuration.AndroidAppConfigurator.StartApp (Xamarin.UITest.Configuration.AppDataMode appDataMode) [0x00017] in <2a16c16730a54859bda72c6bc1c728f7>:0
at UniversalApp.UITests.AppInitializer.StartApp (Xamarin.UITest.Platform platform) [0x0000a] in /Users/testing/backend/src/UniversalApp.UITests/AppInitializer.cs:23
at UniversalApp.UITests.DummyTests.BeforeEachTest () [0x00001] in /Users/testing/backend/src/UniversalApp.UITests/DummyTests.cs:26
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0003b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-06/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305
[UPDATE]
我现在能够运行android测试而不是ios测试现在我得到错误无法确定模拟器版本
显然,Xamarin ui测试与xcode 10.2不能很好地兼容。我降级到10.1版本,android再次运行正常。