This Project is based on selenium webdriver with Cucumber & TestNG using Java language
This project was developed by me to demonstrate how to use Selenium webdriver using Cucumber-JVM as a BDD test framework on java language. It contain all testcases to automate a login page.
- Java
- Cucumber
- TestNG
- Maven
- POM
- Java 11 - Java Dev Kit
- Maven 3.6.1 - Dependency Manager
- IntelliJ IDEA - IDE
- Cucumber Plugin - For IntelliJ IDE
Although this project is a simple demo project but in large projects it plays an important role from the maintability, accessibility, and reusability standpoint. Therfore I have created a different file for each thing so that it can be reusable. Like i created a Pages folder inside java that mantain all the webelement locators. Feature folder contain all the features file, TestRunner folder contain a class which run all the feature files inside Features folder & StepDefs folder contain all the Step defination files which is linked with feature file. You can navigate inside folders to learn more about project structure.
To run tests, simply run: RunTestNew.java file and it will run the feature file of login page.