Forum Discussion

snair2021's avatar
snair2021
New Contributor
4 years ago

BDD Feature and Scenario Hooks

Hi,

I have not been able to execute the @beforefeature and @afterfeature hooks in my script when there is only one scenario in the feature file.

 

Works when there are multiple scenarios.

 

Not that it is a big problem. But was just curious why it was happening.

 

Anybody had the same problem?

 

thanks,

 

Sree

3 Replies