这个脚本应该如何关联呢?详见内容。
用wap协议录制的脚本:Action()
{
web_add_cookie("JSESSIONID=F5C199236A82B5C9CC9AD38C04DA4B84.t2; DOMAIN=wap.10658203.com");
web_add_cookie("JSESSIONID=204A3E78F003F91AD9C9714B2C586CFF.t2; DOMAIN=wap.10658203.com");
web_url("index.jsp",
"URL=http://wap.10658203.com/index.jsp",
"Resource=0",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Mode=HTTP",
LAST);
web_url("hopa.wbmp",
"URL=http://wap.10658203.com/images/hopa.wbmp",
"Resource=1",
"RecContentType=image/vnd.wap.wbmp",
"Referer=",
LAST);
lr_think_time( 6 );
web_submit_data("add.jsp",
"Action=http://wap.10658203.com/add.jsp",
"Method=POST",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Mode=HTTP",
ITEMDATA,
"Name=pid", "Value=", ENDITEM,
"Name=cycle", "Value=0", ENDITEM,
LAST);
lr_think_time( 15 );
web_submit_data("checkMsg.do",
"Action=http://wap.10658203.com/checkMsg.do",
"Method=POST",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Mode=HTTP",
ITEMDATA,
"Name=pid", "Value=", ENDITEM,
"Name=message", "Value=", ENDITEM,
"Name=message1", "Value=0", ENDITEM,
"Name=message2", "Value=testing", ENDITEM,
"Name=cycle", "Value=0", ENDITEM,
"Name=year", "Value=2010", ENDITEM,
"Name=month", "Value=02", ENDITEM,
"Name=day", "Value=11", ENDITEM,
"Name=weeks", "Value=", ENDITEM,
"Name=hour", "Value=09", ENDITEM,
"Name=minute", "Value=48", ENDITEM,
"Name=sRand1", "Value=1917", ENDITEM,
LAST);
web_submit_data("checkPhone.do",
"Action=http://wap.10658203.com/checkPhone.do",
"Method=POST",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Mode=HTTP",
ITEMDATA,
"Name=msisdn", "Value=15922962631", ENDITEM,
"Name=pid", "Value=", ENDITEM,
"Name=cycle", "Value=0", ENDITEM,
"Name=message", "Value=testing", ENDITEM,
"Name=message1", "Value=0", ENDITEM,
"Name=year", "Value=2010", ENDITEM,
"Name=month", "Value=02", ENDITEM,
"Name=day", "Value=11", ENDITEM,
"Name=weeks", "Value=null", ENDITEM,
"Name=hour", "Value=09", ENDITEM,
"Name=minute", "Value=48", ENDITEM,
"Name=sRand2", "Value=3638", ENDITEM,
LAST);
lr_think_time( 7 );
web_submit_data("checkPhone.do_2",
"Action=http://wap.10658203.com/checkPhone.do",
"Method=POST",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Mode=HTTP",
ITEMDATA,
"Name=pid", "Value=15922962631", ENDITEM,
"Name=userType", "Value=1", ENDITEM,
"Name=aid", "Value=0000", ENDITEM,
"Name=cycle", "Value=0", ENDITEM,
"Name=message", "Value=testing", ENDITEM,
"Name=year", "Value=2010", ENDITEM,
"Name=month", "Value=02", ENDITEM,
"Name=day", "Value=11", ENDITEM,
"Name=weeks", "Value=null", ENDITEM,
"Name=hour", "Value=09", ENDITEM,
"Name=minute", "Value=48", ENDITEM,
"Name=sRand2", "Value=3638", ENDITEM,
LAST);
return 0;
}
需要关联sRand1,sRand2.但是一直都提示: Error -27190: No match found for the requested parameter "add1". 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
web_submit_data highest severity level was "ERROR", 2958 body bytes, 229 header bytes "Name=sRand1", "Value=1917",
Name=sRand2", "Value=3638",
这1917和3638是从哪里来的? 这两个参数是为了解决用户使用手机时,使用手机自带的功能键在网站进行操作,比如索爱手机的 返回键,或moto的左右选择键。
就分别在add.jsp页面设置一个sRand1随机码,在chkphn.jsp页面设置一个sRand2随机码。 问题1:用wap协议录,loadrunner没有关联的对应选项?
问题2:用多协议web/(http/html)录,选择Scan Action for Correlations,提示No differences found,可是sRand1,sRand2确实是动态数据。 LR如何和场景中的参数相关联,这些往往都是业务的问题,你自己公司的业务自己都不知道你问谁啊?
这里怎么会有人清楚你们的开发用这些参数完成什么操作呢?
问下你们相关的开发人员,这些参数是如何从服务器端构造出来的,客户端如何得到的。
页:
[1]