microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
512 stars 285 forks source link

Timeout Issue with System.Net.HttpWebRequest.GetResponse() #1410

Open laxmikanthmaram opened 4 months ago

laxmikanthmaram commented 4 months ago

Question

What is your question? We are facing the below error while executing the scripts, (It is an Intermittent issue is facing with 1 or 2 scripts out 32. Every time different test case is getting failed with the below error).

Note: Script is getting hung after completing the couple of actions in the browser.

Error Message: Test method AccountManagement_EasyRepro.Tests.Tests.IAS.Accounts_ProfileTypes threw exception: OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:50005/session/bccd4ad0fc8f5093a00679336de3b4fc/element/F807E961E93135F74382043422691885_element_854/click timed out after 1200 seconds. ---> System.Net.WebException: The operation has timed out

Stack Trace: at System.Net.HttpWebRequest.GetResponse() at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo) --- End of inner exception stack trace --- at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo) at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute) at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) at OpenQA.Selenium.Remote.RemoteWebElement.Execute(String commandToExecute, Dictionary2 parameters) at OpenQA.Selenium.Remote.RemoteWebElement.Click() at AccountManagement_EasyRepro.Tests.Steps.CommonSteps_Temp.<>c__DisplayClass124_0.b__0(IWebElement e) in D:\a\1\s\AccountManagement_EasyRepro.Tests\Steps\CommonSteps_Temp.cs:line 5123 at Microsoft.Dynamics365.UIAutomation.Browser.SeleniumExtensions.WaitUntil(ISearchContext driver, Func2 searchFunc, Nullable1 timeout, Action1 successCallback, Action failureCallback) at Microsoft.Dynamics365.UIAutomation.Browser.SeleniumExtensions.WaitUntilClickable(ISearchContext driver, By by, Nullable1 timeout, Action`1 successCallback, Action failureCallback) at AccountManagement_EasyRepro.Tests.Steps.CommonSteps_Temp.WhenISetTheValueToOptionSetSelectField(String dataid, String value) in D:\a\1\s\AccountManagement_EasyRepro.Tests\Steps\CommonSteps_Temp.cs:line 5120 at AccountManagement_EasyRepro.Tests.Tests.IAS.Accounts_ProfileTypes() in D:\a\1\s\AccountManagement_EasyRepro.Tests\Tests\IAS.cs:line 37

App Config we are using: DotNetSeleniumExtras.WaitHelpers -> 3.11.0 Dynamics365.UIAutomation.Api -> 9.2.21084.148 InputSimulator -> 1.0.4 Microsoft.CrmSdk.XrmTooling.CoreAssembly -> 9.1.0.110 MSTest.TestAdapter -> 3.0.4 MSTest.TestFramework -> 3.0.4 Selenium.WebDriver.ChromeDriver -> 121.0.6167.8500 SpecFlow -> 2.4.1

Can anyone please confirm the reason behind this issue. Which is causing the more execution time and impacting the project deadlines