Loadrunner设置检查点及常见问题解决方法

记录Loadrunner脚本设置检查点调试过程中常见的问题及解决方法:

1.Action.c(54): Error -27985:There is no context for HTML-based functions. A previous function may not haveused "Mode=HTML" or downloaded only non-HTML page(s), or the contexthas been reset (e.g., due to a GUI-based function)        [MsgId:MERR-27985]

Action.c(54): web_find highest severity level was"ERROR"          [MsgId: MMSG-26391]

产生原因:RuntimeSettings的Browse Emulation中设置了Simulate a new user on eachiteration引起的。由于这个设置导致每次迭代时都会模拟一个新的用户,新的用户并没有执行init操作而失败

解决方法:取消勾选Simulate a new user on eachiteration选项


2. 取消设置Simulate a new user on eachiteration后,依然报如下错误;

Action.c(21): Error -27985:There is no context for HTML-based functions. A previous function may not haveused "Mode=HTML" or downloaded only non-HTML page(s), or the contexthas been reset (e.g., due to a GUI-based function)        [MsgId:MERR-27985]

Action.c(21): web_find highest severity level was"ERROR"          [MsgId: MMSG-26391]

解决方法:放弃使用函数web_find (),选择使用函数web_reg_find()作为检查函数

3.Action.c(8): Resource"http://ip:xxxx/portal-clt/noAuth/flowShare_gainVerifyCode.msp?userName=xx&shareId=xxxx"not downloaded (resource downloading not requested)       [MsgId:MMSG-27299]

产生原因:RuntimeSettings的Browse Emulation中未设置Download non-HTML resouces引起的。

                Loadrunner中Resource表示该URL是否属于资源,“Resource=0”是非资源,在重放时该URL总是会被下载;“Resource=1”是资源,只有在选中“Download non-HTML resouces”选项的情况下才会被下载。脚本中显示“Resource=1”且未勾选Download non-HTML resouces”选项,所以报上述错误。

解决方法:勾选Download non-HTML resouces选项


4.Error -27257: Pendingweb_reg_save_param/reg_find/create_html_param[_ex] request(s) detected andreset at the end of iteration number 1          [MsgId: MERR-27257]

产生原因:函数web_reg_find()放在页面请求之后,检查点设置的位置不对导致上述错误

解决方法:将函数web_reg_find()放到请求页面之前

5.Action.c(48): Error -26366:"Text=list" not found for web_reg_find      [MsgId:MERR-26366]

Action.c(48): web_url("flowShare_snagFlow.msp")highest severity level was "ERROR", 69 body bytes, 173 headerbytes  [MsgId:MMSG-26388]

产生原因:脚本设置生效,但是执行请求时,检查检查点失败

解决方法:确认请求返回信息是否正确、重设函数web_reg_find 的检查内容.

猜你喜欢

转载自blog.csdn.net/laofashi2015/article/details/70240271