【问题标题】:LoadRunner and encrypted URLsLoadRunner 和加密 URL
【发布时间】:2013-04-18 21:25:49
【问题描述】:

在我应该加载测试的应用程序上打开加密 URL 时,即使是第一次导航到 URL 也无法记录。我正在录制的浏览器给我一个页面无法显示。 创建手动 web_url() 函数会导致错误。下面是脚本和输出日志。 以前有人成功地编写过针对这种安全技术的脚本吗?并且没有使用相关性并不能解决这个问题,因为我什至没有到达第一页。

Action()

{

    web_url("entrypoint", 

            "URL=http://e34jbsl00430.devillo.com:8080/entrypoint/", 

            "Resource=0", 

            "RecContentType=text/html", 

            "Referer=", 

            "Snapshot=t1.inf", 

            "Mode=HTML", 

            LAST);



    return 0;

}











Virtual User Script started at : 2013-04-16 17:15:30

Starting action vuser_init.

Web Turbo Replay of LoadRunner 11.0.0 for Windows 7; build 9375 (May 18 2011 01:44:32)   [MsgId: MMSG-27143]

Run Mode: HTML   [MsgId: MMSG-26000]

Run-Time Settings file: "C:\Users\F119506\AppData\Local\Temp\noname5\\default.cfg"       [MsgId: MMSG-27141]

Ending action vuser_init.

Running Vuser...

Starting iteration 1.

Starting action Action.

Action.c(4): Redirecting "http://e34jbsl00430.devillo.com:8080/entrypoint/" (redirection depth is 0)     [MsgId: MMSG-26694]

Action.c(4): To location "http://e34jbsl00430.devillo.com:8080/entrypoint/lL0pQMU3EnM;ENTRYPOINT_JSESSIONID=Z1s9WbTfYw0BW8LrXFckprZS"    [MsgId: MMSG-26693]

Action.c(4): Error -26627: HTTP Status-Code=404 (Not Found) for "http://e34jbsl00430.devillo.com:8080/entrypoint/lL0pQMU3EnM;ENTRYPOINT_JSESSIONID=Z1s9WbTfYw0BW8LrXFckprZS"     [MsgId: MERR-26627]

Action.c(4): web_url("entrypoint") highest severity level was "ERROR", 0 body bytes, 595 header     bytes, 5 chunking overhead bytes         [MsgId: MMSG-26387]

Ending action Action.

Ending iteration 1.

Ending Vuser...

Starting action vuser_end.
Ending action vuser_end.

Vuser Terminated.

【问题讨论】:

    标签: loadrunner


    【解决方案1】:

    不确定链接的加密内容。它似乎是纯文本,请澄清....

    它确实可能是一个临时重定向链接,其中重定向在会话结束时消失了。我会寻找如何使用本地代码获取或计算开头的动态组件。

    【讨论】:

    • 开头的动态计数,我猜你的意思是lL0pQMU3EnM吧?
    • lL0pQMU3EnM 在我每次输入 URL 并按 Enter 时都是唯一的,就像在 URL 中添加 sessionid 一样
    • 我怀疑某些“幕后”发生的重定向会导致在 URL 中创建此动态内容。提供的日志在包含关键字重定向时会提示这一点?
    【解决方案2】:

    您输入了什么作为要访问的 URI 根目录?您是否考虑过更改请求,然后允许从返回的 HTTP 标头自然发生重定向?

    【讨论】:

    • 我输入e34jbsl00430.devillo.com:8080/entrypoint并回车,然后在第一个之前的URL中添加动态/加密元素(显示登录页面)。允许重定向?设置重定向深度?如何告诉 VUGen 自然允许重定向?
    • 您的重定向正在发生,但它失败了。检查网络服务器日志以获取来自网络服务器管理员的输入。
    【解决方案3】:

    添加标题解决了这个问题:

    web_add_header("Cookie","JSESSIONID=dummy");

    【讨论】:

      猜你喜欢
      • 2018-04-21
      • 2013-03-09
      • 2015-05-04
      • 1970-01-01
      • 1970-01-01
      • 2012-09-06
      • 2015-04-03
      • 2010-10-14
      • 1970-01-01
      相关资源
      最近更新 更多