51Testing软件测试论坛
标题:
代码报错
[打印本页]
作者:
123
时间:
2011-2-12 09:55
标题:
代码报错
lr录制windows sock c#
执行:
lrs_send("socket12", "buf33", LrsLastArg);
lrs_create_socket("socket14", "TCP", "RemoteHost=172.16.2.15:16954", LrsLastArg);
lrs_receive("socket12", "buf34", LrsLastArg);
lrs_send("socket12", "buf35", LrsLastArg);
lrs_close_socket("socket14");
对应的datawa:
send buf33 212
"POST /tradeweb/httpXmlServlet HTTP/1.1\r\n"
"Content-Type: application/x-www-form-urlencoded\r\n"
"Host: 172.16.2.15:16955\r\n"
"Cookie: JSESSIONID=4E32EB3CCDF58C5704F63112764BA0E3\r\n"
"Content-Length: 307\r\n"
"Expect: 100-continue\r\n"
"\r\n"
recv buf34 25
"HTTP/1.1 100 Continue\r\n"
"\r\n"
send buf35 307
"<?xml version=\"1.0\" encoding=\"gb2312\"?><GNNT><REQ name=\"my_weekorder_"
"query\"><USER_ID>001888015</USER_ID><BUY_SELL>0</BUY_SELL><ORDER_NO>0</ORD"
"ER_NO><COMMODITY_ID></COMMODITY_ID><STARTNUM>0</STARTNUM><RECCNT>0</RECCNT"
"><UT>0</UT><SESSION_ID>1450431412801906923</SESSION_ID><MARKET_ID></MARKET"
"_ID></REQ></GNNT>"
报错:
vuser_init.c(98): lrs_send(socket13, buf31)
vuser_init.c(100): lrs_receive(socket13, buf32)
vuser_init.c(100): Mismatch in buffer's length (expected 398 bytes, 318 bytes actually received, difference in 80 bytes)
vuser_init.c(102): lrs_send(socket12, buf33)
vuser_init.c(104): lrs_create_socket(socket14, TCP, ...)
vuser_init.c(104): Error : callConnect - Connection refused. Error code : 10061.
vuser_init.c(104): Error : Timeout expired while trying to connect. Error code : 9017.
Abort was called from an action.
什么原因?
作者:
lyron
时间:
2011-2-12 10:02
连接超时 被拒绝
作者:
lyron
时间:
2011-2-12 10:03
试着设置更长的timeout时间 LR和服务端都要设置 服务端线程数加大 然后再试
作者:
123
时间:
2011-2-12 10:03
这个是登陆的代码 是Cookie的原因么?
作者:
Sayid
时间:
2011-2-12 10:27
你头文件返回的包长度与你期望的包长度不一致,建议检查一下recv的内容,还有就是你的recv长度没一个是318个字节的!
作者:
zhengaiqi
时间:
2013-5-24 11:32
脚本和你不一样,,但也报这样的错误
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2