Posted On: Feb 25, 2020
Hooks in cucumber has a special function of performing the task. It is an unseen step that allows us to perform our scenarios or tests. It is developed to reduce code redundancy and to give us a better workflow of codes. We can also use hooks after and before to be executed with a specific tag only.
For eg, @Before('@Web')
Never Miss an Articles from us.