Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

csv - No Dashboard Report Due to Null data

I am using this command on cmd to generate my report:

jmeter -n -t C:UsersHpDesktopWRALoadTestTestScript.jmx -l C:UsersHpDesktopWRALoadTest
esult.csv -f -e -o C:UsersHpDesktopWRALoadTestHTMLReport

but i get the error:

An error occurred: Cannot invoke "org.apache.jmeter.report.processor.MapResultData.getResult(String)" because "resultData" is null

And my csv file is empty with the exception of column headings so I guess data isnt being generate in it but what is the reason behind that?

Also tried doing it manually on jmeter and it give the same error.

Error while producing dashboard report

Can anyone tell me what i might be doing wrong?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If your result.csv is empty it's absolutely expected that you cannot generate dashboard.

The main question is why it's empty, it means that your test failed somewhere somehow, the reasons could be in:

  1. If your test relies on a CSV file and uses CSV Data Set Config incorrect path to this file may lead to the whole test failure

  2. If your test relies on a JMeter Plugin and the plugin is not installed - you won't be able to run it or even open the test plan in JMeter GUI, if this is the case use JMeter Plugins Manager

  3. It might be the case that you have Thread Group configured to stop the test after the very first Sampler failure

    enter image description here

The exact answer lives in jmeter.log file, if anything goes wrong you can always find the reason (or at least extended information) there so check it for any suspicious entries and if you won't be able to figure out the root cause of failure yourself - update your question with the jmeter.log file contents


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...