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

1 Answer 47 Views
Execution
Jun
Top achievements
Rank 1
Iron
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
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
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.
Jun
Top achievements
Rank 1
Iron
Iron
commented on 19 Jun 2024, 09:29 AM

@Elena

Hi Elena,

I tried run 2 cases on the same machine, one with chromeheadless, the other with edgeheadless, seems they still affect each other. After check seems the manager object is global in one machine, so if we run edgeheadless first, chromeheadless second, manager.activebrowser will turn to the last one, chromeheadless. Then the 1st edgeheadless case will be affected. 

So does that mean this way couldn't work too, please help to confirm, now I start to try docker~

Elena
Telerik team
commented on 19 Jun 2024, 01:27 PM

Hi Jun, 

As I shared before  you can execute only one single test/test list on one machine at the same time. So, I am not surprised from the outcome you share for your attempt. 

The option to execute multiple tests/test lists at the same time is to use more than one execution machines. 

I hope this answers your doubts.

Regards,
Elena

Tags
Execution
Asked by
Jun
Top achievements
Rank 1
Iron
Iron
Answers by
Elena
Telerik team
Share this question
or