I Have few jbehave story files in stories folder. whenever i execute the scripts it takes in alphabetical order.
ex: current execution
aaa.story
bbb.story
ccc.story
i want the execution to be
ccc.story
bbb.story
and skip aaa.story
is there a way to run specific stories in specific order. in Serenity BDD + Jbehave
You can use Meta: to tag stories/scenarios. This is useful if you want to run just subset of stories/scenarios or skip some of them. Example:
Then you can use meta filtering and story mapping to include/exclude scenarios marked with certain tags.
You can change story file names so their lexicographical order will match order you want them to execute:
or create separate folders:
There is more nice solution in case when you need some story to execute before another one, GivenStories: clause:
This will first execute aaa.story then this story. You can specify several stories in
GivenStories.