报告中的空手道测试套件运行时间 [英] Test suite Run time in karate in report

查看:73
本文介绍了报告中的空手道测试套件运行时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用空手道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.

这篇关于报告中的空手道测试套件运行时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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