51Testing软件测试论坛

标题: LoadRunner录制sockets协议回放问题 [打印本页]

作者: zzzyl1102    时间: 2010-4-10 13:46
标题: LoadRunner录制sockets协议回放问题
请高手帮下忙,我用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 编辑 ]
作者: 云层    时间: 2010-4-10 18:01
中文问题,我有写过,把操作系统改成英文的录制一次应该就可以了
作者: zzzyl1102    时间: 2010-4-10 19:12
请问一下是在哪里改了?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2