??LoadRunner??web???????????????
???????????? ???????[ 2013/4/12 10:51:03 ] ????????
?????????????Loadruner??????dat????????棬?????notepad ???????????÷?????????????????????????
??????????????????file parameter?????????????????????order???е?????У???????????table???????????漰??
????table???е??????????????????????0001 OrderCode ????????????????? 100 ??price?? user1??operator??
????????以????????????Vuser -> Parameter List ?????????檔???select next row ?????? same line as ?????
???????????????????????????????????????
????3??Loadrunner???к?????????
?????????ο?Order ?? OrderDetail ????????赱Order???????ó?????????? ???OrderId?????OrderId?GUID??
??????????OrderId????????????????????????????????????????????????LoadRunner?????????????????????????????LoadRunner??
????????????ο?Loadrunner web_reg_save_param ????????????????
????????int web_reg_save_param(const char *ParamName?? ?? LAST)??
?????????????
????ParamName???????????????????????
????ok?????????????????????????????
????//??????????????????ID?????????????ο??????е?web_reg_save_param ?????????????????????
web_reg_save_param("Id"??"LB=Id":""?? "RB="}"??"Notfound=warning"??"Search=Body"?? LAST);
//??loadrunner ????????? ?????????ID
???????????????????????????????Id??????? "Value={Id}"??
????С??
???????????????????????????????????loadrunner?????е??Щ???????????????Loadrunner ??????????????????????????????loadrunner???????á??????????????????????????????
??????Щ?????????????????
????list of Attributes?????????????????Notfound?? LB?? RB?? RelFrameID?? Search?? ORD?? SaveOffset?? Convert?? SaveLen????????????Сд
????Notfound?? ????????????????????????????????????
????Notfound=error??????????????????????????????????????????????????????
????Notfound=warning??????????????????????????????????????棬????????????????????ж??
????LB( Left Boundary )??????????????????????????????У??????????Сд??
????RB( Right Boundary )??????????????????????????????У??????????Сд??
????RelFrameID???????URL?????????????????Frame???????????????All?????????????????п????
????Search???????????????Χ????????Headers??Body??Noresource??All(??)????????????п????
????ORD?????????γ???????????????????????????????????????п?????????1?????All??????????????????????????
????SaveOffset??????????????????????????洢???????С?????????????????????0??
????SaveLen?????????????????????????????洢???????С??????-1???????????β????????????????????
????Convert???????????????????
????HTML_TO_URL???? HTML-encoded ??????? URL-encoded ??????
????HTML_TO_TEXT???? HTML-encoded ??????????????????
//http??????????
web_custom_request("SaveOrder"??
"URL=http://192.168.0.1:8080/Order/SaveTmsOrder"??
"Method=POST"??
"Resource=0"??
"RecContentType=application/json"??
"Referer=http://192.168.0.1:8080/Order/TmsOrder"??
"Snapshot=t10.inf"??
"Mode=HTML"??
"Body=TnNo=&TnTypeCode=OUTBOUND&FeeTypeCode=AUTO+CALCULATION&ShipperName=%E5%8C%97%E4%BA%AC%E4%BB%93%E5%BA%93&ShipperCode=BJ&ShipperId=0569ccc3-6625-4ffb-b659-2e4fb3b10bc5&ShipperNameEn=BJ&ShipperTypeCode=&ShipperTypeName=&ShipperOfficeCode=BJ&ShipperOfficeName=%E5%8C%97%E4%BA%AC%E4%BB%93%E5%BA%93&ShipperAttribute=0&OriginCityCode=Beijing&OriginCityName=beijing"
"ConsigneeName={ConsigneeName}&"
"ConsigneeCode={ConsigneeCode}&"
........
lr_output_message("%s"??lr_eval_string("{Id}"));
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11