Skip to content

cihat-kose/campus-ui-bdd-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

135 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Campus UI BDD Tests

Cucumber Selenium TestNG Maven Java

Table of Contents

  1. About the Project
  2. Key Benefits
  3. Features
  4. Installation
  5. Configuration
  6. Usage
  7. Folder Structure
  8. Dependencies
  9. Contributors
  10. License

About the Project

Campus UI BDD Tests is an automated test suite designed to test the Campus application on test.mersys.io.

This framework utilizes:

  • Selenium WebDriver for browser automation
  • Cucumber (BDD) for behavior-driven testing
  • TestNG for test execution and reporting
  • Maven for dependency management

The main goal of the project is to ensure the stability and accuracy of the Campus application by automating functional and regression tests.


Key Benefits

  • Behavior-Driven Development (BDD) using Cucumber
  • Comprehensive UI Testing with Selenium
  • Automated Regression Testing
  • Detailed Reporting with Extent Reports
  • Easy Configuration & Scalability

Features

  • Login Automation
  • User Management (Add/Edit/Delete)
  • Human Resources Module Testing
  • Bank Account Setup
  • Grade Levels Setup
  • Discount Functionality Tests

Installation

Prerequisites:

  • Install Java 21
  • Install Maven
  • Install IntelliJ IDEA (or another preferred IDE)

Steps:

Option 1: Command Line Installation

  1. Clone the repository:
    git clone https://github.com/cihat-kose/campus-ui-bdd-tests.git
    cd campus-ui-bdd-tests
  2. Install dependencies:
    mvn clean install
  3. Run tests:
    mvn test

Option 2: IntelliJ IDEA Installation

  1. Open IntelliJ IDEA.
  2. Select File > New > Project from Version Control.
  3. Enter the repository URL and clone the project.
  4. Open the pom.xml file, and IntelliJ should automatically detect and import dependencies.
  5. To run tests, navigate to src/test/java/runners/TestRunnerAll.java and run it directly.

Configuration

  • cucumber.properties:
    cucumber.publish.quiet=true
  • extent.properties:
    extent.reporter.spark.start=true
    extent.reporter.spark.out=test-output/SparkReport/Spark.html

Usage

To execute all tests, run:

mvn test

Or execute a specific runner in src/test/java/runners/ from your IDE.


Folder Structure

campus-ui-bdd-tests/
│
└── src
    ├── test
    │   ├── java
    │   │   ├── featureFiles  # Cucumber Feature Files
    │   │   ├── pages         # Page Object Model (POM) Classes
    │   │   ├── runners       # Test Runners
    │   │   ├── stepDefinitions  # Step Definitions
    │   │   └── utilities     # Utility Classes
    │   ├── resources
    │   │   ├── cucumber.properties
    │   │   ├── extent.properties
    │   │   └── CampusTestCases.xlsx
    │   └── pom.xml

Dependencies

The dependencies for this project are managed in pom.xml:

  • Selenium
  • Cucumber-Java
  • TestNG
  • Apache POI
  • ExtentReports

Contributors


License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Automated UI Testing for Campus Application using Selenium, Cucumber, TestNG, and Maven.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors