LoadRunner??????????
???????????? ???????[ 2014/4/16 13:06:43 ] ????????LoadRunner ??? ????
??????????????pezybase?????????????????????????jmeter??httpЭ?飩????????????????????????????????????pezybase????????????????ù???loadrunner?????????????????к?????????
???????httpЭ??
????loadrunner???httpЭ?????????????????????????????????????????????????????????????????????????????????loadrunner????????????????????????????????????????????????????????????????ɡ???httpЭ?????????????????????????????????UC???????ù?????
????????????????????LR???????£?????????ЩC???????????????????????????л?????????Щ?ж????????????????????????С??????????ж??
????web_reg_save_param????????????????http??????棬????????????????
????web_url??http???????????????url??????????????????????????????????????
????web_get_int_property????????????????????????
????web_set_max_html_param_len??????web_set_max_html_param_len?????в????????????????????????????С??
Action() {
int flen;//??????????????????????????С
long fileContent;//????????????????????????
char fileName[]="";//???????·?????????
char * strNumber;
strNumber=lr_eval_string("test{NewParam}");//??????????????????????? ??NewParam???ò????????????????????????????в?????????
strcat(fileName??"C:/test/");//??·?????浽file??????
strcat(fileName??strNumber); //????????
strcat(fileName??".pdf");//??????????????????????????????????·?????????
web_set_max_html_param_len("20000");//???ò???????????????????????????С
//??ù???????????????????????????????????????磬??÷??????????????????
web_reg_save_param("fcontent"?? //?????????????洢??fcontent?????????
"LB="??
"RB="??
"SEARCH=BODY"??
LAST);
lr_start_transaction("???????"); #????????????
#web_url?????????????д???????????????????????????????URL???м???????????URL??Resource???????????????
web_url("file.php"?? #??????????????????
"URL=http://forum.ubuntu.org.cn/download/file.php?id=129973&sid=78fc8d76767ef49b606595824ceb963d"?? #??????????????????????????????????????????????
"Resource=1"?? #1??????????????0???????????
"RecContentType=application/octetstream"??
"Referer="??
"Snapshot=t1.inf"??
LAST);
flen = web_get_int_property(HTTP_INFO_DOWNLOAD_SIZE);//???????е????????
if(flen > 0)
{ //??д????????
fileContent = fopen(fileName?? "wb")??
if(fileContent == NULL) #?????????????????????????????????fileName?????????????????·????
{
lr_output_message("????????!");
return -1;
}
fwrite(lr_eval_string("{fcontent}")?? flen?? 1?? fileContent);//д?????????
fclose(fileContent);//??????
}
lr_end_transaction("???????"??LR_AUTO);#?????????
return 0;
}
??????
???·???
??????????????????
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