Reputation: 448
I'm facing an issue with Jbehave, and I don't know what am I doing wrong
I have some scenarios with tables of parameters, and I have to add a meta to these scenarios, when I do that, the test stop running, if I remove the table or remove the meta, everything works fine, but when I put both, the scenario doesn't run
My scenario is the following:
Scenario: The user do something
Meta: @meta
Given <USER1> exists
When user <USER1> do <ACTION>
Then I verify if <ACTION> has been perfomed
Examples:
|USER1|ACTION|
|userA|actionA|
|userB|actionB|
|userC|actionC|
if I let only:
Scenario: The user do something
Meta: @meta
Given <USER1> exists
When user <USER1> do <ACTION>
Then I verify if <ACTION> has been perfomed
or only:
Scenario: The user do something
Given <USER1> exists
When user <USER1> do <ACTION>
Then I verify if <ACTION> has been perfomed
Examples:
|USER1|ACTION|
|userA|actionA|
|userB|actionB|
|userC|actionC|
it works perfectly, but if I add both meta and the examples table, the scenario isn't executed.
Can someone help me?
Upvotes: 0
Views: 497
Reputation: 2838
This page implies that the Meta tag should be BEFORE the scenario. That is the only thing that stood-out to me. Why it would only detect it as a problem if the Examples were included hints that it might not be the answer. Worth a try.
Upvotes: 1