51Testing软件测试论坛

标题: LR回放时报错,请大侠帮我看看 [打印本页]

作者: sallyalways    时间: 2013-1-16 12:15
标题: LR回放时报错,请大侠帮我看看
我单位电脑用的是代理上网,在Run time Setting中设置了代理proxy,可以成功录制。编译也能通过。

可是回放的时候不能成功回放,其中一段会显示:

Action.c(8): Error -26544: Proxy authentication required, please fill in the proxy user details in the Run Time Settings, Proxy tab, using the Authentication button. e.g. Username: domain\user  Password: password          [MsgId: MERR-26544]
Action.c(8): Error -26624: HTTP Status-Code=407 (Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )) for "http://www.baidu.com/"          [MsgId: MERR-26624]

希望高手们帮我看看应该怎么解决,谢谢
作者: ffwithvv    时间: 2013-1-16 16:00
看报错提示的字面意思是,代理的信息不完整,可能还需要代理用户的username和password
作者: sallyalways    时间: 2013-1-17 08:36
没有人知道吗?自己来个沙发。。。
作者: sallyalways    时间: 2013-1-17 10:26
回复 2# ffwithvv


    确实开始没有加用户名和密码,我把Authentication中输入用户名和密码以后,又有提示信息有变化 :

Action.c(8): Error -26477: both domain and user are needed for NTLM authentication, note: two backslashes are needed, e.g. web_set_user("Domain\\user", "password", "host:port");          [MsgId: MERR-26477]
Action.c(8): Error -26544: Proxy authentication required, please fill in the proxy user details in the Run Time Settings, Proxy tab, using the Authentication button. e.g. Username: domain\user  Password: password          [MsgId: MERR-26544]
Action.c(8): Error -26624: HTTP Status-Code=407 (Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )) for "http://www.baidu.com/"          [MsgId: MERR-26624]
Action.c(8): Error -26477: both domain and user are needed for NTLM authentication, note: two backslashes are needed, e.g. web_set_user("Domain\\user", "password", "host:port");          [MsgId: MERR-26477]
请问他说要写的双反斜杠,应该在哪里加呀?谢谢
作者: ffwithvv    时间: 2013-1-17 16:02
字面意思是domain和user都需要身份验证,并且举了个列子:
web_set_user("Domain\\user", "password", "host:port");
作者: sallyalways    时间: 2013-1-18 11:07
回复 5# ffwithvv


    请问,我选择了默认和浏览器的代理一样,“Obtain the proxy settings from the default browser",浏览器可以正常访问网页,可是回放的时候还是有之前的错误,这是为什么呢?
作者: sallyalways    时间: 2013-1-21 08:39
有没有朋友知道怎么回事~~~谢谢
作者: sallyalways    时间: 2013-1-31 08:30
谁知道~~~~~

设置浏览器默认代理也不行
作者: ares444    时间: 2013-2-1 15:02
看看这几个列子。。。就知道这函数怎么用啦
Example 1
The following function was recorded by VuGen when a user logged on to the server called mansfield, using the standard HTTP port:

web_set_user("mercury", "mercury", "mansfield:80");

Example 2
In the following example, the web_set_user function specifies a login string for user "Private1" using the password "secret":

web_set_user("Private1", "secret", "www.myhost.com:8080");

Example 3
The following example was inserted manually by the user into the script as the Web server "mansfield" uses NTLM authentication. VuGen cannot record NTLM or Digest authentication. Note that for NTLM authentication the domain name "mansfield" followed by a double backslash must be prepended to the user name:

web_set_user("mansfield\\freddy", "XYZ", "mansfield:80");

Example 4
In this example, web_set_user is used twice for proxy authentication.

vuser_init()

{

    web_set_proxy("sussex:8080");

    web_set_user("dashwood",

        lr_decrypt("4042e3e7c8bbbcfde0f737f91f"),

        "sussex:8080");

    web_url("web_url",

        "URL=http://barton/",

        "TargetFrame=",

        "Resource=0",

        "Referer=",

        LAST );

    web_set_proxy("norland:8080");

    web_set_user("delaford\pxy1",

        lr_decrypt("4042e3f98b5a77"),

        "norland:8080");

    return 0;

}




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