Print scenario name when running each scenario

左心房为你撑大大i 提交于 2021-02-17 04:42:52

问题


I want to print the name of each scenario as the test run. What can i call or do to get the name so that i can execute * print <scenario_name> ?

The answer for this post is exactly what i want to do: Print scenario name Is there a way to access the Scenario object?


回答1:


As of now this is not supported, but will be easy to add. But here's the question - is this just to help you make sense of the logs ? Because if you are not using the Cucumber HTML report yet, you should - and that's what most teams are using: https://twitter.com/KarateDSL/status/899671441221623809

Refer to this discussion for more: https://stackoverflow.com/a/47555173/143475

If you still really need this, kindly raise a feature request.

Edit: this will be available in the next version: https://github.com/intuit/karate/issues/257



来源:https://stackoverflow.com/questions/47689130/print-scenario-name-when-running-each-scenario

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