LoadRunner????TCPЭ???????????
???????????? ???????[ 2015/2/10 13:45:11 ] ?????????????????? LoadRunner TCPЭ??
????2??loadrunner??winsocket???????????裺
/*********************************************************************
* Created by Mercury Interactive Windows Sockets Recorder
*
* Created on: Mon Dec 29 09:01:03
*********************************************************************/
#include "lrs.h"
Action()
{
int i;
char *buffer;//??????????
int numberOfBytes;//????int????????泤??
//????????initializes a socket
lrs_create_socket("socket0"?? "TCP"?? "LocalHost=0"?? "RemoteHost=127.0.0.1:1234"??LrsLastArg);
lr_start_transaction("send");
//?????????????????????socket1??buf1?е????????????MM-7QL3Z0JYUJN6????????2425
lrs_send("socket0"?? "buf1"?? LrsLastArg);
//??????????????С
lrs_send("socket0"?? buffer?? LrsLastArg);
//??buf2?н???????????
lrs_receive("socket0"?? "buf2"?? LrsLastArg);
//????????????
lrs_get_buffer_by_name("buf2"?? &buffer?? &numberOfBytes);
//??????????????С
lr_output_message("The buffer's size is: %d/n"?? numberOfBytes);
lr_output_message(buffer);
lr_end_transaction("send"?? LR_AUTO);
//????????????socket????
lrs_close_socket("socket0");
return 0;
}
????????????????????????????????????????loadrunner??lrs_send?е?????buf?????data.ws?ж??壬??????????ж???????????
????data.ws
????;WSRData 2 1
????send buf0
????recv buf1 101
????recv buf2 210
????recv buf3 300
????-1
????3)??winsocket?????Щ?????????
??????lrs_set_send_buffer("socket0"??send_loginStr??strlen(send_loginStr));
????lrs_set_send_buffer???????ж?????????????data.ws??????????send bufx?У????????data.ws?ж?????buf0??????????buf0?У???????????Σ????????buf0?С?
??????lrs_receive("socket0"?? "buf1"?? LrsLastArg);
????lrs_get_last_received_buffer("socket0"??&login_recv??&login_recvlen);
????buf1??????????????????????????????loadrunner????????????????????????????????????????????????????????? Mismatch in buffer's length (expected 101 bytes?? 222 bytes actually received?? difference in 121 bytes)
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???????????????????????????ν?????????????PR???????????????????ν??д???????????????????????????????????Щ????ο???????????????????PR????????????PR???????????????????????????????У?????????????????PR???y????????????????????????/???????????????????PR???y?????????????????????????????????????????????????????е????????????????(PerformanceRunner)?????IP?????????????(PerformanceRunner)?????????????????????(PerformanceRunner)????????????????????????????(PerformanceRunner)??????????????????????(PerformanceRunner)???????????????????(PerformanceRunner)????????????????????????(PerformanceRunner)????????????????????
???·???
??????????????????
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????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????