无法超时未在VS2008中收到响应的WebTestRequest [英] Unable to timeout a WebTestRequest that is not recieving a response in VS2008

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

问题描述

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

-Jon

解决方案


右键单击在'Webtest'上,选择'正确',转到'属性窗口',设置超时(秒)属性


问候,


Himanshu


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

解决方案

Hi,

Right click on 'Webtest', select 'properly', go to 'property windows', set time out(seconds) property

Regards,

Himanshu


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆