Forum Xamarin Test Cloud (Read Only)

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Exception when running 'tree' command against webview

Hi guys,

I am now able to launch repl against a local simulator which loads a local iOS app file.

    [Test]
    public void AppLaunches()
    {
        app.Repl();
    }

It is working fine when I run 'tree' command against a simple UI(has few native elements), however, when I run against a more complicated UI which has few webviews (wkwebview), the console gets stuck for few minutes and it returns the following exception. Please let me know if additional information I can provide.

=== Versions ===
iOS test running Xamarin.UITest version: 2.0.4
Test server version: 0.20.3

=== Exception ===

Execution failed with exception: System.Net.WebException: Error getting response stream (ReadDone2): ReceiveFailure ---> System.Exception: at System.Net.WebConnection.HandleError (System.Net.WebExceptionStatus st, System.Exception e, System.String where) [0x00000] in :0
at System.Net.WebConnection.ReadDone (System.IAsyncResult result) [0x00000] in :0
at System.Net.Sockets.SocketAsyncResult+c__AnonStorey0.<>m__0 (System.Object _) [0x00000] in :0
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Net.WebConnection.HandleError (System.Net.WebExceptionStatus st, System.Exception e, System.String where) [0x00044] in :0
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00064] in :0
at System.Threading.Tasks.TaskFactory1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func2[T,TResult] endFunction, System.Action1[T] endAction, System.Threading.Tasks.Task1[TResult] promise, System.Boolean requiresSynchronization) [0x00014] in <8f2c484307284b51944a1a13a14c0266>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Net.Http.HttpClientHandler+<SendAsync>c__async0.MoveNext () [0x0041e] in <41c316444c8a4380b9344ba09eeb18de>:0 --- End of stack trace from previous location where exception was thrown --- at Xamarin.UITest.Shared.Http.HttpClient.Request (System.String method, System.String endpoint, Xamarin.UITest.Shared.Http.ExceptionPolicy exceptionPolicy, System.Nullable1[T] timeOut) [0x0010e] in :0
at Xamarin.UITest.Shared.Http.HttpClient.Get (System.String endpoint, Xamarin.UITest.Shared.Http.ExceptionPolicy exceptionPolicy, System.Nullable1[T] timeOut) [0x00000] in <b73cff4a2397440784b826df8244b425>:0 at Xamarin.UITest.iOS.HttpCalabashConnection.Dump () [0x00000] in <b73cff4a2397440784b826df8244b425>:0 at Xamarin.UITest.iOS.iOSGestures.DumpByEndpoint () [0x00006] in <b73cff4a2397440784b826df8244b425>:0 at Xamarin.UITest.iOS.EnsureVersion.AtLeastWithFallback[T] (System.String atLeastVersion, System.Func1[TResult] func, System.Func1[TResult] fallbackFunc) [0x00021] in <b73cff4a2397440784b826df8244b425>:0 at Xamarin.UITest.iOS.iOSGestures.Dump () [0x00000] in <b73cff4a2397440784b826df8244b425>:0 at Xamarin.UITest.Utils.TreePrintHelper.PrintTree (Xamarin.UITest.Utils.ITreePrinter treePrinter) [0x00009] in <b73cff4a2397440784b826df8244b425>:0 at Xamarin.UITest.Queries.AppPrintHelper.Tree (System.Nullable1[T] console) [0x0001f] in :0
at .Host (System.Object& $retval) [0x00010] in <55ae4b90d47f44caa65b7ebe1f1d5ea5>:0
at Mono.CSharp.Evaluator.Evaluate (System.String input, System.Object& result, System.Boolean& result_set) [0x0003e] in <2edf71afecba432e8943ff8d46840929>:0
at Xamarin.UITest.Repl.Evaluation.MonoCSharpReplEngine.Evaluate (System.String line) [0x00017] in <6f48d9ab909d4f80a1d24c65a06d5dc2>:0
at Xamarin.UITest.Repl.Repl.ReplFacade.RunCode (System.String code) [0x00029] in :0
at Xamarin.UITest.Repl.PromptHandler.PrintTree () [0x00000] in :0
at Xamarin.UITest.Repl.PromptHandler.HandleInput (System.ConsoleKeyInfo key) [0x00072] in :0
at Xamarin.UITest.Repl.Program.Main (System.String[] args) [0x0019d] in :0

Sign In or Register to comment.