microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
522 stars 289 forks source link

Easy Repro,the same code passed and failed in consecutive test runs without any change in the code.i got this issue while test run fails-Microsoft.Dynamics365.UIAutomation.Sample.UCI.CreateContactUCI.UCITestCreateContact threw exception: OpenQA.Selenium.WebDriverException: A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:64545/session #696

Open Anjusha-commits opened 4 years ago

Anjusha-commits commented 4 years ago

While automating Microsoft Dynamics 365 UI page (test case:Create Contact) using Easy Repro,the same code passed and failed in consecutive test runs. I got this issue while test runs fails -Microsoft.Dynamics365.UIAutomation.Sample.UCI.CreateContactUCI.UCITestCreateContact threw exception: OpenQA.Selenium.WebDriverException: A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:64545/session. The status of the exception was ReceiveFailure, and the message was: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host I have tried out with chrome webdriver version 2.37 and 2.38 and chrome browser version (64-66) as per github page.please help me to resolve this issue Issue found in :UCI (XrmApp)

AngelRodriguez8008 commented 4 years ago

Some times I have the same problem. It depends of the Internet & PC performance. The Timeout for some action expire, an the next action can not be performed. There is an Action Retry mechanism that should be fixed.

However can you get the latest version & tell us how it is working now? Paste hier please the results.

I suggest change the Issue title, to remove the exception part, this make difficult to get what is about. You can also format better the description.

Thanks.

tipsey commented 4 years ago

Getting random occurrences too: tried increasing Chrome Driver timeouts., add.options("no-sandbox") with no success. Using Easyrepro v 9.1, Chrome v79.0.0

OpenQA.Selenium.WebDriverException: A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:2628/session/852114ea163286f254724ff5fa44cd2e/window. The status of the exception was ConnectFailure, and the message was: Unable to connect to the remote server ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:2628