|
本人初学
录制时没有问题,回放时报错:
错误: socket0 - 对方将连接复位。错误代码: 10054
在登录界面初始化中,使用第一条sql语句查询oracle中的数据,出现Mismatch (expected 175 bytes, 0 bytes actually received),连着5个,中断回放。
vuser_init()代码:
{
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=192.168.10.248:1521", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket0", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_send("socket0", "buf4", LrsLastArg);
lrs_receive("socket0", "buf5", LrsLastArg);
lrs_send("socket0", "buf6", LrsLastArg);
lrs_receive("socket0", "buf7", LrsLastArg);
lrs_send("socket0", "buf8", LrsLastArg);
lrs_receive("socket0", "buf9", LrsLastArg);
lrs_send("socket0", "buf10", LrsLastArg);
lrs_receive("socket0", "buf11", LrsLastArg);
lrs_send("socket0", "buf12", LrsLastArg);
lrs_receive("socket0", "buf13", LrsLastArg);
lrs_send("socket0", "buf14", LrsLastArg);
lrs_receive("socket0", "buf15", LrsLastArg);
lrs_send("socket0", "buf16", LrsLastArg);
lrs_receive("socket0", "buf17", LrsLastArg);
lrs_send("socket0", "buf18", LrsLastArg);
lrs_receive("socket0", "buf19", LrsLastArg);
lrs_send("socket0", "buf20", LrsLastArg);
lrs_receive("socket0", "buf21", LrsLastArg);
.....
return 0;
}
data.ws 部分buff:
send buf12 55
"\x00"
"7"
"\x00\x00\x06\x00\x00\x00\x00\x00\x03"
"b"
"\x00"
"\a"
"\x00\x01\x01"
" "
"\x01\x02\x01\x01"
" select ip,dk,yh,mm,bb,wj from sj"
回放日志:
虚拟用户脚本已启动
正在开始操作 vuser_init。
vuser_init.c(12): lrs_create_socket(socket0, TCP, ...)
vuser_init.c(14): lrs_send(socket0, buf0)
vuser_init.c(16): lrs_receive(socket0, buf1)
vuser_init.c(18): lrs_send(socket0, buf2)
vuser_init.c(20): lrs_receive(socket0, buf3)
vuser_init.c(22): lrs_send(socket0, buf4)
vuser_init.c(24): lrs_receive(socket0, buf5)
vuser_init.c(26): lrs_send(socket0, buf6)
vuser_init.c(28): lrs_receive(socket0, buf7)
vuser_init.c(30): lrs_send(socket0, buf8)
vuser_init.c(32): lrs_receive(socket0, buf9)
vuser_init.c(34): lrs_send(socket0, buf10)
vuser_init.c(36): lrs_receive(socket0, buf11)
vuser_init.c(36): Mismatch (expected 33 bytes, 22 bytes actually received)
vuser_init.c(38): lrs_send(socket0, buf12)
vuser_init.c(40): lrs_receive(socket0, buf13)
vuser_init.c(40): Mismatch (expected 175 bytes, 0 bytes actually received)
vuser_init.c(42): lrs_send(socket0, buf14)
vuser_init.c(44): lrs_receive(socket0, buf15)
vuser_init.c(44): Mismatch (expected 14 bytes, 0 bytes actually received)
vuser_init.c(46): lrs_send(socket0, buf16)
vuser_init.c(48): lrs_receive(socket0, buf17)
vuser_init.c(48): Mismatch (expected 44 bytes, 0 bytes actually received)
vuser_init.c(50): lrs_send(socket0, buf18)
vuser_init.c(52): lrs_receive(socket0, buf19)
vuser_init.c(52): Mismatch (expected 104 bytes, 0 bytes actually received)
vuser_init.c(54): lrs_send(socket0, buf20)
vuser_init.c(56): lrs_receive(socket0, buf21)
vuser_init.c(56): 错误: socket0 - 对方将连接复位。错误代码: 10054。
从操作调用了中止。 |
|