LoadRunner????TCPЭ???????????
???????????? ???????[ 2015/2/10 13:45:11 ] ?????????????????? LoadRunner TCPЭ??
?????????????????????????????????о????????loadrunner?????????TCPЭ?齻?????????????????????loadrunner????????????????????????Щ??·???????????????????????????ο??ɡ?
????TCPЭ??????????????????????????????loadrunner??winsocketЭ????в??????????????????????潫?????????????Э????????????
????1.????DLL?????????в???
?????????????????????????DLL?????????У???????????????У???????????????????loadrunner????DLL??????????????????????????????????????????loadrunner??winsocket????????????????????????????????DLL?????????д?????
????vuser_init.c
????vuser_init()
????{
????lrs_startup(257);
????lr_load_dll("InnoVSSBASClient.dll");
????lr_load_dll("ole32.dll");
????return 0;
????}
????action.c
#include "lrs.h"
#include "def.h"
Action()
{
char* test;
long handle;
NET_CLIENT_INFO info;
int isLogin;
NET_CROSS_INFO crossInfo;
NET_VEHCILE_PASS_INFO lrPassInfo = {0};
NET_VEHCILE_ALARM_INFO lrAlarmInfo = {0};
handle = InnoVSSBASClient_Init(NULL??NULL);
strcpy(info.clientId??guid_gen());
strcpy(info.serverIP??"127.0.0.1");
info.serverPort = 9300;
strcpy(info.username??"admin");
strcpy(info.password??"admin");
lr_start_transaction("tran_login_start");
isLogin = InnoVSSBASClient_CreateConn(handle??&info);
if(isLogin==1){
lr_end_transaction("tran_login_start"?? LR_AUTO);
lr_output_message(info.clientId);
lr_output_message("??????");
//InnoVSSBASClient_SetCallbackFunc(handle??InnoVSSBASClientCallback??1L);
lr_start_transaction("tran_addcross_start");
strcpy(crossInfo.crossId??lr_eval_string("{crossId}"));
InnoVSSBASClient_AddCrossInfo(handle??&crossInfo);
lr_end_transaction("tran_addcross_start"?? LR_AUTO);
}else{
lr_end_transaction("tran_login_start"?? LR_FAIL);
lr_output_message(info.clientId);
lr_output_message("??????");
}
while(1)
{
sleep(100);
}
return 0;
????}
????vuser_init?м???????????????DLL?????InnoVSSBASClient.dll??????????????????DLL???????ole32.dll??????е????????????????strcpy??)????????DLL?????
????action??????????????????????????????????????????????????·????????????????
????????DLL??????????????????????????????????????????и??????????????????????????????????????????????????????????????????????????????????????????????loadrunner??????????????????????????????ò???????????????????????????????loadrunner????????£??????loadrunner?е????????????
????????????????????????????????????????????????loadrunner?????winsocket???????в????
??????
???·???
??????????????????
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