0

Is there any way to extract list of steps used in a Cucumber .feature file? The steps should be in the format they're defined in the step definition @When / @Given / @Then annotations.

2 Answers 2

1

Use runner class to generate steps with annotations then later fill with java code topass your unit test cases ,Follow this reference link step by step procedure http://www.automationtestinghub.com/cucumber-step-definition/

Sign up to request clarification or add additional context in comments.

Comments

0

We can generate the list of steps by either using the runner class or using the tidy gherkin plugin which is available as extension in chrome enter image description here

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.