List Headline Image
Updated by neha pandey on Aug 09, 2019
 REPORT
neha pandey neha pandey
Owner
1 items   1 followers   0 votes   0 views

What is Hook in Cucumber?

In 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.

Website at https://www.javatpoint.com/hook-in-cucumber

In 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.