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

查看:253
本文介绍了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天全站免登陆