loadrunner11录制登录系统的脚本时,产生很多jsessionid,怎么办?
我用的loadrunner11,ie7录制登录系统的脚本,url中有很多的jsessionid,我该怎么去掉呢?或者有没有办法可以关联? 回复 1# queenjolins首先关联第一次产生的,后面出现的地方都做参数化就可以了 回复 1# queenjolins
提问题最好有个截图,这样大家一看就很清楚了 最好有个截图,这样方便大家帮你解决 你的脚本有报错吗?如果不关联jssessionid,所有的jssessionid 是不是都是一样的呢?也许根本就用不到关联 我也遇到了同样的问题。 回放会报错
Action.c(51): Error -26631: HTTP Status-Code=400 (POST requires content-length) for "http://192.168.0.120/fifa/guide/step7;jsessionid=abcYCLW8jZog_dQvEI9Dt">here</a><?sid="
Action.c(51): web_submit_data("step7;jsessionid=abce-_WB48DIceN8788Dt") highest severity level was "ERROR", 179 body bytes, 191 header bytes, 13 chunking overhead bytes
Action()
{
web_set_max_html_param_len("1024");
/* Registering parameter(s) from source task id 11
// {PeopleSoftJSessionID2} = "abce-_WB48DIceN8788Dt"
// */
web_reg_save_param("PeopleSoftJSessionID2",
"LB/IC=jsessionid=",
"RB/IC=?",
"Ord=1",
"Search=Body",
LAST);
web_url("192.168.0.120",
"URL=http://192.168.0.120/",
"Resource=1",
"RecContentType=application/xhtml+xml",
"Referer=",
"Snapshot=t1.inf",
LAST);
lr_think_time(4);
web_url("signup_;jsessionid=abce-_WB48DIceN8788Dt",
"URL=http://192.168.0.120/fifa/sign/signup_;jsessionid={PeopleSoftJSessionID2}?sid=",
"Resource=1",
"RecContentType=application/xhtml+xml",
"Referer=http://192.168.0.120/fifa/sign/signin_;jsessionid={PeopleSoftJSessionID2}",
"Snapshot=t2.inf",
LAST);
web_url("signup;jsessionid=abce-_WB48DIceN8788Dt",
"URL=http://192.168.0.120/fifa/sign/signup;jsessionid={PeopleSoftJSessionID2}?name=6669&category=1",
"Resource=1",
"RecContentType=application/xhtml+xml",
"Referer=http://192.168.0.120/fifa/sign/signup_;jsessionid={PeopleSoftJSessionID2}?sid=",
"Snapshot=t3.inf",
LAST);
web_url("skip_guide;jsessionid=abce-_WB48DIceN8788Dt",
"URL=http://192.168.0.120/fifa/guide/skip_guide;jsessionid={PeopleSoftJSessionID2}?sid=",
"Resource=1",
"RecContentType=application/xhtml+xml",
"Referer=http://192.168.0.120/fifa/guide/index;jsessionid={PeopleSoftJSessionID2}?sid=",
"Snapshot=t4.inf",
LAST);
web_submit_data("step7;jsessionid=abce-_WB48DIceN8788Dt",
"Action=http://192.168.0.120/fifa/guide/step7;jsessionid={PeopleSoftJSessionID2}?sid=",
"Method=POST",
"RecContentType=application/xhtml+xml",
"Referer=http://192.168.0.120/fifa/guide/index;jsessionid={PeopleSoftJSessionID2}?sid=",
"Snapshot=t5.inf",
"Mode=HTTP",
ITEMDATA,
"Name=nick", "Value=6669", ENDITEM,
"Name=sex", "Value=0", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("search.png",
"URL=http://192.168.0.120/images/logo/search.png",
"Resource=1",
"Referer=http://192.168.0.120/fifa/guide/step7;jsessionid={PeopleSoftJSessionID2}?sid=",
LAST);
web_url("skip_guide;jsessionid=abce-_WB48DIceN8788Dt_2",
"URL=http://192.168.0.120/fifa/guide/skip_guide;jsessionid={PeopleSoftJSessionID2}?sid=",
"Resource=1",
"RecContentType=application/xhtml+xml",
"Referer=http://192.168.0.120/fifa/guide/step7;jsessionid={PeopleSoftJSessionID2}?sid=",
"Snapshot=t6.inf",
LAST);
web_url("step14;jsessionid=abce-_WB48DIceN8788Dt",
"URL=http://192.168.0.120/fifa/guide/step14;jsessionid={PeopleSoftJSessionID2}?sid=",
"Resource=1",
"RecContentType=application/xhtml+xml",
"Referer=http://192.168.0.120/fifa/guide/index;jsessionid={PeopleSoftJSessionID2}?sid=",
"Snapshot=t7.inf",
LAST);
web_concurrent_end(NULL);
return 0;
}
页:
[1]