Timed out running command

Hi there,

I'm trying to create a UITest for a ios app, but pretty much everything gives me a Timeout.
Doing App.Tab(...) gives me this:

System.Exception : Error while performing Tap(Text("+1"))
----> System.Exception : Underlying query failed with output:
{"details":"","outcome":"FAILURE","reason":"Timed out running command uia.tapOffset('{:x 160 :y 400}')"}

Doing App.EnterText("...");

Gives me this:

System.Exception : Error while performing EnterText("123456")
----> System.Exception : Query for keyboard (uia.keyboard()) failed with output:
Status: 200
Contents:
{"details":"","outcome":"FAILURE","reason":"Timed out running command uia.keyboard()"}

I'm using Xamarin.UITest 0.7.1
And Xamarin Test Cloud Agent 0.16.2

The starting up of the app works, App.Repl(); also works...

I'm pretty new to xamarin ios, so I might be doing something wrong...

Tagged:

Posts

  • NicholasTurnerNicholasTurner USMember, University ✭✭
    edited October 2015

    Do this First in repl

    app.Query(c => c.Marked("MyAccessibilityIdentifier"));

    If this is valid then switch it out for tap.

    I always do app.WaitForElement(....) then a tap to verify it exists.

    If you get a timeout it's your method call

    I also wrap Debug around this

    #if DEBUG myUIButton.AccessibilityIdentifier = "MyAccessibilityIdentifier"; #endif

    I do this because Marked reads both AccessibilityIdentifier and AccessibilityLabel

  • AnthonyRamirezAnthonyRamirez USUniversity ✭✭✭

    Hi @Ron.Sijm

    If it still does not work, this post may help

    http://forums.xamarin.com/discussion/comment/158305/#Comment_158305

  • NicholasTurnerNicholasTurner USMember, University ✭✭

    @RonSijm Also make sure the Hardware keyboard is turned off. The test will fail because the hardware keyboard never shows.

Sign In or Register to comment.