如何同时运行每个线程并在同一.jtl文件上保存结果
我有一个测试计划,其中包含3个线程(测试方案),每个线程都从CSV文件中读取。如何同时在不同的从属上运行每个线程(测试方案)并在一个.jtl文件上保存结果?
以下命令将在所有从属上运行整个测试计划,并在一个.jtl文件上保存结果:
jmeter -n -t InvoiceQ.jmx -l results.jtl -R 172.60.130.38,172.60.130.39,172.60.130.40
我需要在从站上运行每个线程并具有一个结果文件。
i have a test plan that contains 3 threads (test scenarios) and each one read from csv file. how can i run each thread (test scenario) on a different slave at the same time and save results on one .jtl file?
the below command will run the whole test plan on all slaves and save results on one .jtl file:
jmeter -n -t InvoiceQ.jmx -l results.jtl -R 172.60.130.38,172.60.130.39,172.60.130.40
i need to run each thread on a slave and have one results file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
按 jmeter文档:
因此,只需将CSV文件复制到所有从机器上即可。 Jmeter Master将从奴隶收集指标,并将其存储到
Results.jtl
文件中。也可以使用 htttp simple Table Server 或 redis数据集配置,在这种情况下,您无需
更多地 将带有测试数据的CSV文件复制到从属机上信息:如何在jmeter
As per JMeter documentation:
So just copy the CSV file onto all slave machines. JMeter master will collect the metrics from the slaves and store them into
results.jtl
file.It's also possible to use plugins like HTTP Simple Table Server or Redis Data Set Config, in this case you won't need to copy the CSV file with test data to the slave machines
More information: How to Perform Distributed Testing in JMeter