???????????????????????????????????????????????????????????????????????????????????????????忴??????????????
???????Loadrunner????????????к?Jmeter???????????HTTP???????????Fiddler??????????????????????????д???????????????????ж??????????????????Action?в???->???????????????????????????????????????????????

???????????????????????У???????????????????????????????????????????????????????????????Loadrunner??????????????????????????????????????????????????????????????
Action()
{
lr_start_transaction("??????");
web_url("web_url"??
"URL={URL}/user/login.html"??
"TargetFrame="??
"Resource=0"??
"Referer="??
LAST);
lr_end_transaction("??????"?? LR_AUTO);
lr_start_transaction("????????");
web_submit_data("web_submit_data"??
"Action={URL}/user/login.do"??
"Method=POST"??
"TargetFrame="??
"Referer="??
ITEMDATA??
"Name=acct"?? "Value={username}"?? ENDITEM??
"Name=beforeURL"?? "Value="?? ENDITEM??
"Name=password"?? "Value={password}"?? ENDITEM??
"Name=verifyCode"?? "Value=1234"?? ENDITEM??
LAST);
lr_end_transaction("????????"?? LR_AUTO);
lr_start_transaction("?????б?");
web_url("web_url"??
"URL={URL}/front/investmentList.html"??
"TargetFrame="??
"Resource=0"??
"Referer="??
LAST);
lr_end_transaction("?????б?"?? LR_AUTO);
//???“?????”?????“loanId”????????“????”?????е????
web_reg_save_param("loanId"??
"LB=type="hidden" id="loanId" value=""??
"RB="/>"??
LAST);
lr_start_transaction("?????");
web_url("web_url"??
"URL={URL}/loanObject/2220003.html"??
"TargetFrame="??
"Resource=0"??
"Referer="??
LAST);
lr_end_transaction("?????"?? LR_AUTO);
//????????“????”????????????“???????”????????е????
web_reg_save_param("functionNum"??
"LB=functionNum\":\""??
"RB=\"??\"orderId"??
LAST);
web_reg_save_param("orderId"??
"LB=orderId\":\""??
"RB=\""??
LAST);
web_reg_save_param("ordDate"??
"LB=ordDate\":\""??
"RB=\""??
LAST);
web_reg_save_param("investorId"??
"LB=investorId\":\""??
"RB=\""??
LAST);
web_reg_save_param("borrowerId"??
"LB=investorId\":\""??
"RB=\""??
LAST);
web_reg_save_param("fullAmount"??
"LB=fullAmount\":"??
"RB=??\"??
LAST);
web_reg_save_param("amount"??
"LB=amount\":"??
"RB=??\"??
LAST);
web_reg_save_param("signStr"??
"LB=signStr\":\""??
"RB=\""??
LAST);
web_reg_save_param("freezeOrdId"??
"LB=freezeOrdId\":\""??
"RB=\""??
LAST);
lr_start_transaction("????");
web_submit_data("web_submit_data"??
"Action={URL}/loanObject/invest.do"??
"Method=POST"??
"RecContentType=application/json"??
"TargetFrame="??
"Referer="??
ITEMDATA??
"Name=loanId"?? "Value={loanId}"?? ENDITEM??
"Name=amount"?? "Value=100"?? ENDITEM??
LAST);
lr_end_transaction("????"?? LR_AUTO);
lr_start_transaction("???????");
web_submit_data("web_submit_data"??
"Action={URL}/intf/bid.do"??
"Method=POST"??
"EncodeAtSign=YES"??
"TargetFrame="??
"Referer="??
"Mode=HTML"??
ITEMDATA??
"Name=jsonDataString"?? "Value={"functionNum":"{functionNum}"??"orderId":"{orderId}"??"ordDate":"{ordDate}"??"investorId":"{investorId}"??"borrowerId":"{borrowerId}"??"loanId":"{loanId}"??"amount":{amount}??"fullAmount":{fullAmount}??"fee":0.00??"feeRate":1.00??"terminal":"pc"??"maxTenderRate":0.5??"isFreeze":"Y"??"freezeOrdId":"{freezeOrdId}"??"signStr":"{signStr}"}"?? ENDITEM??
LAST);
lr_end_transaction("???????"?? LR_AUTO);
return 0;
}