Test suite Run time in karate in report

喜欢而已 提交于 2021-01-27 17:58:49

问题


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

feature 1 execution time + feature 2 execution time +feature 3 execution time = total execution time

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.


回答1:


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.



来源:https://stackoverflow.com/questions/56116495/test-suite-run-time-in-karate-in-report

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!