htmljenkinsjmeterreporting

Exception generated when trying to generate jmeter HTML reports


I am trying to generate html reports through the jmeter non gui commands.

HTML reports are not getting generate and also seeing the below error with regards to the same.

COMMAND USED TO RUN:

jmeter -Jjmeter.save.saveservice.output_format=csv -Jjmeter.reportgenerator.apdex_statisfied_threshold=1500  -n -t D:\jmeter\v1_images_scenario.jmx -l D:\jmeter\images.jtl -e -o D:\jmeter\Reports\

ERROR MESSAGE:

Error generating the report: org.apache.jmeter.report.dashboard.GenerationException: Cannot assign "${jmeter.reportgenerator.apdex_satisfied_threshold}" to property "set_satisfied_threshold" (mapped as "setSatisfiedThreshold"), skip it Facing same error after setting the threshold as well .

Tried searching more on this , but couldn't be able to resolve the issue. Would be great if some once could help me on this.Thanks In Advance


Solution

  • You have a typo in your command, change it to look like:

    jmeter -Jjmeter.save.saveservice.output_format=csv -Jjmeter.reportgenerator.apdex_satisfied_threshold=1500 -n -t D:\jmeter\v1_images_scenario.jmx -l D:\jmeter\images.jtl -e -o D:\jmeter\Reports\
    

    i.e. change statisfied to satisfied

    Going forward check the following files:

    For the following line:

    jmeter.reportgenerator.apdex_satisfied_threshold=${jmeter.reportgenerator.apdex_satisfied_threshold}
    

    and once found - delete or remove it, this way you will be able to generate the dashboard using default threshold of 500 if you don't override the property.

    More information: