Can I run all the stories from a feature/capability in the same browser, with Serenity and JBehave?

21 views
Skip to first unread message

Marian Dobre

unread,
Apr 26, 2016, 2:53:08 AM4/26/16
to Serenity BDD Users Group
Hi everybody,

I'm kind of new in Serenity framework and I would like to keep the browser open after a story is finished and start the second story in the same session. (Every story has other scenarios).

I've used but is not enaugh:
public class SmokeTest1 extends SerenityStory {
    public SmokeTest1() {
        runSerenity().inASingleSession();
    }
}

For this example I would like to run plant_organic_potatoes.story and dig_up_organic_potatoes.story    in the same browser. So there is any way to specify that all the grow_organic_potatoes   to be run in the same browser?
+ src
  + test
    + resources
      + stories
        + grow_potatoes                     [a capability]
          + grow_organic_potatoes           [a feature]
            - plant_organic_potatoes.story  [a story]
            - dig_up_organic_potatoes.story [another story]
          + grow_sweet_potatoes             [another feature]
          ...


Thank you.
Reply all
Reply to author
Forward
0 new messages