What is Hook in Cucumber? - 0 views
-
anonymous on 09 Aug 19In Cucumber, the hook is the block of code which can be defined with each scenario in step definition file by using the annotation @Before and @After. These @Before and @After annotations create a block in which we can write the code.