We are setting up a Cucumber-TestNG automation framework using Maven. This involves creating feature files, step definitions, and a TestNG Runner class to execute our tests.
1.Folder Structure
- create feature file : /AutomationCucumber/src/test/java/Features/firstProgram.feature
- create TestNG Runner File : /AutomationCucumber/src/test/java/cucumberOptions/TestNGRunner.java
- create stepDefiniations file : /AutomationCucumber/src/test/java/stepDefinitions
2. Creating the Feature File
📌 Path: /AutomationCucumber/src/test/java/Features/firstProgram.feature
A feature file contains test scenarios written in Gherkin language (Given-When-Then syntax).