Not able to run ios ui test on the simulator after last 18 september 2018 releases

codrinacodrina Member ✭✭
edited September 2018 in Xamarin.Forms

I wrote a few ui test in March/APril using NUunit 2.6.3 and Xamarin.UITest 2.2.4 , and I was able to run them on debug mode using the ipad simulator on my mac and also on a physical test ipad. Today, after last xcode , os and visual studio for mac releases, I get mainly 2 errors.
1) not able to install the device - agent ( i tried deleting the xdb folder inside the tmpdir folder) and then I get
2) unable to contact test backend running app .a common cause is that the app is not properly linked with calabash, Even if I aded xamarin cloud agent
v 0.21.6 (also tried the last one 0.21.7 but with no success)package to my iOS app(I'm using xamarin.forms 3.1), I've added the ENABLE_CLOUD key for the build action, and also in the FinishedLaunching method inside AppInitializer I have Xamarin,Calabash.Start() .

Did anyone has any clue? I also tried the last version of Xamarin.UITest 2.2.6 without any success.

Posts

  • I ran into this same issue after updating to Xamarin.UITest 2.2.6. With Xamarin.TestCloud.Agent 0.21.6 in my iOS app, I got the error. Once I updated to 0.21.7, cleaned the project and rebuilt it, I was able to run tests on the iOS simulator again.

  • NatzeeNatzee Member

    Any update about this?
    Getting the "unable to contact test backend running app .a common cause is that the app is not properly linked with calabash" Error, even though I did add Calabash on the AppDelegate

    EDIT: For added detail, the app installs on the simulator, and it opens, it just doesn't run the Test, showing the error instead.

    I do have the TestCloud.Agent on v 0.21.7, and Xamarin.UITest 2.2.6

    at Xamarin.UITest.iOS.iOSAppLauncher.EnsureCalabashRunning (Xamarin.UITest.iOS.ICalabashConnection connection) [0x00015] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at Xamarin.UITest.iOS.iOSAppLauncher.LaunchApp (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration, Xamarin.UITest.Shared.Http.HttpClient httpClient, Xamarin.UITest.TestCloud.TestCloudiOSAppConfiguration testCloudAppConfiguration, Xamarin.UITest.Shared.Http.HttpClient testCloudWsClient, Xamarin.UITest.Shared.Http.HttpClient xtcServicesClient, System.Boolean testCloudUseDeviceAgent) [0x0007f] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at Xamarin.UITest.iOS.iOSApp..ctor (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration, Xamarin.UITest.Shared.Execution.IExecutor executor) [0x002af] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at Xamarin.UITest.iOS.iOSApp..ctor (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration) [0x00000] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at Xamarin.UITest.Configuration.iOSAppConfigurator.StartApp (Xamarin.UITest.Configuration.AppDataMode appDataMode) [0x00017] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at ButtonDemos.UITest.AppInitializer.StartApp (Xamarin.UITest.Platform platform) [0x00018] in /www/xamarin-forms-samples/UserInterface/ButtonDemos/ButtonDemos.UITest/AppInitializer.cs:40
    at ButtonDemos.UITest.Tests.BeforeEachTest () [0x00001] in /www/xamarin-forms-samples/UserInterface/ButtonDemos/ButtonDemos.UITest/Tests.cs:25
    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) [0x00032] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305

  • codrinacodrina Member ✭✭

    I managed to run the ui test on the 11.4 ios simulator
    using:
    nunit framework v 3.10 and xamarin ui test 2.2.6

  • NatzeeNatzee Member

    While trying to edit my comment with more info it got deleted it seems.

    Having the issue with the "unable to contact test backend running app" error.
    With Xamarin.TestCloud.Agent on 0.21.7 and Xamarin.UITest 2.2.6
    App opens but getting error when test should run.

    at Xamarin.UITest.iOS.iOSAppLauncher.EnsureCalabashRunning (Xamarin.UITest.iOS.ICalabashConnection connection) [0x00015] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at Xamarin.UITest.iOS.iOSAppLauncher.LaunchApp (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration, Xamarin.UITest.Shared.Http.HttpClient httpClient, Xamarin.UITest.TestCloud.TestCloudiOSAppConfiguration testCloudAppConfiguration, Xamarin.UITest.Shared.Http.HttpClient testCloudWsClient, Xamarin.UITest.Shared.Http.HttpClient xtcServicesClient, System.Boolean testCloudUseDeviceAgent) [0x0007f] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at Xamarin.UITest.iOS.iOSApp..ctor (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration, Xamarin.UITest.Shared.Execution.IExecutor executor) [0x002af] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at Xamarin.UITest.iOS.iOSApp..ctor (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration) [0x00000] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at Xamarin.UITest.Configuration.iOSAppConfigurator.StartApp (Xamarin.UITest.Configuration.AppDataMode appDataMode) [0x00017] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at ButtonDemos.UITest.AppInitializer.StartApp (Xamarin.UITest.Platform platform) [0x00018] in /www/xamarin-forms-samples/UserInterface/ButtonDemos/ButtonDemos.UITest/AppInitializer.cs:40
    at ButtonDemos.UITest.Tests.BeforeEachTest () [0x00001] in /www/xamarin-forms-samples/UserInterface/ButtonDemos/ButtonDemos.UITest/Tests.cs:25
    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) [0x00032] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305

    @codrina said:
    I managed to run the ui test on the 11.4 ios simulator
    using:
    nunit framework v 3.10 and xamarin ui test 2.2.6

    Saw on other places that Nunit 3 wasn't

  • NatzeeNatzee Member

    While trying to edit my comment with more info it got deleted it seems.

    Having the issue with the "unable to contact test backend running app" error.
    With Xamarin.TestCloud.Agent on 0.21.7 and Xamarin.UITest 2.2.6
    App opens but getting error when test should run.

    at Xamarin.UITest.iOS.iOSAppLauncher.EnsureCalabashRunning (Xamarin.UITest.iOS.ICalabashConnection connection) [0x00015] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at Xamarin.UITest.iOS.iOSAppLauncher.LaunchApp (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration, Xamarin.UITest.Shared.Http.HttpClient httpClient, Xamarin.UITest.TestCloud.TestCloudiOSAppConfiguration testCloudAppConfiguration, Xamarin.UITest.Shared.Http.HttpClient testCloudWsClient, Xamarin.UITest.Shared.Http.HttpClient xtcServicesClient, System.Boolean testCloudUseDeviceAgent) [0x0007f] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at Xamarin.UITest.iOS.iOSApp..ctor (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration, Xamarin.UITest.Shared.Execution.IExecutor executor) [0x002af] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at Xamarin.UITest.iOS.iOSApp..ctor (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration) [0x00000] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at Xamarin.UITest.Configuration.iOSAppConfigurator.StartApp (Xamarin.UITest.Configuration.AppDataMode appDataMode) [0x00017] in <5715f3ee90a14a2f80dc9b243ed6375e>:0
    at ButtonDemos.UITest.AppInitializer.StartApp (Xamarin.UITest.Platform platform) [0x00018] in /www/xamarin-forms-samples/UserInterface/ButtonDemos/ButtonDemos.UITest/AppInitializer.cs:40
    at ButtonDemos.UITest.Tests.BeforeEachTest () [0x00001] in /www/xamarin-forms-samples/UserInterface/ButtonDemos/ButtonDemos.UITest/Tests.cs:25
    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) [0x00032] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305

    @codrina said:
    I managed to run the ui test on the 11.4 ios simulator
    using:
    nunit framework v 3.10 and xamarin ui test 2.2.6

    Saw on other places that Nunit 3 wasn't supported, that isn't the case anymore?

Sign In or Register to comment.