如何在JMETER中创建一个测试:
答案 0 :(得分:3)
1)你可以使用Throughput Controllers的集合 - 但它们只能在循环中正常工作(例如循环控制器的“子节点”)。
您可以尝试使用类似下面的内容,例如:
. . .
Loop Controller
Loop Count = 100
Throughput Controller
Percent Execution
Throughput = 80.0
HTTP Request Sampler
Request to 1st site
Throughput Controller
Percent Execution
Throughput = 20.0
HTTP Request Sampler
Request to 2nd site
. . .
了解详情:
2)另一种结构只能使用Loop Controllers实现,例如:
. . .
Loop Controller
Loop Count = 20
Loop Controller
Loop Count = 4
HTTP Request Sampler
Request to 1st site
HTTP Request Sampler
Request to 2nd site
. . .