JMeter:如何从命令行禁用查看结果树元素? [英] JMeter: how can I disable a View Results Tree element from the command line?

查看:25
本文介绍了JMeter:如何从命令行禁用查看结果树元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多测试都包含查看结果树元素.

I have a number of tests that all have the View Results Tree element in them.

它们在创建和调试测试时非常有用,但是不可避免地有些测试会在启用它们的情况下保存.

They are very useful in creating and debugging the tests, however inevitably some of the tests are saved with them enabled.

当测试运行时(从命令行),启用了这个元素的测试会超出 JVM 内存需求,从而导致主机上的内存问题(它同时运行许多这些).

When the tests are run (from the command line), the ones with this element enabled blow out the JVM memory requirements hugely causing memory issues on the host (it runs many of these at the same time).

有没有办法从命令行禁用这个特定元素?

Is there any way to disable this particular element from the command line?

推荐答案

我发现的一种方法是在文件中以编程方式禁用此组件:改变

One way I've found is to programmatically disable this component in the file: Changing

<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">

<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="false">

使用这个命令:

sed -i 's/View Results Tree" enabled="true"/View Results Tree" enabled="false"/' <test file.jmx>

这篇关于JMeter:如何从命令行禁用查看结果树元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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