如何同时运行每个线程并在同一.jtl文件上保存结果

发布于 2025-01-29 04:30:13 字数 271 浏览 2 评论 0原文

我有一个测试计划,其中包含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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我要还你自由 2025-02-05 04:30:13

jmeter文档

如果测试使用任何数据文件,请注意,这些文件未由客户端发送,因此请确保它们在每个服务器上的适当目录中可用。

因此,只需将CSV文件复制到所有从机器上即可。 Jmeter Master将从奴隶收集指标,并将其存储到Results.jtl文件中。

也可以使用 htttp simple Table Server redis数据集配置,在这种情况下,您无需

更多地 将带有测试数据的CSV文件复制到从属机上信息:如何在jmeter

As per JMeter documentation:

If the test uses any data files, note that these are not sent across by the client so make sure that these are available in the appropriate directory on each server.

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文