Reputation: 93
I want to generate a log file which includes the results of the samplers that are executed in the JMeter script. One thing to clear I don't want the file which is present in the bin folder. I am looking to create a new log file.
Upvotes: 1
Views: 309
Reputation: 168122
The easiest is going for Flexible File Writer plugin
Install Flexible File Writer using JMeter Plugins Manager
Add Flexible File Writer to your Test Plan according to JMeter Scoping Rules
Configure it as follows:
Write File Header - if you want you can specify header labels here, below example assumes 2 columns: Sampler Name and Status
Name,Successful
Record each sample as: here you can specify metrics you want to store, for sampler name and status it will be sufficient to use the following pattern:
|sampleLabel|,|isSuccsessful|\r\n
Run your JMeter test. Once it's completed you should see a new file containing the metrics of your choice:
Upvotes: 1