LR:VUgen web_set_timeout函数不现实吗?

时间:2010-07-05 17:32:37

标签: httpwebrequest webtest load-testing loadrunner

据我所知,VUGen的web_set_timeout函数允许我设置一个超过通常值(似乎是120秒)的超时值。

我做什么明白:这是否意味着所有用户都不得不将浏览器的http POST超时配置值设置为新的更高值?那么我不能用(模拟/虚拟)用户配置测试,没有真实世界的用户会/可以使用吗?

我是否还要求用户和Web服务器之间的所有代理配置至少为高的超时值以在浏览器中使用自定义超时值?否则我的用户的交易将在我的负载测试通过时失败?

上下文:使用VUGen 9.51加载基于浏览器(Ajax)的前端的测试。浏览器在使用Error -27728 Step download timeout (120 seconds) has expired when downloading non-resource(s)的Web服务器请求时超时,我在使用web_set_timeout时犹豫不决。

1 个答案:

答案 0 :(得分:1)

每个浏览器都定义了不同的超时值。用户也可以很容易地更改此值。

有关IE超时的信息,请查看http://support.microsoft.com/kb/181050

总之它说:

Internet Explorer imposes a time-out limit for the server to return data. 
By default, the time-out limit is as follows:

Internet Explorer 4.0 and Internet Explorer 4.01    5 minutes
Internet Explorer 5.x and Internet Explorer 6.x    60 minutes
Internet Explorer 7 and Internet Explorer 8        60 minutes

Internet Explorer does not wait endlessly for the server to come
back with data when the server has a problem. 

今天使用的许多服务都是机器到机器服务(在SOAP请求中)  用于此)并且它们可能具有特定于接口的超时。

VuGen中从UI设置的位置来自“运行时设置|首选项|选项” - 在此列表中可以设置以下超时:

HTTP-Request connect timeout     default 120 seconds
HTTP-Request response timeout    default 120 seconds

然而,在实践中,如果正常的web-ui响应用户点击需要超过5-10秒,那么用户将认为该服务很慢。

此处的例外情况是SAP EP,其中30分钟等待简单的薄片就可以了......:)