有没有办法在运行时使用黄瓜+红宝石获取功能名称

时间:2014-01-24 08:59:35

标签: ruby cucumber

在我的黄瓜+ watir + ruby​​测试中,我得到的结果都是results.html。我想改用功能名称。

类似的东西:

<%= feature_name %>.html

这可能吗?

1 个答案:

答案 0 :(得分:1)

scenario.feature.name 
scenario.scenario_outline.feature.name

这应该是你的名字