Pal
Pal

Reputation: 235

How to generate .jtl file in jmeter with unique name?

I have a doubt.
I want to create .jtl file with uniqe name in yy-mm-dd-time format.
How can i do this?

Upvotes: 1

Views: 4845

Answers (1)

Andrei Botalov
Andrei Botalov

Reputation: 21096

If you want to use JMeter listener to write JTL file, you can use time function (and put it into filename parameter of listener) like:

${__time(yy-MM-dd-HH-mm-ss)}.jtl

It also has shortcuts that you may want to use.

If you want to create JTL via -l command line option, you can use usual command line possibilities. For example in linux you can do:

sh jmeter.sh -n -t "TestPlan.jmx" -l $(date -d "today" +"%Y-%m-%d-%H-%M-%S").jtl

Upvotes: 8

Related Questions