0

We have a webapi project with 4 endpoints and we have a lot of acceptance tests written in JMeter. The problem is that now the JMeter file has more than 20 MB and when we have a conflict on this file while merging the branches, it is difficult to handle it correctly.

So, my question is: Is there a solution that while I run the unit tests, to selfhost somehow the api and make calls directly to my api and drop the JMeter alternative?

4

1 回答 1

0
  1. 如果您仅使用 JMeter 进行功能测试,您可以考虑切换到基于代码的库来发出 API 请求,目前最流行/最先进的似乎是RestAssured
  2. 第 1 点需要从头开始重新实施测试,如果您没有时间/预算,您可以考虑重构测试以删除重复项或使用Test FragmentsModule Controller将巨大的 .jmx 脚本拆分为更小的部分。查看如何使用 JMeter 测试片段管理大型 JMeter 脚本以获取更多信息。
于 2017-12-19T11:07:06.243 回答