【问题标题】:How to Run Http Samplers in sequence order (step by step as per the ThreadGroup Order)如何按顺序运行 Http 采样器(按照 ThreadGroup 顺序逐步运行)
【发布时间】:2014-03-12 13:32:55
【问题描述】:

我的应用程序的行为:

HTTP Request Login
..JSON Path Extractor - Im extracting the session id
Debug Sample - Checking the session id
HTTP Request -- Im passing the session id to these requests
HTTP Request -- Im passing the session id to these requests
HTTP Request -- Im passing the session id to these requests

如果我运行上述脚本一次,我得到了上述请求的预期结果,这是一步一步通过的过程。

如果我使用 - Number of Threads as 5 运行上面的脚本。然后登录命中 3 次,其他 url 命中 2 次。

我需要多次运行上述脚本。

【问题讨论】:

  • 如果有 5 个线程,您应该能够满足所有线程的所有请求。您能否提供有关如何设置线程组的更多信息 - 最好使用屏幕截图。
  • @OphirPrusak 我没有添加图片的声誉 我要发邮件给你吗?你能分享你的邮件ID吗
  • 使用imgur.com 或类似的东西添加图片链接
  • imgur.com/a/curw1 - 请查看此链接中的图片。
  • imgur.com/a/curw1 - 请查看此链接中的图片。问题是我得到了无效的会话。如果我运行超过 2 个线程。如果我运行一次 - 我得到了正确的会话和预期的响应

标签: json performance testing jmeter performance-testing


【解决方案1】:

我没有看到任何正则表达式提取器,您需要将会话 ID 从一个请求传递到另一个请求。此外,如果您的后端使用 cookie,请确保添加 http cookie 管理器。

这里有一些很好的 JMeter 入门视频,其中也涵盖了您正在尝试做的事情:
http://blazemeter.com/blog/jmeter-tutorial-video-series

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-15
    • 2020-07-23
    相关资源
    最近更新 更多