Skip to content

This Project is based on Selenium webdriver using Cucumber-JVM as a BDD test framework with TestNG on java language.

Notifications You must be signed in to change notification settings

maazahmedks/Selenium-Cucumber-TestNG-using-Java

Repository files navigation

Selenium-with-Cucumber-TestNG-using-Java

This Project is based on selenium webdriver with Cucumber & TestNG using Java language

Purpose

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.

Technology Stack

  • Java
  • Cucumber
  • TestNG
  • Maven
  • POM

Prerequisites & Versions

  • Java 11 - Java Dev Kit
  • Maven 3.6.1 - Dependency Manager
  • IntelliJ IDEA - IDE
  • Cucumber Plugin - For IntelliJ IDE

Project Structure

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.

Execute Tests

To run tests, simply run: RunTestNew.java file and it will run the feature file of login page.

About

This Project is based on Selenium webdriver using Cucumber-JVM as a BDD test framework with TestNG on java language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •