51Testing软件测试论坛

标题: Loadrunder Control VUser Failed的问题 [打印本页]

作者: cexowyc    时间: 2009-10-9 18:21
标题: Loadrunder Control VUser Failed的问题
脚本已经完成,回放无问题,使用Load Generator
设置如下
[attach]56843[/attach]

Run 开始的时候,马上就有11个user失败,
[attach]56844[/attach]

VUser图如下
[attach]56845[/attach]

请问下,一般这种问题会是什么原因

谢谢
作者: fubaiciti    时间: 2009-10-9 19:17
Failed Vuser应该有log的吧,里面有错误描述吗?
作者: cexowyc    时间: 2009-10-10 09:36
日志如下,会不会是因为服务器到了极限,处理不了了


Start auto log messages stack.        [MsgId: MMSG-10546]
Virtual User Script started        [MsgId: MMSG-15967]
Starting action vuser_init.        [MsgId: MMSG-15919]
vuser_init.c(12): web_add_header("Accept-Encoding") was successful          [MsgId: MMSG-26392]
vuser_init.c(15): web_add_header("Accept-Language") was successful          [MsgId: MMSG-26392]
vuser_init.c(18): web_add_header("User-Agent") was successful          [MsgId: MMSG-26392]
vuser_init.c(21): Error -26628: HTTP Status-Code=403 (Access Forbidden) for "http://192.168.30.29/CRMPerformanceTest/default.aspx"          [MsgId: MERR-26628]
End auto log messages stack.        [MsgId: MMSG-10544]
作者: cexowyc    时间: 2009-10-10 10:23
测试结果如下
[attach]56846[/attach]

10个失败的是在Init就失败了
Start auto log messages stack.        [MsgId: MMSG-10546]
Virtual User Script started        [MsgId: MMSG-15967]
Starting action vuser_init.        [MsgId: MMSG-15919]
vuser_init.c(12): web_add_header("Accept-Encoding") was successful          [MsgId: MMSG-26392]
vuser_init.c(15): web_add_header("Accept-Language") was successful          [MsgId: MMSG-26392]
vuser_init.c(18): web_add_header("User-Agent") was successful          [MsgId: MMSG-26392]
vuser_init.c(21): Error -26628: HTTP Status-Code=403 (Access Forbidden) for "http://192.168.30.29/CRMPerformanceTest/default.aspx"          [MsgId: MERR-26628]
End auto log messages stack.        [MsgId: MMSG-10544]

导致设计时候的20个用户,只有10个用户在逻辑上并发

在成功的10个用户中有几个失败的,失败的日志有两种
第一种:
Start auto log messages stack - Iteration 5.        [MsgId: MMSG-10545]
Starting action Action.        [MsgId: MMSG-15919]
Action.c(6): web_add_auto_header("Accept-Encoding") was successful          [MsgId: MMSG-26392]
Action.c(9): web_add_auto_header("Accept-Language") was successful          [MsgId: MMSG-26392]
Action.c(12): web_add_auto_header("User-Agent") was successful          [MsgId: MMSG-26392]
Action.c(15): web_set_max_html_param_len was successful          [MsgId: MMSG-26392]
Action.c(17): Notify: Transaction "add" started.        [MsgId: MMSG-16999]
Action.c(21): Registering web_reg_save_param was successful          [MsgId: MMSG-26390]
Action.c(29): Current Dealer ID is 1400002275        [MsgId: MMSG-17999]
Action.c(31): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.30.29/CRMPerformanceTest/default.aspx"          [MsgId: MERR-26612]
Action.c(31): Error -26377: No match found for the requested parameter "DealerID". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 9999 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
End auto log messages stack.        [MsgId: MMSG-10544]

DealerID 是我自定义的变量,从日志的  Action.c(29)中可以看到,DealerID 已经取到了,但是,还是报 No match found for the requested parameter DealerID,请问会是什么原因,我已经将 web_set_max_html_param_len 设成了9999


第二种:

Start auto log messages stack - Iteration 12.        [MsgId: MMSG-10545]
Action.c(119): web_submit_form("default.aspx_5") was successful, 38188 body bytes, 334 header bytes          [MsgId: MMSG-26386]
Action.c(133): Notify: Transaction "hide" ended with "Pass" status (Duration: 0.0382).        [MsgId: MMSG-16873]
Action.c(135): lr_think_time: 7.31 seconds (recorded think time was 5.00 seconds).        [MsgId: MMSG-15947]
Action.c(137): Notify: Transaction "unhide" started.        [MsgId: MMSG-16999]
Action.c(139): Submitting form to "http://192.168.30.29/CRMPerformanceTest/default.aspx", Target Frame=""          [MsgId: MMSG-27978]
Action.c(139): web_submit_form("default.aspx_6") was successful, 38188 body bytes, 334 header bytes          [MsgId: MMSG-26386]
Action.c(153): Notify: Transaction "unhide" ended with "Pass" status (Duration: 0.2933).        [MsgId: MMSG-16873]
Action.c(155): lr_think_time: 7.19 seconds (recorded think time was 5.00 seconds).        [MsgId: MMSG-15947]
Action.c(157): Notify: Transaction "delete" started.        [MsgId: MMSG-16999]
Action.c(159): Submitting form to "http://192.168.30.29/CRMPerformanceTest/default.aspx", Target Frame=""          [MsgId: MMSG-27978]
Action.c(159): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.30.29/CRMPerformanceTest/default.aspx"          [MsgId: MERR-26612]
End auto log messages stack.        [MsgId: MMSG-10544]

应该说就是500的错误,服务器内部错误,是否可以说是代码有优化空间




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2