0

Is it possible to add tag for examples in scenario outline using behave? Something like this.

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

When I try to do this I get parser error: Parser failure in state next_scenario, at line 15: 'Examples:'

Simon Prickett
  • 3,838
  • 1
  • 13
  • 26
Ewa
  • 65
  • 3
  • 11
  • I think the |input|output| header needs to be repeated for both tables and should be below the tags you are using. – Grasshopper Sep 25 '17 at 11:45
  • I've tried to put Examples: and |input|output| header before every example but it still doesn't work. :( – Ewa Sep 25 '17 at 11:49
  • What is the parser error – Grasshopper Sep 25 '17 at 11:52
  • "Parser failure in state next_scenario, at line 15: 'Examples:'" if I'm trying to repeat headers every time. If not it crashes on first example. – Ewa Sep 25 '17 at 11:54
  • check this out - https://github.com/behave/behave/issues/485, seems what you are attempting is not released officially but available. – Grasshopper Sep 25 '17 at 11:57

1 Answers1

0

This feature is actually available on the development version of Behave, it just isn't available in the public release yet. See this Github issue for more details.

Answer originally provided by @Grasshopper in comments.

Verv
  • 2,385
  • 2
  • 23
  • 37