For loadrunner get, post interfaces pressure measurement

1. Select the WebServer agreement

2. Click on the Insert-New Step

note:

web_custom_request: Get and POST requests applicable to common

web_submit_data: POST request can only be used

web_submit_form: Get request can only be used

3.Vuser-Run Time Settings

All three log chosen intermediate

Action()

{

int code;

lr_rendezvous("jihe");

lr_start_transaction("start");

web_submit_data("web_submit_data",

"Action=http://192.168.1.***/App/Login/login",

"Method=POST",

"TargetFrame=",

"Referer=",

ITEMDATA,

"name=sign__value","value=m1Iw0VqQVflfUlbq4mgCq5R02DyNQeG0y12kiIZxZJJJAp38A5f6GkIG4VYaNNLBaNqDHRhlbCCjkVJIqyVFfFwCq5dePRTzbENSTX5DoCneMqCw+gPy/LnNCeGsw0tZvpGc/w2Priwnb5msGujPXa7+ikE3qIaf3Qe7+zojX+o=",ENDITEM,

LAST);

code=web_get_int_property(HTTP_INFO_RETURN_CODE);

if(code==200)

{

lr_output_message("成功!");

}

else

{

lr_output_message("失败!");

}

lr_end_transaction("start", LR_AUTO);

return 0;

}

 

Guess you like

Origin www.cnblogs.com/wx921308494/p/11963378.html