Reputation: 235
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
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