|
我录的是一个售票系统,原本我想参数化的地方是林涛,但是发现所有旅客信息都弄在一个passger的组合里,请问下各位同仁们,这样的组合要怎么参数化才好?我一直做黑盒测试最近才开始研究LR,请大家帮帮忙。
web_submit_data("excess.do",
"Action=http://192.168.100.20:8099/ticket/sm/excess.do?op=seachpeople",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.100.20:8099/ticket/sm/newsale.do?op=salepanel&planid=4246&cabin=5&startport=3&endport=4&voyageno=13003B&ridedate=2013-01-04&ridetime=14:00&rmb=1200&nt=6000&shipid=1&routeid=221",
"Snapshot=t42.inf",
"Mode=HTML",
ITEMDATA,
"Name=name", "Value=林涛", ENDITEM,
LAST);
lr_think_time(8);
web_submit_data("newsale.do_2",
"Action=http://192.168.100.20:8099/ticket/sm/newsale.do?op=checkseatsnum",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.100.20:8099/ticket/sm/newsale.do?op=salepanel&planid=4246&cabin=5&startport=3&endport=4&voyageno=13003B&ridedate=2013-01-04&ridetime=14:00&rmb=1200&nt=6000&shipid=1&routeid=221",
"Snapshot=t43.inf",
"Mode=HTML",
ITEMDATA,
"Name=planid", "Value=4246", ENDITEM,
"Name=cabinclass", "Value=5", ENDITEM,
"Name=couts", "Value=1", ENDITEM,
"Name=selects", "Value=0", ENDITEM,
LAST);
web_submit_data("newsale.do_3",
"Action=http://192.168.100.20:8099/ticket/sm/newsale.do?op=getPrice",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.100.20:8099/ticket/sm/newsale.do?op=salepanel&planid=4246&cabin=5&startport=3&endport=4&voyageno=13003B&ridedate=2013-01-04&ridetime=14:00&rmb=1200&nt=6000&shipid=1&routeid=221",
"Snapshot=t44.inf",
"Mode=HTML",
ITEMDATA,
"Name=planid", "Value=4246", ENDITEM,
"Name=cabin", "Value=5", ENDITEM,
"Name=tickettype", "Value=全票", ENDITEM,
LAST);
lr_think_time(5);
web_submit_data("newsale.do_4",
"Action=http://192.168.100.20:8099/ticket/sm/newsale.do?op=save",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.100.20:8099/ticket/sm/newsale.do?op=salepanel&planid=4246&cabin=5&startport=3&endport=4&voyageno=13003B&ridedate=2013-01-04&ridetime=14:00&rmb=1200&nt=6000&shipid=1&routeid=221",
"Snapshot=t45.inf",
"Mode=HTML",
ITEMDATA,
"Name=passger", "Value=[{\"passanger\":\"林涛\",\"sex\":\"男\",\"licenseno\":\"35012519790506221X\",\"passportno\":\"通行证\",\"twno\":\"T06198764\",\"birthday\":\"1979-05-06\",\"telephone\":\"13685003719\",\"backdate\":\"\",\"telephonetw\":\"\",\"area\":null,\"personarea\":\"福建省\",\"pricelvl\":\"全票\",\"amount_rmb\":\"1200\",\"amount_nt\":\"6000\",\"remark\":\"\",\"vtype\":\"单程票\",\"backplanseatno\":\"\",\"backplanid\":\"\",\"seatno\":\"\"}]", ENDITEM,
"Name=baby", "Value=[]", ENDITEM,
"Name=pay", "Value=rmb", ENDITEM,
"Name=planid", "Value=4246", ENDITEM,
"Name=cabinclass", "Value=5", ENDITEM,
"Name=shipid", "Value=1", ENDITEM,
"Name=routeid", "Value=221", ENDITEM,
"Name=salepoint", "Value=0103", ENDITEM,
"Name=passgertype", "Value=1", ENDITEM,
LAST); |
|