Sak*_*ket 2 java qa jmeter load-testing
我有一个包含100条记录/行的CSV,我希望使用JMeter执行(通过服务).
现在,我希望每次执行3次记录(每次记录延迟5秒后),并对CSV中的所有100条记录执行相同操作.
我怎么能用JMeter这样做?
使用jmeter的标准组件看起来并不难实现.
架构可能如下所示:
Thread Group
Number of Threads = 1
Loop Count = 1
. . .
While Controller // this will iterate through your csv-file
Condition = ${__javaScript("${var1}"!="",)} // this will repeat until EOF
CSV Data Set Config
Filename = ... // path to your csv file
Variable Names = var1,... // these are records read from file into pointed variables
Delimiter = ,
Recycle on EOF? = False
Stop thread on EOF? = True
Sharing Mode = Current thread group
Loop Controller
Loop Count = 3
HTTP Request Sampler
Constant Timer
Thread Delay (in ms) = 5000
. . .
| 归档时间: |
|
| 查看次数: |
4539 次 |
| 最近记录: |