Discussion:
[specflow] TechTalk.SpecRun.Framework.SpecRunException error when triggering test cases on Jenkins
ವಿನಯ್ ರಾಜ್ ಜೆ
2018-10-03 14:03:43 UTC
Permalink
Hi,

I am running selenium web tests via Jenkins which is hosted on AWS. I am am
trying to execute 15 test cases. During the execution only 6 test cases
will be executed and all the rest will be skipped. Below is the Stack Trace

*18:20:26* TechTalk.SpecRun.Framework.SpecRunException: At least one test thread aborted. ---> System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.*18:20:26* *18:20:26* Server stack trace: *18:20:26* at System.ServiceModel.Channels.CommunicationObject.ThrowIfFaulted()*18:20:26* at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)*18:20:26* at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)*18:20:26* at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)*18:20:26* *18:20:26* Exception rethrown at [0]: *18:20:26* at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)*18:20:26* at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)*18:20:26* at TechTalk.SpecRun.Framework.IOutProcTestAssemblyExecutor.RunTests(TestThreadState testThreadState)*18:20:26* at TechTalk.SpecRun.Framework.TestThread.Run(ITestExecutionManager executionManagerForRun)*18:20:26* at TechTalk.SpecRun.Framework.AsyncTestThreadRunner.RunSync(TestExecutionManager executionManager)*18:20:26* --- End of inner exception stack trace ---


Below is the versions i am using:
------------------------------------

Specflow : 2.3.2
Specflow.Nunit: 2.3.2
Specrun.Specflow: 1.7.2
Specrun.specflow.2-3-0: 1.7.2
--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Andreas Willich
2018-10-08 08:28:26 UTC
Permalink
Hi

From the exception, I assume you are using Process separation. There we
start additional processes and communicate via WCF.
And so I would say, something crashed the executor process and so the
communciation failed.
Can you look in the eventlog of the machine to see if there are some
entries why the process crashed?

BR
Andreas
Post by ವಿನಯ್ ರಾಜ್ ಜೆ
Hi,
I am running selenium web tests via Jenkins which is hosted on AWS. I am
am trying to execute 15 test cases. During the execution only 6 test cases
will be executed and all the rest will be skipped. Below is the Stack Trace
*18:20:26* TechTalk.SpecRun.Framework.SpecRunException: At least one test thread aborted. ---> System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.*18:20:26* *18:20:26* Server stack trace: *18:20:26* at System.ServiceModel.Channels.CommunicationObject.ThrowIfFaulted()*18:20:26* at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)*18:20:26* at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)*18:20:26* at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)*18:20:26* *18:20:26* Exception rethrown at [0]: *18:20:26* at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)*18:20:26* at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)*18:20:26* at TechTalk.SpecRun.Framework.IOutProcTestAssemblyExecutor.RunTests(TestThreadState testThreadState)*18:20:26* at TechTalk.SpecRun.Framework.TestThread.Run(ITestExecutionManager executionManagerForRun)*18:20:26* at TechTalk.SpecRun.Framework.AsyncTestThreadRunner.RunSync(TestExecutionManager executionManager)*18:20:26* --- End of inner exception stack trace ---
------------------------------------
Specflow : 2.3.2
Specflow.Nunit: 2.3.2
Specrun.Specflow: 1.7.2
Specrun.specflow.2-3-0: 1.7.2
--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...