- Platform you are automating: iOS mobile
- Appium version: 2.0.1
- Real Device on Cloud (BrowserStack)
- The language you are using for writing tests: C#
Hi,
We are trying to migrate to Appium 2.0.1 and now our tests keep timing out, especially when we try to run test suite. Single tests pass.
When tests fail, we receive an error :
“System.AggregateException : One or more errors occurred. (The HTTP request to the remote WebDriver server for URL https://hub-cloud.browserstack.com/wd/hub/session timed out after 60 seconds.) (Object reference not set to an instance of an object.)* *2023-08-23T09:48:13.4920657Z [xUnit.net 00:01:07.94] ---- OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL https://hub-cloud.browserstack.com/wd/hub/session timed out after 60 seconds.* *2023-08-23T09:48:13.4925872Z [xUnit.net 00:01:07.94] -------- System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 60 seconds elapsing.* *2023-08-23T09:48:13.4929492Z [xUnit.net 00:01:07.94] ------------ System.TimeoutException : The operation was canceled.* *2023-08-23T09:48:13.4932508Z [xUnit.net 00:01:07.94] ---------------- System.Threading.Tasks.TaskCanceledException : The operation was canceled.* *2023-08-23T09:48:13.4933944Z [xUnit.net 00:01:07.94] -------------------- System.IO.IOException : Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..* *2023-08-23T09:48:13.4935580Z [xUnit.net 00:01:07.94] ------------------------ System.Net.Sockets.SocketException : The I/O operation has been aborted because of either a thread exit or an application request.* *2023-08-23T09:48:13.4937088Z [xUnit.net 00:01:07.94] ---- System.NullReferenceException : Object reference not set to an instance of an object.
”
What we noticed in our logs there are many socket hang ups, and we can see that app is opened and then it times out.
The issue we could see from the Xcodelogs is that it times out trying to find an element, but we are not seeing which element, since the locator strategy of the first element on page which he should find in test is ‘ios-predicate string’ , and since we cannot see findElement method called anywhere.
On single test run, it always finds the first element on page, so that is why we are not sure if this is the cause.
If someone could take a look at the logs, and please help us debug what is the cause.
Thanks!
Here is one of our logs:
Appium logs (1).txt (72.1 KB)