运行每个方案时打印方案名称 [英] Print scenario name when running each scenario
问题描述
我想在测试运行时打印每个方案的名称.我可以调用或做什么以获取名称,以便执行* print <scenario_name>
?
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?
推荐答案
目前尚不支持,但添加起来很容易.但这是一个问题-这仅仅是为了帮助您理解日志吗?因为如果您尚未使用黄瓜HTML报告,则应该-大多数团队正在使用它: https://twitter.com/KarateDSL/status/899671441221623809
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
请参阅此讨论以获取更多信息: https://stackoverflow.com/a/47555173/143475
Refer to this discussion for more: https://stackoverflow.com/a/47555173/143475
如果您仍然确实需要此功能,请提出功能请求.
If you still really need this, kindly raise a feature request.
它将在下一版本中提供: https://github.com/intuit/karate/issues/257
this will be available in the next version: https://github.com/intuit/karate/issues/257
这篇关于运行每个方案时打印方案名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!