51Testing软件测试论坛
标题:
socket 协议测试,报错10053、10054,请教各位高人
[打印本页]
作者:
dier1011
时间:
2012-6-15 16:17
标题:
socket 协议测试,报错10053、10054,请教各位高人
socket协议压力测试,同一条消费报文,50Vuser,测试LR报错10053、10054,这是什么情况,请教高手给意见。
脚本如下:
Action()
{
char *ActualBuffer;
int NumberOfBytes;
lr_start_transaction("tcpsocket");
lrs_create_socket("socket1", "TCP", "RemoteHost=10.1.28.7:17102", LrsLastArg);
lrs_send ("socket1", "buf0", LrsLastArg );
lrs_disable_socket("socket1", DISABLE_SEND);
lrs_set_recv_timeout(10,0);
lrs_receive("socket1","buf1", LrsLastArg);
/* Get the last received buffer and its size. */
lrs_get_last_received_buffer("socket1", &ActualBuffer, &NumberOfBytes);
lrs_disable_socket("socket1", DISABLE_RECV);
lrs_free_buffer(ActualBuffer);
lrs_close_socket("socket1");
lr_end_transaction("tcpsocket", LR_AUTO);
return 0;
}
;WSRData 2 1
send buf0 276
"02686003D23800018850109000000003810000E016AE24630A08AC03893C6EDE79B6996F8706151427141514271414271406150699999912241000000001000000071720120615142653 2410000000010800000091692BD1E5660E7D6A00213006320200CB4B1C2ED4B2DAEA42C39DDCF44B63FFE0C125BB003123006wangwu00206006320200"
recv buf1 86
//"00856101A21000000A0100000000000000000000006101061511503500000000000000000000000011000"
-1
是不是因为用了同一条报文呢?可是有时候Vuser30个时候就能正常测试?
作者:
Shawn_918
时间:
2012-7-11 16:10
有没有做参数化呀,我之前是因为参数化的问题报错的
作者:
dier1011
时间:
2012-11-19 16:55
回复
2#
Shawn_918
我后来有做参数化,将发送的报文参数化了,可是还是出现10053、10054,你帮忙在看看呗,搞不定啦。
;WSRData 2 1
send buf0 329
"{charge}"
recv buf1 86
""
-1
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2