Home »
MCQs »
Cucumber Testing MCQs
Cucumber uses the annotations ___ and ___ to define the hook for each scenario in the step definition file
35. Cucumber uses the annotations ___ and ___ to define the hook for each scenario in the step definition file.
- @Before
- @After
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
Cucumber uses the annotations @Before and @After to define the hook for each scenario in the step definition file.