LoadRunner11怎么找要关联的地方呀?求路过的帮忙解答一下!!!
http://bbs.51testing.com/data/attachment/common/cf/101913rgjrkh6j6kzj6o06.jpg
我用loadrunner自带的webtour录制了一个登陆的脚本
我在登录action前添加了一个文本检查点,然后报了如下的错:
loginUp.c(8): Registering web_reg_find was successful
loginUp.c(11): Error -26366: "Text=admin" not found for web_reg_find
loginUp.c(11): web_submit_data("login.pl") highest severity level was "ERROR", 795 body bytes, 225 header bytes
我搜资料讲因为每次登陆服务器发送的sessionId不同,需要添加关联
然后我就使用了手动关联,在tree模式下回放脚本,可我在httpview的response body下找不到要关联的内容
于是我就又录了一个脚本,我把脚本进行比较,出现sessionid不同,于是我在提交登录数据前插入了关联
web_reg_save_param("CorrelationParameter_1",
"LB=userSession Value=",
"RB=",
"Ord=1",
"Search=All",
LAST);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={CorrelationParameter_1}", ENDITEM,
"Name=username", "Value=admin", ENDITEM,
"Name=password", "Value=admin", ENDITEM,
"Name=login.x", "Value=0", ENDITEM,
"Name=login.y", "Value=0", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
LAST);
我又运行脚本后报了下面的错:
loginUp.c(7): Registering web_reg_save_param was successful
loginUp.c(15): Error -26377: No match found for the requested parameter "CorrelationParameter_1". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size
loginUp.c(15): web_submit_data("login.pl") highest severity level was "ERROR", 795 body bytes, 225 header bytes
Ending action loginUp.
有没有人帮我看一下这是怎么回事????应该怎么添加关联???
LZ重复开贴了。 我发现了,但我不知道在哪删掉帖子:P
页:
[1]