不要追求绝对的公平,红尘之中没有公平而言,人活一世,难得糊涂。                                           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

有时候在录制回放的时候,第一次回放会很成功,
;~WH"u5ZT-?ZJ9C6i0但是如果你把他的迭代次数设置超过2的时候,
mle/w/_ _4K0就会出现10058这样的错误;51Testing软件测试网[oI|d2I$X
51Testing软件测试网m,l? Oc-B&o'f
lrs_create_socket
W U3` f_ Tz0       ("socket4", "TCP", "RemoteHost=60.191.70.75:9000",    LrsLastArg);51Testing软件测试网#b4Gb k4kcqc]){
51Testing软件测试网n3a,K\^N"M%T
lrs_send("socket4", "buf0", LrsLastArg);-----
迭代2次回放出现问题51Testing软件测试网 q.?6C1jL r P
51Testing软件测试网EK*T(@gq
lrs_receive("socket4", "buf1", LrsLastArg);
51Testing软件测试网*] q I5oI;F]

Pi$hPF010058的错误描述是这样的:
Can't send after socket shutdown51Testing软件测试网a/bf K$cb9rf^ t
51Testing软件测试网A$`t](_4m
就是说该端口已经被挂起了,无法向他发送请求了!51Testing软件测试网9Ak*b,y1p
51Testing软件测试网+v\ e&S/KC"I ? b!Nq
在这里我们只要修改一下脚本就可以了,出现这个问题其脚本中应该有这样的一句:51Testing软件测试网-M b6_ H s|0N
51Testing软件测试网0N%q z(y)\9vQ5va
lrs_disable_socket("socket4", DISABLE_SEND);
1Dk K(x L wF#A$D0
he%r|,D M {*R(ww0语句解释:Disables an operation for a socket51Testing软件测试网,p/YSUU-S `

intlrs_disable_socket( char *s_desc, intoperation);

#i;^-W L?0
s_desc
A descrīptor identifying a socket.
operation
The operation to disable: SEND, RECEIVE, SEND-RECEIVE.

1\ ]"QfOCCM0Thelrs_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.
'e9]mC0[3F*g M*o0
,[a!C;bYDvrN0我们把她给注销掉就可以了!!!
:@9hp6[7a z051Testing软件测试网h6VtT%_RJ7w9?
我们也可以用别的语句:  lrs_close_socket("socket4");51Testing软件测试网+Q0x~a!X*Nw!tK

pfnt"c2EO051Testing软件测试网u3z@_Mfi

TAG: 10058

 

评分:0

我来说两句

Open Toolbar