【问题标题】:Using locust to simulate load test from android or iOS phones使用 locust 模拟 android 或 iOS 手机的负载测试
【发布时间】:2020-10-19 02:26:26
【问题描述】:

有没有办法在 locust.io 负载测试中模拟 android 用户代理?我有一台服务器需要进行负载测试,他们会检查呼叫是来自 Android 还是 iOS 手机

【问题讨论】:

    标签: user-agent locust


    【解决方案1】:

    Locust 的 HttpUser 的 http 客户端基于 requests 模块。这应该适合你。

    Sending "User-agent" using Requests library in Python

    【讨论】:

      猜你喜欢
      • 2017-04-14
      • 2020-01-02
      • 2021-03-18
      • 2019-12-26
      • 2020-05-17
      • 2017-08-09
      • 2019-09-18
      • 2021-07-29
      • 1970-01-01
      相关资源
      最近更新 更多