JMeter-将结果保存到CSV和XML [英] JMeter - saving results to both CSV and XML

查看:1041
本文介绍了JMeter-将结果保存到CSV和XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要实现的是针对相同的测试执行,以2种格式获得JMeter结果. CSV是我最感兴趣的一种,除非出现故障-然后我可能需要使用只能保存为XML的数据.由于杂项原因,我无法在大多数情况下使用XML.

What I try to achieve is to get JMeter results in 2 formats, for the same test execution. CSV is the one I'm mostly interested in, unless there are failures - then I may need to use data which can be saved only to XML. I can't use XML for most occasions, due to misc reasons.

我正在查看 jmeter.save.saveservice.output_format cfg条目,它似乎不接受两者均为有效条目.我也在查看JMeter代码本身,它也清楚地将这两个选项分开.

I was looking at jmeter.save.saveservice.output_format cfg entry, it doesn't seem to accept both as valid entry. I was also looking at JMeter code itself, it also clearly separates both options.

有人发明了黑客技术以同时获得两个JMeter输出吗?

Did anyone invent a hack to get both JMeter outputs at the same time?

欢迎使用独立JMeter和jmeter-maven-plugin的解决方案.

Solution for both standalone JMeter and jmeter-maven-plugin is welcome.

推荐答案

如果您使用JMeter Maven插件,则按照

If you use JMeter Maven plugin, as per Five Ways To Launch a JMeter Test without Using the JMeter GUI guide the default output has to be XML.

如果您还需要CSV输出,只需添加简单数据编写器听众.如果您希望CSV数据与JMeter的默认CSV值一致,请按以下方式进行配置:

If you need CSV output as well - just add Simple Data Writer listener. If you looking for CSV data to be in line with JMeter default CSV values configure it as follows:

这篇关于JMeter-将结果保存到CSV和XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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