Hi All,
I am in the process the leaning the BDD framework and just want to know that, how to get the step name and scenario names which are defined in .feature file through java programming.
For Example,
Below is the feature file.
-----------------------------------
Feature: validate Home page
Scenario: Verify HomePage Title
WHEN Open the Browser
THEN Verify the Title of Home Page
Now, I want to retrieve the Step,Scenario and Feature Names using the java code.
Is there any annotation or method to call before/after every step definition. I know it might be very silly question but it is very useful for me to generate reports.
Thanks in advance.