|
有一个Web程序,集成了Windows验证,就是输入用户名和密码不是在页面上,而是在一个弹出窗口中。在录制登陆脚本时,脚本可以成功录制,没有任何错误出现。但在回放时,总是出错,在Result中显示的页面是没有权限浏览这个页面,下面是Execution Log中的信息:
Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 8.0.0 for WIN2003; Web build 4141 [MsgId: MMSG-27143]
Run-Time Settings file: "E:\Program Files\Mercury Interactive\Mercury LoadRunner\scripts\CapitaTrust\\default.cfg" [MsgId: MMSG-27141]
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(6): web_set_timeout was successful [MsgId: MMSG-26392]
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://192.168.0.91/ccs" [MsgId: MERR-26630]
Action.c(6): web_url("ccs") highest severity level was "ERROR", 1656 body bytes, 251 header bytes [MsgId: MMSG-26388]
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
我考虑在弹出窗口中输入用户名和密码时需要一个等待时间,就加了一个web_set_timeout函数,但仍然出错。
急盼解答。 |
|