51Testing软件测试论坛

标题: LR8.1录制问题 [打印本页]

作者: yaqi    时间: 2007-7-30 14:00
标题: LR8.1录制问题
IE6.0
选用WEB(HTTP/HTML)
用LR8.1进行录制时,record……(0 events)
用windows sockets,录制脚本如下:
#include "lrs.h"


Action()
{
    lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=192.168.9.111:80", 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_receive("socket0", "buf9", LrsLastArg);
        lrs_send("socket0", "buf8", LrsLastArg);

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

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

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

    lrs_create_socket("socket1", "TCP", "LocalHost=0", "RemoteHost=192.168.9.111:80", LrsLastArg);

    lrs_send("socket1", "buf13", LrsLastArg);

    lrs_receive("socket1", "buf14", LrsLastArg);

    lrs_send("socket1", "buf15", LrsLastArg);

    lrs_receive("socket1", "buf16", LrsLastArg);

    lrs_send("socket1", "buf17", LrsLastArg);

    lrs_receive("socket1", "buf18", LrsLastArg);

    lrs_send("socket1", "buf19", LrsLastArg);
      ……………………………………………

选用其他协议也不行,急盼高手指教!
在另一台机器上用LR 8.0选用ODBC和web(http/html)才可以录制
作者: haiquan180    时间: 2007-7-30 14:15
你想要做什么?把问题说明白点
作者: yaqi    时间: 2007-7-30 19:46
我主要是根据教程熟悉一下LR的测试流程。用它随便测试登陆一个网站(如51testing或baidu等)的情况。但大多数协议都不能录制,有的录制的结果(脚本如上一楼)根本就不对。
盼赐教!




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