Skip to content

mookto/HRMS_Software_BDD-With-Maven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HRMS_Software_BDD-With-Maven

Java TestNG Maven ExtentReports


Project Overview

This project is an automated testing suite for HRMS-Solution-Automation web application using Selenium WebDriver with TestNG. It includes test cases for login, employee-based events, leave management, payroll, attendance, report creation etc.

🛠 Technology Stack

  • Java
  • Selenium WebDriver
  • TestNG
  • Maven
  • ExtentReports

Project Structure

├── src/
│   ├── main/
│   │   ├── java/
│   ├── test/                        # All tests are in this folder
│   │   ├── java/
│   │   │   ├── pages/               # Page Object Model (POM) Classes
│   │   │   ├── setup/               # WebDriver Setup
│   │   │   ├── testrunner/          # TestNG Test Runner Classes
│   │   │   ├── stepdefs/               # all kinds of step definitions files should be here 
│   │   ├── resources/
│   │   │   ├── Features/         # Keeps generated screenshots for faild tests (Ignored in git)
│   │   │   ├── suites/              # Test suites
│   │   │   ├── config.properties    # Keeps config items like base URL
│   │   │   ├── Users.json           # User credentials file
├── .gitignore                       # GitIgnore file
├── pom.xml                     # Gradle build file
├── README.md                        # Project Documentation

Prerequisites

Before running the project, ensure you have the following installed:

  • Java 17+
  • Make sure the maven bin folder is defined in system env path.
  • Git (optional, for version control)
  • Make sure system has installed latest version of Allure for generating html report

Installation & Setup

  1. Clone the repository:

    git clone https://github.com/mookto/HRMS-Solution-Automation-Maven.git
    

    Running Tests

  • Run all tests:
    mvn clean install
    mvn clean test

Generating cucumber HTML Report

  • After running all tests, check the report in the specific path ,
  • The Path target/cucumber-html-report

Test Cases Overview

1. Login Tests

  • Valid user login (LoginTestRunner.java)
  • Verify dashboard redirection after login

2. Employee Management

  • Create a new employee (EmployeeManagementTestRunner.java)
  • Edit existing employee details
  • Assign a supervisor
  • Edit a supervisor
  • Close an employee

3. Leave Management

  • Apply for leave (LeaveManagementTestRunner.java)
  • Implementation pending...

4. Attendance Management

  • Manage employee attendance (AttendanceManagementTestRunner.java)
  • Implementation pending...

5. Official Letter Management

  • Manage official letter (OfficialLetterTestRunner.java)
  • Create official letter type
  • Create official letter
  • Implementation pending...

6. Payroll Management

  • Manage payroll (PayrollManagementTestRunner.java)
  • Implementation pending...

7. Report Management

  • Manage reports (ReportsTestRunner.java)
  • Implementation pending...

8. Roster Management

  • Manage payroll (RosterManagementTestRunner.java)
  • Implementation pending...

9. Settings Management

  • Manage payroll (SettingsTestRunner.java)
  • Implementation pending...

Contributing

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature-branch
  3. Commit changes:
    git commit -m "Add new feature"
  4. Push and create a pull request.

Future Improvements

  • Implement CI/CD integration
  • Enhance reporting with Allure Reports

Contributors

  • Mahedi Hasan

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors