51Testing软件测试论坛

标题: 用LR测试QQ---在线等 [打印本页]

作者: 小屋_vivian    时间: 2005-9-5 09:33
标题: 用LR测试QQ---在线等
各位大侠.我用LR得winsock协议测试QQ,可是录制下来得脚本却看不懂,不知道在哪里做参数化设置,这是我录制下来得data.ws中得内容:
   ;WSRData 2 1

send  buf0 213
        "GET /new.htm HTTP/1.1\r\n"
        "Accept: */*\r\n"
        "Accept-Language: zh-cn\r\n"
        "Accept-Encoding: gzip, deflate\r\n"
        "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Poco 0.31)\r"
        "\n"
        "Host: qq.wyyfk.com\r\n"
        "Connection: Keep-Alive\r\n"
        "\r\n"

recv  buf1 1362
        "HTTP/1.0 403 Forbidden\r\n"
        "Server: squid/2.5.STABLE4\r\n"
        "Mime-Version: 1.0\r\n"
        "Date: Mon, 05 Sep 2005 01:07:35 GMT\r\n"
        "Content-Type: text/html\r\n"
        "Content-Length: 1072\r\n"
        "Expires: Mon, 05 Sep 2005 01:07:35 GMT\r\n"
        "X-Squid-Error: ERR_ACCESS_DENIED 0\r\n"
        "X-Cache: MISS from xa-184.sina.com.cn\r\n"
        "Connection: close\r\n"
        "\r\n"
        "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://"
        "www.w3.org/TR/html4/loose.dtd\">\n"
        "<HTML><HEAD><META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset"
        "=iso-8859-1\">\n"
        "<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n"
        "<STYLE type=\"text/css\"><!--BODY{background-color:#ffffff;font-family:ver"
        "dana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n"
        "</HEAD><BODY>\n"
        "<H1>ERROR</H1>\n"
        "<H2>The requested URL could not be retrieved</H2>\n"
        "<HR noshade size=\"1px\">\n"
        "<>\n"
        "While trying to retrieve the URL:\n"
        "<A HREF=\"http://qq.wyyfk.com/new.htm\">http://qq.wyyfk.com/new.htm</A>\n"
        "<>\n"
        "The following error was encountered:\n"
        "<UL>\n"
        "<LI>\n"
        "<STRONG>\n"
        "Access Denied.\n"
        "</STRONG>\n"
        "<>\n"
        "Access control configuration prevents your request from\n"
        "being allowed at this time.  Please contact your service provider if\n"
        "you feel this is incorrect.\n"
        "</UL>\n"
        "<>Your cache administrator is <A HREF=\"mailto:webmaster\">webmaster</A>."
        " \n"
        "\n"
        "\n"
        "<BR clear=\"all\">\n"
        "<HR noshade size=\"1px\">\n"
        "<ADDRESS>\n"
        "Generated Mon, 05 Sep 2005 01:07:35 GMT by xa-184.sina.com.cn (squid/2.5.S"
        "TABLE4)\n"
        "</ADDRESS>\n"
        "</BODY></HTML>\n"

   我要参数化QQ的号码,可是在脚本中没有发现刚才录制下来的QQ号码,请问我应该怎么去参数化这个QQ的号码
作者: napolean007    时间: 2005-9-5 10:07
腾讯怎么可能让用户的qq号码明文传播呢...
作者: 小屋_vivian    时间: 2005-9-5 12:43
那怎么办呢?难道不能测试吗?
作者: wss123    时间: 2005-9-5 23:35
recv buf不用贴出来,不需要参数化recv buf.会不会写了QQ号码后,QQ客户端将其加密后,send给服务器.如果楼主是腾讯的工作人员,我想腾讯如果用LR测试的话,也需要加载dll让程序提供些函数.比如连接QQ服务器函数,加密QQ号码函数等等.纯属个人YY了.不要介意!!
作者: sunshinelius    时间: 2005-9-6 09:27
如楼上所说




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