Cucumber | Selenium Forum
M
Madhur Nagpal Posted 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


A
Ashish Thakur Replied on 26/03/2019

Thats possoble though @Background annotation

Its explained in videos

 

@Background is common for features in file