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

有时候在录制回放的时候,第一次回放会很成功,
%Q!k![Yjo{0但是如果你把他的迭代次数设置超过2的时候,51Testing软件测试网8NI,gEZ
就会出现10058这样的错误;
"H K4Ws#E[a0K%n051Testing软件测试网 V|7wu5o&T
lrs_create_socket
$y-R@Y|n#D.|0       ("socket4", "TCP", "RemoteHost=60.191.70.75:9000",    LrsLastArg);51Testing软件测试网dpKyb6j$f9\

D-l[?9Co V0lrs_send("socket4", "buf0", LrsLastArg);-----
迭代2次回放出现问题51Testing软件测试网6AM+o_*c H
51Testing软件测试网 nJn~ d%g%t%{
lrs_receive("socket4", "buf1", LrsLastArg);

l1v@L"wm |Qio051Testing软件测试网 ^c2M$U Y
10058的错误描述是这样的:
Can't send after socket shutdown51Testing软件测试网k A3|-^[

E uku`/HKG7{0就是说该端口已经被挂起了,无法向他发送请求了!51Testing软件测试网G MYnR4\5v

3E!P ~;aE1wFGX%ER0在这里我们只要修改一下脚本就可以了,出现这个问题其脚本中应该有这样的一句:
{,u+Q?#FZ8s#FZ4}0
{ls,v&t0lrs_disable_socket("socket4", DISABLE_SEND);51Testing软件测试网RZGO k.}]

w+e4zm"~0语句解释:Disables an operation for a socket51Testing软件测试网!E%Xm"e(|o0\

intlrs_disable_socket( char *s_desc, intoperation);51Testing软件测试网H2yT5M1vh2e o7j

s_desc
A descrīptor identifying a socket.
operation
The operation to disable: SEND, RECEIVE, SEND-RECEIVE.
51Testing软件测试网0Y*E$r k7z/UV
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.
1I(|P*aL+d2m }051Testing软件测试网1s,j4t hQ2|)S2c H$Y
我们把她给注销掉就可以了!!!51Testing软件测试网*C c._ NB,E:S7}l

Y1V6ImcVt0我们也可以用别的语句:  lrs_close_socket("socket4");
uo'R ^ lO4T0
51Testing软件测试网6x9Kv P:x9s9R
51Testing软件测试网1Nr"B?7MozI6PH

TAG: 10058

 

评分:0

我来说两句

Open Toolbar