3
votes

I would like to know if there is a JMeter listener that displays the total time that a test has been running for.

Although this plugin shows elapsed time/total duration time along the x-axis, it gives this value in seconds but I would like the value in milliseconds.

Please tell me how can i get the total duration/elapsed time of testing in millisecond?

Thanks in advance.

2
How are you trying to use this data? At the risk of stating the obvious, could you not just multiply seconds by 1000?Oliver Lloyd
No,Actually the value lie between 1 and 2 secondAsadYarKhan
Instead of this this JMeter Graph plugin is there any other listener which can give the duration time.AsadYarKhan

2 Answers

5
votes

The short answer to the question (which has been clarified based on comments) is no, AFAIK there is no listener that displays, to the screen, the total time that the test has been running for in milliseconds.

If you want this value, however, you would simply have to subtract the first timestamp from the last timestamp in the results file. This would give - more or less - the total number of milliseconds that the test ran for. I say more or less because the start and end points are subjective, some people might say the start point is the first request, others would say it is when JMeter is initiated - these can be different times.

If you really must have the value inside of the GUI then you could use the setup and teardown thread groups and a simple beanshell calculation to work out the time. Again, this is subject to interpretation as the setup TG will fire before the test has started. Not much before but a few milliseconds to be sure.

2
votes

Note that starting from next version of Apache JMeter (> 2.7), there will be a new listener called Response Time Graph listener that will give you what you need.

This version is available now as nightly build: