JMeter - 性能测试 - 第三方后端 GET 响应

JMeter - Performance Testing - Third Party Backend GET Response

我目前正在对应用程序进行负载测试,用户可以在其中创建订单。创建订单后,请求将到达触发调度程序的中间件。从调度程序,GET 状态到达第 3 方 API,响应存储在后端 (DB)。 GET Status 响应只能在后端看到,用户界面看不到。请帮助如何使用最新版本的 Jmeter 在后端记录此 GET 状态响应。

您可以使用 JDBC Request 采样器从数据库中读取信息

  1. 下载JDBC Driver for the database you're using and drop it to JMeter Classpath
  2. 重新启动 JMeter 以获取驱动程序
  3. 添加JDBC Connection Configuration element and specify database URL, credentials and thread pool姓名
  4. 在JDBC请求采样器中设置与第3点相同的线程池名称并创建一个SQL Select query to fetch the response from the database. If you will need the response later on it can be stored into a JMeter Variable