本文介绍了无法超时未在VS2008中收到响应的WebTestRequest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我有一个大型编码的WebTest项目,它通过db表中的行在我们所有的客户站点上运行。我遇到的问题通常是请求将滞后于获得响应并阻止整个WebTest。虽然这确定了一个问题,但我需要能够超时此请求并继续进行WebTest的以下迭代以收集全面的结果。设置WebTestRequest的Timeout属性没有任何影响。同时更改testrunco​​nfig文件中的设置似乎没有帮助。我甚至尝试使用System.Timer类在测试运行时触发事件,然后在该事件中调用WebTest.Stop()方法,但是一旦该事件结束,WebTest仍然在那里等待对该请求的回复。提前谢谢!

-Jon

解决方案

Hello,

I have a large coded WebTest project that runs over all of our customer sites by rows in a db table. The problem I'm having is often a Request will lag on getting a response and hold up the entire WebTest. While this identifies a problem, I need to be able to timeout this request and move on to the following iterations of the WebTest to gather comprehensive results.  Setting the Timeout property of the WebTestRequest has no affect.  Also changing the settings in the testrunconfig file doesn't seem to help.  I've even tried using a System.Timer class to trigger an event when the test has run to long, then called the WebTest.Stop() method in that event, but once that event has ended, the WebTest still hangs there waiting for a response for that request.  Thank you in advance!

-Jon

解决方案


这篇关于无法超时未在VS2008中收到响应的WebTestRequest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 05:30