如何从 jmeter 的摘要报告中排除调试示例?
how to exclude the debug sample from the summary report in jmeter?
如何从汇总报告中排除调试样本?
我试过删除,但出于某种原因,它在下面的过程中不起作用,那么有没有办法从结果中排除?
Debug Sampler 只是用来打印调试用的变量
Debug PostProcessor creates a subSample with the details of the previous Sampler properties, JMeter variables, properties and/or System Properties.
- 您可以使用 JSR223 Pre/Post 处理器打印变量
log.info(vars.get("varName"));
log.info(props.get("propName"));
- 如果您只需要在特定的 GUI 测试中进行调试,您还可以在 If Condition 下添加 Debug Sampler,除非您手动将其设置为 true,否则它将不起作用。
您可以使用 Filter Results Tool JMeter 插件,例如:
FilterResults.bat --input-file your_existing_file.jtl --output-file result_without_debug_samplers.jtl --exclude-labels "Debug Sampler"
以上命令行将解析现有结果文件并从中删除任何 Debug Sampler
个实例。
安装过滤器结果工具插件
安装后,您会在 JMeter 的 "bin" 文件夹下找到 FilterResults.bat
和 FilterResults.sh
脚本
如何从汇总报告中排除调试样本?
我试过删除,但出于某种原因,它在下面的过程中不起作用,那么有没有办法从结果中排除?
Debug Sampler 只是用来打印调试用的变量
Debug PostProcessor creates a subSample with the details of the previous Sampler properties, JMeter variables, properties and/or System Properties.
- 您可以使用 JSR223 Pre/Post 处理器打印变量
log.info(vars.get("varName"));
log.info(props.get("propName"));
- 如果您只需要在特定的 GUI 测试中进行调试,您还可以在 If Condition 下添加 Debug Sampler,除非您手动将其设置为 true,否则它将不起作用。
您可以使用 Filter Results Tool JMeter 插件,例如:
FilterResults.bat --input-file your_existing_file.jtl --output-file result_without_debug_samplers.jtl --exclude-labels "Debug Sampler"
以上命令行将解析现有结果文件并从中删除任何 Debug Sampler
个实例。
安装后,您会在 JMeter 的 "bin" 文件夹下找到 FilterResults.bat
和 FilterResults.sh
脚本