LoadRunner ?????????
???????????? ???????[ 2013/9/22 15:53:52 ] ????????
????3.2.5.??????ú???
????3.2.5.1. lr_get_vuser_ip
????????????VUser??IP?????
??????ó?????????IP????????????IP?????????????????ú?????
??????????????????й????У???????VUser??IP??VUser?????????????????????
char *ip;
ip = lr_get_vuser_ip();
if (ip)
{
lr_vuser_status_message("The IP addressis %s"?? ip);
}
????????????IP???????????IP????????ú?IP???????????ɡ?
????3.2.5.2. lr_load_dll
???????????????DLL??
??????ó???????????????DLL??????ú???????DLL??
??????????????getDateTime(char * time??int seconds??char * resultTime)??????timeutil.dll?У?getDateTime???????????????????????time????2008-09-24 16:56:24???????????seconds???????????????????resultTime?????????£?
int hours =atoi(lr_eval_string("hours"));
char acceptEndTime[20];
lr_load_dll("../timeutil.dll");
getDateTime(lr_eval_string("{acceptBeginTime}")??3600*hours??acceptEndTime);
?????????ú????LoadRunner???????????????????
????3.3.??????????????y??
????3.3.1.?????????
????LoadRunner???C???????????????????????C??????????LoadRunner?????С?????????????????????Ч????б???????????????黯??
???????3.0??????????????????????????????????????????????????????????????queryTTPool???????????????£??????У??????е?????????????滻?queryTTPool???????????????????????
//?????????
int queryTTPool(char* nodeType){
lr_save_string(nodeType??"nodeType");
lr_save_datetime("%Y-%m-%d 00:00"??DATE_NOW-2*ONE_DAY?? "acceptBeginTime");
lr_save_datetime("%Y-%m-%d 23:59"?? DATE_NOW??"acceptEndTime");
lr_start_transaction("WF_????????????");
web_submit_data("IWFController"??
"Action=http://{wf_sysurl}/IWFController"??
"Method=POST"??
"RecContentType=text/html"??
"Referer=http://{wf_sysurl}/iwflow/common/UnitQueryDealForm.jsp?pageNo=1"?? "Snapshot=t32.inf"??
"Mode=HTML"??
ITEMDATA??
"Name=ACTIONID"??"Value=UniteQueryDealAction"?? ENDITEM??
"Name=pageNo"?? "Value=1"?? ENDITEM??
"Name=sortType"?? "Value="?? ENDITEM??
"Name=sortField"?? "Value="?? ENDITEM??
"Name=reSortFlag"?? "Value="?? ENDITEM??
"Name=acceptPhone"?? "Value="?? ENDITEM??
"Name=serialNo"?? "Value="?? ENDITEM??
"Name=serialFlag"?? "Value=0"?? ENDITEM??
"Name=serviceName"?? "Value="?? ENDITEM??
"Name=serviceID"?? "Value="?? ENDITEM??
"Name=acceptBeginTime"??"Value={acceptBeginTime}"?? ENDITEM??
"Name= acceptEndTime "?? "Value={acceptEndTime}"??ENDITEM??
"Name=urgentID"?? "Value="?? ENDITEM??
EXTRARES??
"Url=/iwflow/image/kms-1_23.gif"?? ENDITEM??
"Url=/iwflow/buttons/obtainProcess-2.gif"?? ENDITEM??
LAST);
lr_end_transaction("WF_????????????"??LR_AUTO);
}
????3.3.2.DLL???
???????DLL?к???????????????????????DLL???????????á?????IVR??????????????????DLL?????????LoadRunner????IVR?????????DLL???????VC????MinGW Developer Studio??????????DLL????????????????????????μ????????顣
????4 ???????
????LoadRunner??VUser Generator?????????????????????????????????????????????????????????????lr_debug_message??lr_output_message??lr_eval_string?????Э????λ??
???????????????????????????????????????????????????HttpAnalyzer???????HTTPЭ????????????LoadRunner???????????????????????????????λ??????????
??????
???·???
??????????????????
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