|
请高手帮下忙,我用LoadRunner9.5录制C/S 问的开发人员协议时sockets 录制时候脚本能保存成功但是回放就LoadRunner就死起了,这个是怎么回事!
录制脚本如下:
/*********************************************************************
* Created by Mercury Interactive Windows Sockets Recorder
*
* Created on: Sat Apr 10 13:42:43
*********************************************************************/
#include "lrs.h"
Action()
{
lr_think_time(9);
lrs_create_socket("socket0", "TCP", "RemoteHost=RCT-B6C6FE87C84:1433", 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);
return 0;
}
[ 本帖最后由 zzzyl1102 于 2010-4-10 19:14 编辑 ] |
|