51Testing软件测试论坛

标题: 录制的脚本无法回放(急) [打印本页]

作者: huanjian    时间: 2008-1-10 16:27
标题: 录制的脚本无法回放(急)
我选用socket协议录制脚本,运行时,mmdrv进程占用CPU 50%的空间,电脑卡死,哪位朋友指点一下?
附:#include "lrs.h"
Action()
{
    lrs_create_socket("socket0", "TCP", "RemoteHost=hostname:6666",  LrsLastArg);
    lrs_send("socket0", "buf0", LrsLastArg);
    lrs_receive("socket0", "buf1", LrsLastArg);
    lrs_create_socket("socket1", "TCP", "RemoteHost=hostname:6784",  LrsLastArg);
    lrs_send("socket1", "buf2", LrsLastArg);
    lrs_receive("socket1", "buf3", LrsLastArg);
    lrs_send("socket1", "buf4", LrsLastArg);
    lrs_receive("socket1", "buf5", LrsLastArg);
    lrs_send("socket0", "buf6", LrsLastArg);
    lrs_receive("socket0", "buf7", LrsLastArg);
    lrs_send("socket1", "buf8", LrsLastArg);
    lrs_receive("socket1", "buf9", LrsLastArg);
    lrs_send("socket1", "buf10", LrsLastArg);
    lrs_receive("socket1", "buf11", LrsLastArg);
    lrs_send("socket1", "buf12", LrsLastArg);
    lrs_receive("socket1", "buf13", LrsLastArg);
    lrs_send("socket0", "buf14", LrsLastArg);
    lrs_receive("socket0", "buf15", LrsLastArg);
    lrs_send("socket1", "buf16", LrsLastArg);
    lrs_receive("socket1", "buf17", LrsLastArg);
    return 0;
}




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