Telerik exception about Telerik.TestingFramework.Hosts.Common.IBrowserLauncher.LaunchBrowser for chromeheadless

0 Answers 41 Views
Chrome
Jun
Top achievements
Rank 1
Iron
Iron
Jun asked on 18 Jul 2024, 11:58 AM

Hi Team,

We are reviewing test results for chromeheadless, we found below exception for some cases run together, which can be reproduced. But they are good for chrome, seems only chromeheadless issue.

The exception is like below, I couldn't find any clue for it, can you give me any suggestion about why such exception occur, so that we can try to fix it.

19:04:03 System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
19:04:03 
19:04:03 Server stack trace: 
19:04:03    at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()
19:04:03    at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
19:04:03    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
19:04:03    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
19:04:03    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
19:04:03 
19:04:03 Exception rethrown at [0]: 
19:04:03    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
19:04:03    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
19:04:03    at Telerik.TestingFramework.Hosts.Common.IBrowserLauncher.LaunchBrowser(ILauncherOptions launchOptions)
19:04:03    at ArtOfTest.WebAii.Messaging.Process.HostsProxy.LaunchBrowser(ILauncherOptions launcherOptions)
19:04:03    at ArtOfTest.WebAii.BrowserSpecialized.Chrome.ChromeActions.LaunchCDPManagedBrowser(String startUrl, BrowserType browserType, Boolean windowVisible)
19:04:03    at ArtOfTest.WebAii.BrowserSpecialized.Chrome.ChromeActions.LaunchNewCDPManagedBrowser(Manager manager, Boolean windowVisible)
19:04:03    at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
19:04:03    at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser()
19:04:03    at WebAii.Framework.Context.WebTest.LaunchNewBrowser(Int32 attempts) in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\Context\WebTest.cs:line 173
19:04:03    at WebAii.Framework.Context.WebTest.LaunchNewBrowser(Int32 attempts) in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\Context\WebTest.cs:line 177
19:04:03    at WebAii.Framework.Context.WebTest.LaunchNewBrowser(Int32 attempts) in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\Context\WebTest.cs:line 177
19:04:03    at WebAii.Framework.Context.WebTest.LaunchNewBrowser(Int32 attempts) in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\Context\WebTest.cs:line 177
19:04:03    at WebAii.Framework.Context.WebTest.LaunchNewBrowser(Int32 attempts) in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\Context\WebTest.cs:line 177
19:04:03    at WebAii.Framework.Context.WebTest.LaunchNewBrowser(Int32 attempts) in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\Context\WebTest.cs:line 177
19:04:03    at WebAii.Framework.Context.WebTest.get_ActiveBrowser() in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\Context\WebTest.cs:line 156
19:04:03    at WebAii.Framework.WebAiiSupport.get_ActiveBrowser() in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\WebAiiAssemblyContext.cs:line 171
19:04:03    at WebAii.Framework.WebAiiResultSupplementer.SupplementResult(Result result) in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\WebAiiResultSupplementer.cs:line 50
19:04:03 OnSpecificationStart

Thanks,

Jun

Elena
Telerik team
commented on 22 Jul 2024, 01:36 PM

Hi Jun, 

What do you mean when saying "for some cases run together" - is this a test list execution? When does the error appear - in between the test steps and stops the execution? Or it is only in the logs and doesn't affect the actual run?

Please, share some additional details for the overall setup in which you execute the tests. Also provide some results generated from the test execution and Test Studio application logging.

Thank you in advance!

Best,
Elena

No answers yet. Maybe you can help?

Tags
Chrome
Asked by
Jun
Top achievements
Rank 1
Iron
Iron
Share this question
or