我想在 JMETER 中实现以下目标
- Jmeter加载带有id号的CSV文件
- Jmeter 中的每个用户/线程都会选择一个 id 号并将其添加到其 HTTP 请求中,例如http://www.testsite.com/test.php?id=x
- 重复步骤 2,选择文件中的下一个 ID 号。
这样我就可以测试我的 servlet 是否正在使用连接池执行多个线程。
I have tried manually entering in values here
然而这不起作用。
架构布局:
Thanks
您可以尝试按如下方式实现您的架构:
1.在 csv 文件中准备您的测试 ID,例如采用以下格式:
id1
id2
...
idN
2.使用以下架构:
CSV Data Set Config
Filename: [path to your csv-file with test-IDs]
Variable Names: testID // extracted id can be referred as ${testID}
Recycle on EOF? False
Stop thread on EOF? True
Sharing mode: Current thread // this mode allows EACH thread use ALL values from csv
Thread Group
Number of Threads: N // count of your test-threads (users)
Loop Count: Forever
. . .
HTTP Request // your http call
Server Name or IP: www.testsite.com
Path: /test.php?id=${testID} // use variable with extracted ID
. . .
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)