I want to specify certain setup and tear down steps for each specific feature file. I\'ve seen hooks that allows code to execute before every scenario, and hooks to execute
Try this :
In feature file :
@tagToIdentifyThatBeginAfterShouldRunForThisFeatureOnly
Feature : My new feature ....
In Stepdefinitions.java :
@Before("@tagToIdentifyThatBeginAfterShouldRunForThisFeatureOnly")
public void testStart() throws Throwable {
}
@After("@tagToIdentifyThatBeginAfterShouldRunForThisFeatureOnly")
public void testStart() throws Throwable {
}