manish arora
manish arora

Reputation: 27

Customized result file CI- JMeter

After the test plan execution, I need the result file with only 5 fields value i.e. Date,Time, Response message,Response header and Error count in a text file format.Is this possible?I'm doing this for continuous Integration purpose as I need to publish result in the required format.

Upvotes: 1

Views: 261

Answers (1)

Dmitri T
Dmitri T

Reputation: 168002

You can control what is stored in .jtl result file using relevant JMeter Properties.

For instance, to save timestamp, Message and headers you can add the following lines to user.properties file (which sits in /bin folder of your JMeter installation)

jmeter.save.saveservice.timestamp_format=yyyy/MM/dd HH:mm:ss.SSS
jmeter.save.saveservice.response_message=true
jmeter.save.saveservice.responseHeaders=false

See

  • JavaDoc on SimpleDateFormat class to learn how you can set timestamp format
  • JMeter Properties which contain saveservice in their names in jmeter.properties file in /bin folder of your JMeter installation to see available properties and their default values
  • Apache JMeter Properties Customization Guide for extra information on various JMeter properties and ways of setting/overriding them

Upvotes: 2

Related Questions