如何准确地找到“总测试持续时间".在Jmeter中? [英] how to find accurate the "Total Testing duration time" in Jmeter?

查看:90
本文介绍了如何准确地找到“总测试持续时间".在Jmeter中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一个JMeter侦听器显示测试运行的总时间.

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

尽管插件显示沿x轴的经过时间/总持续时间,它以秒为单位给出该值,但我希望以毫秒为单位.

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?

谢谢.

推荐答案

该问题的简短答案(已基于注释进行了澄清)为否,AFAIK没有在屏幕上显示总时间的侦听器测试已经运行了毫秒.

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.

但是,如果要使用此值,则只需从结果文件中的最后一个时间戳减去第一个时间戳即可.这或多或少会得出测试运行的总毫秒数.我之所以说得差不多,是因为起点和终点是主观的,有人会说起点是第一个请求,而有人会说这是JMeter启动的时间-这可以是不同的时间.

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.

如果确实必须在GUI中包含该值,则可以使用setup和teardown线程组以及简单的beanshell计算来计算时间.再次说明,这是因为设置TG将在测试开始前 触发.可以确定,但不多于几毫秒.

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.

这篇关于如何准确地找到“总测试持续时间".在Jmeter中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆