tags:

views:

12

answers:

0

Hi,
Is it possible to use Pex framework to write test cases for WCF webservices? Using MS test runner i am able to test WCF service but testing same code using PexMethod() attribute fails with exception that indicates request channel timed out. I have tried increasing the "sendTimeout" in my config file w/o any success.

Here is exception that i am getting:

The HTTP request to 'http://localhost:9839/foo.svc' has exceeded the allotted timeout of 01:50:00. The time allotted to this operation may have been a portion of a longer timeout. at System.IO.Stream System.ServiceModel.Channels.HttpOutput+WebRequestHttpOutput.GetOutputStream() at System.Void System.ServiceModel.Channels.HttpOutput.Send(System.TimeSpan timeout) at System.Void System.ServiceModel.Channels.HttpChannelFactory+HttpRequestChannel+HttpChannelRequest.SendRequest(System.ServiceModel.Channels.Message message, System.TimeSpan timeout) at System.ServiceModel.Channels.Message System.ServiceModel.Channels.RequestChannel.Request(System.ServiceModel.Channels.Message message, System.TimeSpan timeout) System.Net.WebException: The operation has timed out at System.IO.Stream System.Net.HttpWebRequest.GetRequestStream(System.Net.TransportContext& context) at System.IO.Stream System.Net.HttpWebRequest.GetRequestStream() at System.IO.Stream System.ServiceModel.Channels.HttpOutput+WebRequestHttpOutput.GetOutputStream() at System.Void System.ServiceModel.Channels.HttpOutput.Send(System.TimeSpan timeout) at System.Void System.ServiceModel.Channels.HttpChannelFactory+HttpRequestChannel+HttpChannelRequest.SendRequest(System.ServiceModel.Channels.Message message, System.TimeSpan timeout) at System.ServiceModel.Channels.Message System.ServiceModel.Channels.RequestChannel.Request(System.ServiceModel.Channels.Message message, System.TimeSpan timeout) at System.ServiceModel.Channels.Message System.ServiceModel.Dispatcher.RequestChannelBinder.Request(System.ServiceModel.Channels.Message message, System.TimeSpan timeout) at System.Object System.ServiceModel.Channels.ServiceChannel.Call(System.String action, System.Boolean oneway, System.ServiceModel.Dispatcher.ProxyOperationRuntime operation, System.Object[] ins, System.Object[] outs, System.TimeSpan timeout) at System.Runtime.Remoting.Messaging.IMethodReturnMessage System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(System.Runtime.Remoting.Messaging.IMethodCallMessage methodCall, System.ServiceModel.Dispatcher.ProxyOperationRuntime operation) at System.Runtime.Remoting.Messaging.IMessage System.ServiceModel.Channels.ServiceChannelProxy.Invoke(System.Runtime.Remoting.Messaging.IMessage message) at System.Void System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(System.Runtime.Remoting.Proxies.MessageData& msgData, System.Int32 type)