关于Intellij IDEA和jMeter之间的连接,我有一些问题。我有很多自动测试,在某些情况下,我想测量测试执行时间,特别是当我们有没有ajax的旧gui时。
怎么才能做到呢?如何在Intellij IDEA环境中将jMeter连接到selenium,或者可能存在其他方法来测量图形用户界面的时间。
非常感谢你的帮助。
发布于 2015-09-16 06:15:27
除了测量计时之外,您还需要JMeter吗?JMeter更多的是用于性能测试。如果您所需要的只是事件之间的简单计时,那么您可以使用org.apache.commons.lang3.time.StopWatch。
一个简单的例子是
StopWatch stopwatch = new StopWatch();
stopwatch.start();
Thread.sleep(1000); // a valid use of Thread.sleep() ;)
stopwatch.stop();
System.out.println(stopwatch.toString());哪种输出
00:00:00.999https://stackoverflow.com/questions/32589622
复制相似问题