假设我有一个在后台定义的变量
Background:
* def checkin = '2018-10-05'
现在我希望我的功能线看起来像
Feature: checkin date is '2018-10-05'
我尝试过
Feature: checkin date is '#(checkin)'
但是它不起作用。
答案 0 :(得分:0)
不支持动态功能名称。
听起来您只是想在报告中获得更好的格式?使用Scenario Outline
-触发时,您将看到每个Examples
行的值。
编辑:只需使用print
,您将在报告中看到所需的任何内容。
EDIT2:好的,这将在下一版本中实现:https://github.com/intuit/karate/issues/553