TA的每日心情 | 开心 2018-4-23 08:52 |
---|
签到天数: 306 天 连续签到: 1 天 [LV.8]测试军长
|
本次遇到的问题是:在测试自有产品项目管理系统(B/S架构,JAVA开发)的并发用户数的瓶颈(验证本系统最多支持多少用户并发操作),录制脚本使用Web协议。
以下是我用LR8.1录制的脚本:
/* Registering parameter(s) from source task id 81
// {WCSParam3} = "57332B5914AD9733B6AAC14BAE8DBF664D9A7FC64B58FA2512F789137377C5D2449515B69B0D8B8E"
// */
web_reg_save_param("WCSParam3",
"LB/IC=.do?sid=",
"RB/IC=;",
"Ord=ALL",
"Search=headers",
"RelFrameId=1",
"SaveLen=80",
LAST);
web_url("main.do",
"URL=http://116.204.99.242:8888/JH_SMS/main.do?sid=57332B5914AD9733B6AAC14BAE8DBF664D9A7FC64B58FA2512F789137377C5D2449515B69B0D8B8E ", 注:应该是这里出了问题,为什么我用关联参数{WCSParam3}代替后,回放找不到{WCSParam3},见如后面的报错。如不替换的话,此时页面是过期的(最新的已变成2A515179A0B211BC8EAB16D33D6B440E8E1A19B9E347FDE59BDCFAA0F5129BA58DC1AF2410A98472 ),将无法打开而失败。请高手帮助解答,如何解决,谢谢!
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
EXTRARES,
"Url=js/dojo/_firebug/firebug.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/parser.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/date/stamp.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/form/Button.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/form/_FormWidget.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/window.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_Widget.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_WidgetBase.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_base/manager.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/Stateful.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_base.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_base/focus.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_base/place.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/AdapterRegistry.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_base/popup.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_base/window.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_base/scroll.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_base/sniff.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/uacss.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_base/typematic.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_base/wai.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_Templated.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/string.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/cache.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_CssStateMixin.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_Container.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_HasDropDown.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/Dialog.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/dnd/move.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/dnd/Mover.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/dnd/common.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/dnd/autoscroll.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/dnd/Moveable.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/dnd/TimedMoveable.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/fx.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/fx/Toggler.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/form/_FormMixin.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_DialogMixin.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/DialogUnderlay.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/layout/ContentPane.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/layout/_ContentPaneResizeMixin.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/_Contained.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/layout/_LayoutWidget.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/html.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dojo/i18n.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/nls/zh/loading.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/nls/zh/common.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/TooltipDialog.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/form/ValidationTextBox.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/form/TextBox.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/Tooltip.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/form/nls/zh/validate.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=js/dijit/form/Form.js", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=images/main_bg.jpg", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
"Url=images/main_bgline.jpg", "Referer=http://116.204.99.242:8888/JH_SMS/main.do?sid={WCSParam3}", ENDITEM,
LAST);
录制完后,回放失败,信息如下:
Action.c(125): Error -26366: "Text=欢迎使用项目管理系统" not found for web_reg_find
[MsgId: MERR-26366]
Action.c(125): Error -26377: No match found for the requested parameter "WCSParam3". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size
[MsgId: MERR-26377]
Action.c(125): Notify: Saving Parameter "WCSParam3_count = 0"
Action.c(125): web_url("main.do") highest severity level was "ERROR", 197662 body bytes, 4087 header bytes, 11 chunking overhead bytes
[MsgId: MMSG-26387]
关联函数的位置应该不是问题,但又不知道为什么关联后,又不能将最新的动态数据代替。
本人用lr_output_message("%s",lr_eval_string("{WCSParam3}"));打印显示是空的。请问如何打印WCSParam3的变量信息?
|
|