Discussion:
Setting the MM/dd/yy HH:mm:ss:SSS date format in jmeter.properties
shigella Gazeta.pl
2008-04-24 16:22:43 UTC
Permalink
Hello,

I would like to get start/end date for each sample in log for the test case
in that format: MM/dd/yy HH:mm:ss:SSS where SSS are milliseconds.

Is that possible to set that format in jmeter.properties files?

I found only how to get accuracy to the seconds for date (MM/dd/yy HH:mm:ss)
or milliseconds in timestamp.

I tried to use SSS (I found S as code for millisecond on Sun Java page), but
it didn't work (I get timestamp instead of date).

Is that possible to get date in format I want or rather should I think about
writing a bash script to get date with milliseconds accuracy from timestamp?

Thanks
Zofia "Shigella" Nowinska
sebb
2008-04-24 17:46:23 UTC
Permalink
Post by shigella Gazeta.pl
Hello,
I would like to get start/end date for each sample in log for the test case
in that format: MM/dd/yy HH:mm:ss:SSS where SSS are milliseconds.
Is that possible to set that format in jmeter.properties files?
Yes, but it only affects the default JTL file output - i.e. the output
file specified by the -l command-line flag.
Post by shigella Gazeta.pl
I found only how to get accuracy to the seconds for date (MM/dd/yy HH:mm:ss)
or milliseconds in timestamp.
I tried to use SSS (I found S as code for millisecond on Sun Java page), but
it didn't work (I get timestamp instead of date).
Try SSSS
Post by shigella Gazeta.pl
Is that possible to get date in format I want or rather should I think about
writing a bash script to get date with milliseconds accuracy from timestamp?
By default, the date is saved as milliseconds anyway.
Post by shigella Gazeta.pl
Thanks
Zofia "Shigella" Nowinska
sebb
2008-04-24 18:16:00 UTC
Permalink
Post by sebb
Post by shigella Gazeta.pl
Hello,
I would like to get start/end date for each sample in log for the test case
in that format: MM/dd/yy HH:mm:ss:SSS where SSS are milliseconds.
Is that possible to set that format in jmeter.properties files?
Yes, but it only affects the default JTL file output - i.e. the output
file specified by the -l command-line flag.
Sorry, that was wrong.

Most of the jmeter.save.saveservice.* properties only affect the
default output, because the Listener Configure.. button is used to
define them.

However, the timestamp_format affects CSV output for listeners
configured in the test plan as well.
Post by sebb
Post by shigella Gazeta.pl
I found only how to get accuracy to the seconds for date (MM/dd/yy HH:mm:ss)
or milliseconds in timestamp.
I tried to use SSS (I found S as code for millisecond on Sun Java page), but
it didn't work (I get timestamp instead of date).
Try SSSS
Post by shigella Gazeta.pl
Is that possible to get date in format I want or rather should I think about
writing a bash script to get date with milliseconds accuracy from timestamp?
By default, the date is saved as milliseconds anyway.
Post by shigella Gazeta.pl
Thanks
Zofia "Shigella" Nowinska
Loading...