并行运行 Jmeter 多个独立的 jmx 测试 [英] Running Jmeter multiple independent jmx tests in parallel

查看:55
本文介绍了并行运行 Jmeter 多个独立的 jmx 测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个场景,其中有几个独立的 jmx 文件,每个文件都有自己的线程组等.使用 JMeter Ant 脚本,我可以按顺序触发它们并将结果收集到 jtl 文件中.我在这里面临的挑战是做同样的事情,但同时启动测试.请注意,包含控制器不是一个选项,因为我想在每个 jmx 文件中使用(或尊重)线程组和用户定义的变量.感谢您的帮助

I have a scenario where there are several independent jmx files, each of them has their own threadgroup etc. Using JMeter Ant script I can fire them all in sequence and collect the result in a jtl file. My challenge here is to do the same thing but fire off the tests in parallel. Please note that Include Controller is not an option since I want to use(or honor) the ThreadGroup and User Defined Variables in each jmx files. Thanks for your help

推荐答案

也许 并行 Ant 任务 就是你要找的.

Perhaps Parallel Ant Task is what you're looking for.

然而, 指令不是线程安全的,所以我不建议将它与 JMeter Ant 任务一起使用,并考虑使用 ie 命令行模式、maven 插件或自定义 Java 类用它生成单独的 JMeter 测试.

However <parallel> directive is not thread safe so I wouldn't recommend to use it with JMeter Ant task and consider using i.e. command-line mode, maven plugin or custom Java class which will spawn individual JMeter tests with it.

参见 启动 JMeter 测试的 5 种方法无需使用 JMeter GUI 指南了解方法的详细信息,希望这有助于找到与您的环境相匹配的方法.

See 5 Ways To Launch a JMeter Test without Using the JMeter GUI guide for details of the approaches, hope this helps to find the one which matches your environment.

这篇关于并行运行 Jmeter 多个独立的 jmx 测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆