Open sudheerah opened 4 years ago
Not easily - that would imply there is a dependency between the features, which is considered a pretty big Cucumber anti-pattern. You could do it with test suites and runners, but it would be very clunky.
Why not just use Cucumber hooks?
Is there any sample solution you know. I was under impression it is not yet supported. What I read was all these hooks use for within feature files NOT for initial setup before start the suite.
Not supported global hooks which I am after
Global hooks
Cucumber-JVM does not support global hooks.
What problem are you trying to sovle?
Need to load my all the mocks before test execution
I would use @Before hooks and a ThreadLocal object.
If you can send me an example will be much appreciated.
@sudheerah use TestNG as runner and use @BeforeSuite?
Hi there,
Just curious whether there is way to run serenity BDD tests (maven project) in a particular order in command line.
e.g. I have three tests (feature1, feature2 and feature3) and I wanted to run those in CLI in blow order
Using below Maven Dep: