为场景大纲中的示例添加标记(行为)

时间:2017-09-25 11:28:42

标签: python selenium python-behave

是否可以使用behave为场景大纲中的示例添加标记?像这样的东西。

Examples:
  |input     |output    |
  @test1
  |one       |two       |
  @test2
  |three     |four      |

当我尝试这样做时,我得到解析器错误:Parser failure in state next_scenario, at line 15: 'Examples:'

1 个答案:

答案 0 :(得分:0)

此功能实际上可以在Behave的开发版本上使用,它尚未在公开发布中提供。有关详细信息,请参阅this Github问题。

答案最初由@Grasshopper在评论中提供。