我想在JMETER中实现以下功能
这样我就可以测试我的servlet是否正在使用连接池执行多个线程.
我试过在这里手动输入值
但这不起作用.
架构布局:
谢谢
您可以尝试实现您的架构,如下所示:
1.在csv文件中准备测试ID,例如,采用以下格式:
Run Code Online (Sandbox Code Playgroud)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 . . .
归档时间: |
|
查看次数: |
15100 次 |
最近记录: |