51Testing软件测试论坛

标题: 请问Authentication required是怎么回事? [打印本页]

作者: guiliandudu    时间: 2006-12-7 21:29
标题: 请问Authentication required是怎么回事?
运行时报错如下:
Action.c(6): Error -26547: Authentication required, please use web_set_user, e.g. web_set_user("domain\\user", "password", "host:port");          [MsgId: MERR-26547]
Action.c(6): Error -26630: HTTP Status-Code=401 (Unauthorized) for "http://localhost/KLCQMS/Webs/"          [MsgId: MERR-26630]
Action.c(6): web_url("Webs") highest severity level was "ERROR", 2150 body bytes, 674 header bytes          [MsgId: MMSG-26388]

相关的代码:
Action()
{
        web_url("Webs",
                "URL=http://localhost/KLCQMS/Webs",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "URL=Webs/images/purple_bg02.gif", "Referer=http://localhost/KLCQMS/Webs/", ENDITEM,
                LAST);
        lr_think_time(4);
怎么解决啊?谢谢同志们!
作者: Zee    时间: 2006-12-8 18:04
你加web_set_user看看
作者: crystalbelle    时间: 2006-12-10 14:37
是不是还有其它的?我单独运行了你上面写的代码,只是把URL改了一下,是没问题的
作者: Graceli    时间: 2007-10-12 12:21
我和楼主遇到一样的问题,现在还不知怎么解决,一般IIS里设置域帐号访问时就有这种情况出现.




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