|
用LoadRunner测试文件下载:
(1)VuGen执行脚本,下载文件,所得完全正确;
(2)Controller设置大量Vuser间隔执行该脚本,所得文件也正确;
(3)但是,Controller设置多Vuser并发下载文件(添置集合点),得到的文件,大多数错误,少数正确!
所要下载的文件是内容为1234567890的.txt文件。
下载所得正确文件,其日志信息是:
......
Action.c(..): t=198045ms: 10-byte response body for "http://......" (RelFrameId=1)
Action.c(..): 1234567890
......
Action.c(..): Notify: Saving Parameter "body = 1234567890" [MsgId: MMSG-13798]
Action.c(..): web_submit_data("xxxxxx.asp") was successful, 10 body bytes, 222 header bytes [MsgId: MMSG-26386]
Action.c(..): Notify: Parameter Substitution: parameter "body" = "1234567890" [MsgId: MMSG-13992]
......
下载所得错误文件,其日志信息是:
......
Action.c(..): Warning -26376: Requested parameter "body" found in 3 different pages/frames. Use web_reg_save_param with more restrictive LB/RB/RelFrameId [MsgId: MWAR-26376]
Action.c(..): Warning -26375: Parameter "body" saved from "RelFrameId=1" (URL="......") [MsgId: MWAR-26375]
Action.c(..): web_submit_data("xxxxxx.asp") highest severity level was "warning", 2642 body bytes, 656 header bytes [MsgId: MMSG-26388]
Action.c(..): Notify: Parameter Substitution: parameter "body" = "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r\n<HTML><HEAD><TITLE>......</TITLE>......</BODY></HTML>\r\n1234567890" [MsgId: MMSG-13992]
......
下载得到正确文件,内容为1234567890;
但大多都得到了错误内容为<!DOC......
请帮忙分析一下儿可能原因!
怎么会时而对、时而错呢?
另,脚本中的web_reg_save_param设置为:
web_reg_save_param("body","LB=","RB=","search=Body",LAST);
请各位指教!Thanks in advance! |
|