我有一个包含100条记录/行的CSV,我希望使用JMeter执行(通过服务)。
现在,我希望每次执行3次记录(每次记录延迟5秒后),并对CSV中的所有100条记录执行相同操作。
如何使用JMeter进行此操作?
答案 0 :(得分:6)
使用jmeter' s standard components看起来难以实现。
架构可能如下所示:
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 . . .