java.lang.RuntimeException: java.util.concurrent.TimeoutException Android Testcloud

LewisKLewisK USUniversity ✭✭
edited October 11 in Xamarin Test Cloud

Hi,

When running tests on testcloud I have issues with red herring errors. Only one device fails per UI Test and it consistently has this error.

java.lang.RuntimeException: java.util.concurrent.TimeoutException at sh.calaba.instrumentationbackend.query.ast.UIQueryASTClassName.evaluateWithViews(UIQueryASTClassName.java:137) at sh.calaba.instrumentationbackend.query.ast.evaluation.UIQueryEvaluationStep.step(UIQueryEvaluationStep.java:40) at sh.calaba.instrumentationbackend.query.ast.evaluation.QueryEvaluator.evaluateQueryForPath(QueryEvaluator.java:19) at sh.calaba.instrumentationbackend.query.ast.UIQueryEvaluator.evaluateQueryForPath(UIQueryEvaluator.java:51) at sh.calaba.instrumentationbackend.query.ast.UIQueryEvaluator.evaluateQueryWithOptions(UIQueryEvaluator.java:16) at sh.calaba.instrumentationbackend.query.Query.executeQuery(Query.java:56) at sh.calaba.instrumentationbackend.actions.HttpServer.serve(HttpServer.java:571) at sh.calaba.instrumentationbackend.actions.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:487) at java.lang.Thread.run(Thread.java:818) Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask.get(FutureTask.java:177) at sh.calaba.instrumentationbackend.query.ast.UIQueryASTClassName.evaluateWithViews(UIQueryASTClassName.java:129)

Anyone else encountered this and fixed it?

Posts

  • LewisKLewisK USUniversity ✭✭
    edited October 18

    More information

    VS Output

    [18/10/2017 3:46:26 PM Informational] Exceptions while waiting for any:
    System.Exception: Query for Marked("Stringhere") failed with outcome: ERROR
    Status: 200
    Contents:
    {"detail":"java.lang.RuntimeException: java.util.concurrent.TimeoutException\n\tat sh.calaba.instrumentationbackend.query.ast.UIQueryASTClassName.evaluateWithViews(UIQueryASTClassName.java:137)\n\tat sh.calaba.instrumentationbackend.query.ast.evaluation.UIQueryEvaluationStep.step(UIQueryEvaluationStep.java:40)\n\tat sh.calaba.instrumentationbackend.query.ast.evaluation.QueryEvaluator.evaluateQueryForPath(QueryEvaluator.java:19)\n\tat sh.calaba.instrumentationbackend.query.ast.UIQueryEvaluator.evaluateQueryForPath(UIQueryEvaluator.java:51)\n\tat sh.calaba.instrumentationbackend.query.ast.UIQueryEvaluator.evaluateQueryWithOptions(UIQueryEvaluator.java:16)\n\tat sh.calaba.instrumentationbackend.query.Query.executeQuery(Query.java:56)\n\tat sh.calaba.instrumentationbackend.actions.HttpServer.serve(HttpServer.java:571)\n\tat sh.calaba.instrumentationbackend.actions.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:487)\n\tat java.lang.Thread.run(Thread.java:761)\nCaused by: java.util.concurrent.TimeoutException\n\tat java.util.concurrent.FutureTask.get(FutureTask.java:177)\n\tat sh.calaba.instrumentationbackend.query.ast.UIQueryASTClassName.evaluateWithViews(UIQueryASTClassName.java:129)\n\t... 8 more\n","reason":"java.util.concurrent.TimeoutException","outcome":"ERROR"}
    at Xamarin.UITest.Android.AndroidGestures.Query[T](ITokenContainer query, Object[] args, String methodName)
    at Xamarin.UITest.Android.AndroidGestures.Query(AppQuery query)
    at Xamarin.UITest.Android.AndroidApp.c__AnonStorey31.c__AnonStorey32.<>m__0()
    at Xamarin.UITest.Shared.WaitForHelper.WaitForAnyOrDefault[T](Func1 query, T[] defaultValue, Nullable1 timeout, Nullable1 retryFrequency, Nullable1 postTimeout)
    [18/10/2017 3:46:26 PM Informational] Error while performing WaitForElement(Marked("Stringhere"), "Timed out waiting for element...", null, null, null)
    Exception: System.TimeoutException: Timed out waiting for element...
    at Xamarin.UITest.Shared.WaitForHelper.WaitForAny[T](Func1 query, String timeoutMessage, Nullable1 timeout, Nullable1 retryFrequency, Nullable1 postTimeout)
    at Xamarin.UITest.Android.AndroidApp.c__AnonStorey31.<>m__0()
    at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)

    When executing a "tree" repl after the timeout exception I get this

    Execution failed with exception: System.Net.WebException: GET Failed
    at Xamarin.UITest.Shared.Http.HttpClient.HandleHttpError(String method, HttpResponseMessage response, ExceptionPolicy exceptionPolicy)
    at Xamarin.UITest.Shared.Http.HttpClient.Request(String method, String endpoint, ExceptionPolicy exceptionPolicy, Nullable1 timeOut) at Xamarin.UITest.Android.AndroidGestures.Dump() at Xamarin.UITest.Utils.TreePrintHelper.PrintTree(ITreePrinter treePrinter) at Xamarin.UITest.Queries.AppPrintHelper.Tree(Nullable1 console)
    at Mono.CSharp.Evaluator.Evaluate(String input, Object& result, Boolean& result_set)
    at Xamarin.UITest.Repl.Evaluation.MonoCSharpReplEngine.Evaluate(String line)
    at Xamarin.UITest.Repl.PromptHandler.HandleInput(ConsoleKeyInfo key)
    at Xamarin.UITest.Repl.Program.Main(String[] args)

Sign In or Register to comment.