不要追求绝对的公平,红尘之中没有公平而言,人活一世,难得糊涂。                                           it is no use doing what you like, you have got to like what you do.

10058错误

上一篇 / 下一篇  2007-05-09 10:31:35 / 个人分类:Mercury LoadRunner

有时候在录制回放的时候,第一次回放会很成功,51Testing软件测试网tWiF){#aQ
但是如果你把他的迭代次数设置超过2的时候,
9w5HZ,H&A0就会出现10058这样的错误;
ek[7V!g\{'A0
.Vm;Z|;`'[%Pf&?|0lrs_create_socket
0yE{.~.v"y5\y0       ("socket4", "TCP", "RemoteHost=60.191.70.75:9000",    LrsLastArg);51Testing软件测试网xWU Kv
51Testing软件测试网 s:@W0o u!t*Qqqmq
lrs_send("socket4", "buf0", LrsLastArg);-----
迭代2次回放出现问题51Testing软件测试网C_;U8S2F
51Testing软件测试网lh}q'b P
lrs_receive("socket4", "buf1", LrsLastArg);
51Testing软件测试网?B5I#F V}Q2[1}

x*S@i1\*KX010058的错误描述是这样的:
Can't send after socket shutdown
*CE[ [%v3u0
1w9}/v jHjO0就是说该端口已经被挂起了,无法向他发送请求了!51Testing软件测试网 Y_Z!cG
51Testing软件测试网dk0U,R{CWmo
在这里我们只要修改一下脚本就可以了,出现这个问题其脚本中应该有这样的一句:51Testing软件测试网Hvwf-ne%l

K|9} afy q:_1h0lrs_disable_socket("socket4", DISABLE_SEND);
.B7H rlD*[6T Q3H0
$Xr0[#@/}0mQ%z)]:K0语句解释:Disables an operation for a socket51Testing软件测试网D&`L ~KHW

intlrs_disable_socket( char *s_desc, intoperation);51Testing软件测试网h9}b3sO5[|/l

s_desc
A descrīptor identifying a socket.
operation
The operation to disable: SEND, RECEIVE, SEND-RECEIVE.
51Testing软件测试网|9Q1P6Zlj(h2j)l/N
Thelrs_disable_socketfunction disables an operation for a socket. The operation to disable is specified with the operation argument. To disable receiving data, pass DISABLE_RECV as the operation . To disable sending data, pass DISABLE_SEND. To disable all activity, pass DISABLE_SEND_RECV.
%n_~4WrP.O0
.zG_!Slm%k6L6p0我们把她给注销掉就可以了!!!
O(X3G N:|)DA1}l#[0
]+m.A'{[0我们也可以用别的语句:  lrs_close_socket("socket4");
},K(`%Xoxx%M ? I0
51Testing软件测试网aw;` dH7TFY.MRa
51Testing软件测试网 T3v@A{O*cq]

TAG: 10058

 

评分:0

我来说两句

Open Toolbar