|
使用lr9.5测试web用户注册
web服务器字符集为utf-8,录制时选中support charset utf-8
web_submit_data("RegHotelAction_save.action",
"Action=http://172.16.2.219:8080/directsale/RegHotelAction_save.action",
"Method=POST",
"RecContentType=text/html",
"Referer=http://172.16.2.219:8080/directsale/EditHotelAction_toRegHotel.action",
"Snapshot=t13.inf",
"Mode=HTML",
ITEMDATA,
"Name=struts.token.name", "Value=struts.token", ENDITEM,
"Name=struts.token", "Value=KU5MPZ6Q5J3NGAD9GEA1BMYFWB021F4D", ENDITEM,
"Name=hotelInfo.nameCN", "Value=jiudian{NO}", ENDITEM,
"Name=hotelInfo.shortSpell", "Value=jiudian{NO}", ENDITEM,
"Name=hotelInfo.nameEN", "Value=", ENDITEM,
"Name=hotelInfo.aliasName", "Value=jiudian{NO}", ENDITEM,
"Name=hotelInfo.star", "Value=", ENDITEM,
"Name=hotelInfo.country", "Value=", ENDITEM,
"Name=hotelInfo.province", "Value=", ENDITEM,
"Name=hotelInfo.city", "Value=", ENDITEM,
"Name=hotelInfo.region", "Value=", ENDITEM,
"Name=hotelInfo.address", "Value=", ENDITEM,
"Name=hotelInfo.subRegion", "Value=", ENDITEM,
"Name=hotelInfo.bizRegion", "Value=", ENDITEM,
"Name=hotelInfo.environMent", "Value=", ENDITEM,
"Name=hotelInfo.postCode", "Value=", ENDITEM,
"Name=hotelInfo.tel1", "Value=123", ENDITEM,
"Name=hotelInfo.tel2", "Value=", ENDITEM,
"Name=hotelInfo.fax1", "Value=", ENDITEM,
"Name=hotelInfo.fax2", "Value=", ENDITEM,
"Name=hotelInfo.webUrl", "Value=", ENDITEM,
"Name=hotelInfo.desc", "Value=", ENDITEM,
"Name=adminType", "Value=0", ENDITEM,
"Name=adminTypeId", "Value=2", ENDITEM,
"Name=ycimUser.userName", "Value=jiudian{NO}", ENDITEM,
"Name=ycimUser.plainPassWord", "Value=123456", ENDITEM,
"Name=plainPassWord2", "Value=123456", ENDITEM,
"Name=ycimUser.name", "Value=", ENDITEM,
"Name=ycimUser.email", "Value=jiudian{NO}@1.com", ENDITEM,
"Name=validCode", "Value=aaaaaa", ENDITEM,
LAST);
lr_output_message("%s",lr_eval_string("{NO}"));
lr9.5在操作时,我未曾做关联,发现每次操作时,sessionid从头到尾都是一致的,是个新的sessionid,为什么会重入? |
|