Skip to content

This repository contains automated tests for the OrangeHRM website using Selenium WebDriver and TestNG framework. The tests are designed to perform various actions on the website, such as logging in, creating and editing employee records, and verifying the functionality of different modules. and also attached Allure Reports.

Notifications You must be signed in to change notification settings

touhid-96/OrangeHRM-Automation-Selenium-TestNG-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OrangeHRM Automation Selenium TestNG Project

Scenario

  • Login as a admin to https://opensource-demo.orangehrmlive.com/
  • Go to PIM menu and create a new employee. Save the employee firstname, lastname, employeeid, username and password into JSONArray file. Generate random password which meets following criteria: For a strong password, please use a hard to guess combination of text with upper- and lower-case characters, symbols and numbers. Assert if employee is created successfully.
  • Now go to the dashboard again and search by the employee id to check if the employee is found
  • Now go to the Directory menu and search by employee name and check if the employee is found
  • Logout the session.
  • Now login with the newly created employee creds
  • Assert your full name is showing besides the profile icon.
  • Go to my info
  • Scroll down and select Gender and Blood Type as O+ and save it. Then logout the user.
  • Create a smoke suite configuration which will run only following features (positive cases only):
    • Login to admin
    • search by the employee id if found
    • logout admin and login to the employee id you created last
    • Update the blood Group as AB-
    • Logout the user

Technology and Tool Used

  • Selenium Webdriver
  • TestNG
  • Gradle
  • Java
  • JavaFaker
  • Simple JSON
  • Allure Report
  • Intellij idea

Prerequisite

  • JDK 11 or higher
  • java IDE
  • Configure environment variable for Java, Gradle and Allure Report

Website

  • https://opensource-demo.orangehrmlive.com/

How to run this project

  • Clone the project
  • Execute the following command on the project directory
    gradle clean test -Pusername="Admin" -Ppassword="admin123" -PsuiteName="masterRegressionSuite"
    gradle clean test -Pusername="Admin" -Ppassword="admin123" -PsuiteName="masterSmokeSuite"
    or
    gradle clean test -PsuiteName="masterRegressionSuite"
    gradle clean test -PsuiteName="masterSmokeSuite"

Generate Allure Report

  • Execute the following commands (after finishing the project run)
    allure generate allure-results --clean
    allure serve allure-results --clean

Test Case

https://docs.google.com/spreadsheets/d/1hYoGyGd56HxPzVGG1XJR0346oaRm-l_-PwLAFRE4GxI/edit?usp=drive_link

Video of Automation Output

Regression Test

reg-1.mp4

Smoke Test

smk-1.mp4

Allure Reports

1 overview

2 suites

3 graph

4 behaviors

5 packages

Gradle Report

6 gradle report

About

This repository contains automated tests for the OrangeHRM website using Selenium WebDriver and TestNG framework. The tests are designed to perform various actions on the website, such as logging in, creating and editing employee records, and verifying the functionality of different modules. and also attached Allure Reports.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages