Cucumber | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos
10% May Month Discount Avail now

Selenium Training Forum

Cucumber

M
Madhur Nagpal Post on 14/03/2019

I have multiple Feature files. Every feature files have say 5 scenarios. If I use @Before tag, it runs after each and every Scenario.

I have searched the whole internet. I am looking for a tag or workaround where in we can write a code which runs JUST ONCE before/after all the scenarios of a Feature file.

Can any one help

D

Instructor

Demo Reply on 26/03/2019

Thats possoble though @Background annotation

Its explained in videos

 

@Background is common for features in file