Transactions 在JMETER中-如何在API测试的每个单独请求级别实现TPS
要求: 我总共有67个并发用户Transactions 在JMETER中-如何在API测试的每个单独请求级别实现TPS,transactions,jmeter,httprequest,throughput,jmeter-4.0,Transactions,Jmeter,Httprequest,Throughput,Jmeter 4.0,要求: 我总共有67个并发用户 I would like to achieve transactions per minutes at request level, what would be approach and how the script structure should look like ? API请求1-152请求/分钟。 API请求2-56请求/分钟。 API请求每分钟3-32个请求。 API请求每分钟4-12个请求。 API请求每分钟5-12个请求。 API请求每分钟6-1
I would like to achieve transactions per minutes at request level, what would be approach and how the script structure should look like ?
API请求1-152请求/分钟。
API请求2-56请求/分钟。
API请求每分钟3-32个请求。
API请求每分钟4-12个请求。
API请求每分钟5-12个请求。
API请求每分钟6-12个请求
I need to achieve transaction per minute at each request level, all under same thread group. As per my requirement, my each HTTP sampler is a transaction. This is for API testing.
6 API requests under 6 simple controller.
My Script structure:
1. Test Plan
2. Thread Group
3. Simple Controller
i. HTTP Sampler
ii. Response Assertion.
iii. Boundary value Extractor
iv. Results Action Set Handler
4. View Results Tree
5. Summary Report
I have tried 2 ways:
Instead of simple controller, i have used throughput controller and used percent Executions.
I also had constant throughput timer.
Requirement:
In total i have 67 concurrent users.
I need to achieve transaction per minute at each request level, all under same thread group.
6 API requests under 6 simple controller.
My Script structure:
1. Test Plan
2. Thread Group
3. Simple Controller
i. HTTP Sampler
ii. Response Assertion.
iii. Boundary value Extractor
iv. Results Action Set Handler
4. View Results Tree
5. Summary Report
Example:
All API requests / http sampler falls under the same thread group and request should execute in the given sequence as correlation is in place.
在同一环境下,您不能为不同的采样设置不同的吞吐量级别,因为JMeter颠倒执行采样器并循环,因此总的执行速度将被限制为最慢采样器的执行速度 解决方案是将希望以不同速度执行的请求放在不同的线程组下。如果需要在不同线程组中的线程之间传递值,可以使用:
Were i need to perform a load test and soak test as well with the above workload model.