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
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.
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.
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.
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