问题
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