51Testing软件测试论坛

标题: LoadRuner测C/S,Oracle数据库,无法回访脚本 [打印本页]

作者: blueshy    时间: 2008-9-12 09:43
标题: LoadRuner测C/S,Oracle数据库,无法回访脚本
后台数据为Oracle,我在客户端录制脚本,选择协议为Oracle(2-Tier)、Window Sockets
录制完毕脚本如下,但是不能回放,高手帮忙分析下,感谢!



Action()
{

        lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=39a553d42e684b8:8888", 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);

        lrs_send("socket0", "buf14", LrsLastArg);

        lrs_receive("socket0", "buf15", LrsLastArg);

        lrs_send("socket0", "buf16", LrsLastArg);

        lrs_receive("socket0", "buf17", LrsLastArg);

        lrs_send("socket0", "buf18", LrsLastArg);

        lrs_receive("socket0", "buf19", LrsLastArg);

        lrs_send("socket0", "buf20", LrsLastArg);

        lrs_receive("socket0", "buf21", LrsLastArg);

        lrs_send("socket0", "buf22", LrsLastArg);

        lrs_receive("socket0", "buf23", LrsLastArg);

        lrs_send("socket0", "buf24", LrsLastArg);

        lrs_receive("socket0", "buf25", LrsLastArg);

        lrs_send("socket0", "buf26", LrsLastArg);

        lrs_receive("socket0", "buf27", LrsLastArg);

        lrs_send("socket0", "buf28", LrsLastArg);

        lrs_receive("socket0", "buf29", LrsLastArg);

        lrs_send("socket0", "buf30", LrsLastArg);

        lrs_receive("socket0", "buf31", LrsLastArg);

        lrs_send("socket0", "buf32", LrsLastArg);

        lrs_receive("socket0", "buf33", LrsLastArg);

        lrs_send("socket0", "buf34", LrsLastArg);

        lrs_receive("socket0", "buf35", LrsLastArg);

        lrs_send("socket0", "buf36", LrsLastArg);

        lrs_receive("socket0", "buf37", LrsLastArg);

        lrs_close_socket("socket0");

        return 0;
}
作者: aks5201314    时间: 2008-9-12 10:18
脚本不能回放,有什么错误信息.你把脚本中的RemoteHost=39a553d42e684b8,改成RemoteHost=IP地址试试.
作者: iori    时间: 2008-9-12 10:19
不能回放有什么错误提示吗
作者: blueshy    时间: 2008-9-12 11:11
目前我是访问另外一台电脑的服务器,我电脑上安装的客户端。
我应该选择什么协议比较好,我电脑上需要装ORACLE吗?
为什么我选择协议为Oracle(2-Tier)却录制不到任何事件呢?




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