报告中的空手道测试套件运行时间
我正在使用空手道9.0.0并并行运行特征文件并生成 黄瓜报告使用空手道并行运行代码.问题在于,功能概述中的报告将其总执行时间显示为
I am using karate 9.0.0 and running feature files in parallel and generating cucumber report using karate parallel run code. Problem is that in the report in feature overview its showing the total time execution as
功能1的执行时间+功能2的执行时间+功能3的执行时间=总执行时间
但是,如果我在1个以上的线程中并行运行功能,则实际执行时间会更少.如何显示和计算测试套件的运行时间.
but actual execution time is less if i am running features in parallel in more than 1 thread. How can i show and calculate the test suite run time.
在控制台上报告.只要您的测试运行得相当快,我就不明白为什么您需要担心它.
It is reported on the console. I don't understand why you need to worry about it as long as your tests are running reasonably fast.
Anyway, if you really want to capture this, just use the methods of the Results
class that you get from the Runner.parallel()
. For example you have a getElapsedTime()
method.