Rakesh133
Rakesh133

Reputation: 381

How to print timestamp/different name in Jmeter test results csv

I have a performance test plan in Jmeter. As a constant running test plan, I need to generate execution summary in CSV format with a timestamp.

In the View Result Tree, I have provided a csv filename with timestamp variable as '${__time(YYYY-MM-DD-SS,time)}' (Please see image below). But this doesn't work for me as it is not generating any files after the run.

enter image description here

Or is there any way we can generate summary report csv with different name for each run?

Upvotes: 0

Views: 1838

Answers (1)

Dmitri T
Dmitri T

Reputation: 168002

It is not recommended to use Listeners for anything but tests development and/or debugging, they don't add any value and consume a lot of resources because all the thread context is being passed to the listener when any Sampler occurs.

So I would recommend:

  1. Removing all listeners from your test plan
  2. Run your test in command-line non-GUI mode
  3. If you need to include the timestamp into the .jtl results file you can use Windows date and/or time commands

    jmeter -n -t test.jmx -l %date:~10,4%-%date:~4,2%-%date:~7,2%.csv 
    
  4. You can control what is being stored in the .jtl results file using properties responsible for the Results File Configuration

Upvotes: 2

Related Questions