I am using JBehave - I have three stories - third story refers other two stories:
GivenStories Story1, Story2
Given Some_Thing When you_compare_output_of_story_1_to_output_of_story_2 Then verify_the_result
When I run this third story - expectation is to run the
first scenario of 1st story first scenario of 2nd story then the scenario in 3rd story
--
second scenario of 1st story second scenario of 2nd story then the scenario in 3rd story
but JBehave runs all the scenarios in the 1st story, then all the scenarios in the 2nd story ..:(
I am not finding a way to get it the way I am looking for. Can someone help?
Read about GivenStories filtered by scenario meta parameters
The idea is that you use
meta tags
in the first and second stories, like in below examples:First story
Second story
and in the third story you need to filter them using these meta tags: