Does chromeheadless support to run 2 cases in parallel on the same machine

1 Answer 15 Views
Execution
Jun
Top achievements
Rank 1
Iron
Jun asked on 10 May 2024, 07:47 AM

Hi Jun,

I tried not support, will got exception when lunch new browser, but still want to double confirm with team whether there's a possibility. 

Thanks,

Jun

Jun
Top achievements
Rank 1
Iron
commented on 10 May 2024, 09:10 AM

The exception is like this

  Message: 
The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.

  Stack Trace: 
System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
Server stack trace: 
CommunicationObject.ThrowIfDisposedOrNotOpen()
ServiceChannel.EnsureOpened(TimeSpan timeout)
ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]: 
RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
<6 more frames...>
WebTest.LaunchNewBrowser(Int32 attempts) line 182
WebTest.LaunchNewBrowser(Int32 attempts) line 186
WebTest.LaunchNewBrowser(Int32 attempts) line 186
WebTest.LaunchNewBrowser(Int32 attempts) line 186
WebTest.LaunchNewBrowser(Int32 attempts) line 186
WebTest.LaunchNewBrowser(Int32 attempts) line 186
WebTest.get_ActiveBrowser() line 166
WebTest.get_Find() line 259

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 14 May 2024, 07:16 AM

Hi Jun,

Only one test or test list can be executed at the same time on one machine. If you want to run multiple tests at the same time you need to use a setup with more machine. 

Regards,
Elena
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Jun
Top achievements
Rank 1
Iron
commented on 15 May 2024, 02:44 AM

Thank you for your feedback Elena. I am trying if I can run two cases at the same time, one with ChromeHeadLess, and the other one with EdgeChromiumHeadless. Seems they will not be affected. Will let you know testing result later.
Tags
Execution
Asked by
Jun
Top achievements
Rank 1
Iron
Answers by
Elena
Telerik team
Share this question
or