How to generate a log file which includes the results of the samplers that are executed in the JMeter script

Nahor

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.

Dmitri T

The easiest is going for Flexible File Writer plugin

  1. Install Flexible File Writer using JMeter Plugins Manager

    enter image description here

  2. Add Flexible File Writer to your Test Plan according to JMeter Scoping Rules

  3. Configure it as follows:

    • Filename: desired location of the output file
    • 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
      

      enter image description here

  4. Run your JMeter test. Once it's completed you should see a new file containing the metrics of your choice:

    enter image description here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

how to generate a patch which is a totally new file?

How to generate random numbers which will provide proper results on division

How to log every single command executed from shell script

"java.lang.IllegalArgumentException: Results log file is not empty" error showing while generate dashboard report for Non GUI mode in jmeter3.0

How can one generate Clover-compatible (Bamboo) xml which includes coverage data for python unnittest?

How to log which action method is executed in a controller in webapi

Generate SourceMaps for a single js file which includes modules with npm require and gulp

How to generate comprehensive log file from PowerShell script

How to remove response time, samplers from the jmeter results

Script fails to generate results

How to detect a non-rolling log file and pattern match in a shell script which is using tail, while, read, and?

Python script executed in bash script. Errors not outputting to log file

How to add text to end of file via shell script which includes double quotes

How can I cause a script to log in a separate file the number of times it has been executed?

Comparing results from two samplers in JMeter

which log file or how do I locate this log file?

Shell script executed with cron results in different size file than executed manually

How to determine which script is being executed by bash?

How to calculate elapsed time between two HTTP samplers in JMeter

How to copy specific lines in a script which includes variables without changes to a new file

How do I store extracted RegEx in Jmeter and use it in next samplers

How can i make a php script which will automatically generate links of my folder's file

How does jmeter thread group process samplers?

How to define the JS file which contains the method to be executed in HTML

How to generate a log file names with sequence numbers?

Log file of python scripts executed with a bash script

How to loop Samplers with different intervals in same loop using JMeter

Create powershell script to execute and generate a log file for R codes

(SSIS) How to generate a log file of this VB script