i install Sonarqube with Jmeter Plugin. I have my simple test in Jmeter with:
Threads group
Http Sampler
Assertion Results
and i save the result in local, with jtl extension.
Now i have configure Local jtl file in jmeter plugin for sonar, for my project.
But now if i try to test my project i have this error:
ERROR - Cannot analyse project 'My project'
es.excentia.jmeter.report.server.testresults.JtlReaderException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '1' (code 49) in prolog; expected '<'
It looks like that sonarqube expects JMeter result file to be in XML format and by default it is CSV.
Results file output format is controllable via
jmeter.save.saveservice.output_format
property, supported values arexml
andcsv
, default is csv.Depending on how you launch your JMeter test the property can be set in different ways:
Add the next line to user.properties file which lives under /bin folder of your JMeter installation
Look for this property in jmeter.properties file, uncomment and change its value to xml
If you run JMeter in command-line mode the property can be passed via -J argument as
See Apache JMeter Properties Customization Guide for comprehensive information on JMeter's property types and ways of overriding.