51Testing软件测试论坛

标题: loadrunner回放问题 [打印本页]

作者: nishoujuan    时间: 2011-9-6 14:54
标题: loadrunner回放问题
#include "web_api.h"


Action()
{
        web_url("Site.css",
                "URL=http://192.168.8.16:808/Content/Site.css",
                "TargetFrame=",
                "Resource=1",
                "RecContentType=text/css",
                "Referer=http://192.168.8.16:808/Account/LogOn?ReturnUrl=%2f",
                LAST);

        web_url("jquery-1.4.4.min.js",
                "URL=http://192.168.8.16:808/Scripts/jquery-1.4.4.min.js",
                "TargetFrame=",
                "Resource=1",
                "RecContentType=application/x-javascript",
                "Referer=http://192.168.8.16:808/Account/LogOn?ReturnUrl=%2f",
                LAST);

        web_url("jquery.validate.min.js",
                "URL=http://192.168.8.16:808/Scripts/jquery.validate.min.js",
                "TargetFrame=",
                "Resource=1",
                "RecContentType=application/x-javascript",
                "Referer=http://192.168.8.16:808/Account/LogOn?ReturnUrl=%2f",
                LAST);

        web_url("jquery.validate.unobtrusive.min.js",
                "URL=http://192.168.8.16:808/Scripts/jquery.validate.unobtrusive.min.js",
                "TargetFrame=",
                "Resource=1",
                "RecContentType=application/x-javascript",
                "Referer=http://192.168.8.16:808/Account/LogOn?ReturnUrl=%2f",
                LAST);

    web_set_user("192.168.8.16\\100217", "123", "192.168.8.16:808");
    web_url("192.168.8.16:808",
                "URL=http://192.168.8.16:808/",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.8.16:808/Account/LogOn?ReturnUrl=%2f",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/Scripts/jquery-1.4.4.min.js", "Referer=http://192.168.8.16:808/Account/LogOn?ReturnUrl=%2f", ENDITEM,
                "Url=/Content/Site.css", "Referer=http://192.168.8.16:808/Account/LogOn?ReturnUrl=%2f", ENDITEM,
                "Url=/Scripts/jquery.validate.min.js", "Referer=http://192.168.8.16:808/Account/LogOn?ReturnUrl=%2f", ENDITEM,
                "Url=/Scripts/jquery.validate.unobtrusive.min.js", "Referer=http://192.168.8.16:808/Account/LogOn?ReturnUrl=%2f", ENDITEM,
                LAST);

        return 0;
录制代码。
下面未出现的问题,我已经手动添加了  web_set_user函数 还是报错高手帮忙解决一下啊!!
Action.c(39): Error -26630: HTTP Status-Code=401 (Unauthorized) for "http://192.168.8.16:808/Account/LogOn?ReturnUrl=%2f"          [MsgId: MERR-26630]
Action.c(39): web_url("192.168.8.16:808") highest severity level was "ERROR", 3482 body bytes, 546 header bytes          [MsgId: MMSG-26388]
作者: nishoujuan    时间: 2011-9-6 15:25
自己顶一个!高手们,帮下帮吧!不胜感激!!!等待中。。。
作者: nishoujuan    时间: 2011-9-6 15:30
我在网上也搜到类似问题,但都解决不了啊!高手们赶紧帮帮忙吧~~~痛苦中啊




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