使用JMeter -g生成报告时如何忽略错误 [英] How to ignore errors when generating report using JMeter -g

查看:881
本文介绍了使用JMeter -g生成报告时如何忽略错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何忽略错误并继续生成仪表板报告.

how can I ignore errors and proceed to generate the dashboard report.

我一直看到令人讨厌的错误示例:

I have been seeing annoying errors example:

org.apache.jmeter.report.dashboard.GenerationException:处理样本时出错:预期的列数:16和CSV文件中的列:1之间不匹配

org.apache.jmeter.report.dashboard.GenerationException: Error while processing samples:Mismatch between expected number of columns:16 and columns in CSV file:1

由于文件中有多余的空间或换行符,我正在处理8GB的巨大文件,因此在生成报告时,csv文件中的所有这些次要问题都占用了大量时间.

Due to extra space or newline in the files, I am dealing with 8GB of huge, all these minor issues in the csv file are consuming a lot of time when generating reports.

推荐答案

该错误表示您的.jtl结果文件格式错误. JMeter的默认配置应产生如下内容:

The error means that your .jtl result file is malformed. Default JMeter configuration should produce something like:

timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,Latency,IdleTime,Connect
1519031460845,364,HTTP Request,200,OK,Thread Group 1-1,text,true,,1598,115,1,1,364,0,227

如果出于任何原因修改了JMeter配置,请尝试将其恢复为默认值,并且问题仍然存在-检查.jtl结果文件并找出有问题的采样器结果条目,以检测导致这些多余空格或换行符的原因.

If you amended your JMeter configuration for any reason try reverting it to default and if the issue still persists - inspect your .jtl result file and identify the problematic sampler result entries to detect what causes these extra spaces or line breaks.

如果您在一个JMeter实例上运行JMeter测试,并使用另一个JMeter实例生成仪表板-在jmeter.save.saveservice属性方面,它们必须具有相同的配置,否则仪表板生成可能会失败或结果不一致.

If you run JMeter tests on one JMeter instance and generating dashboard using another JMeter instance - they must have the same configuration in terms of jmeter.save.saveservice properties, otherwise dashboard generation might fail or results will be inconsistent.

参考文献:

  • Results file configuration
  • Apache JMeter Properties Customization Guide
  • Generating Report Dashboard

这篇关于使用JMeter -g生成报告时如何忽略错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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