Skip to content

A Web Automation test project written in python using a Pytest Hybrid Framework.

Notifications You must be signed in to change notification settings

silasfrancis/OrangeHRM-automation-testing_PytestFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing OrangeHRM Demo Application

This project involves the testing of the PIM Module on the OrangeHRM Demo Platform using the Pytest FrameWork

Features

  • Page Object Model
  • HTML Reports
  • Data Driven Testing
  • Automation logs
  • Multiple Browsers Support
  • Parallel Testing

##Test Scenarios

  • Login into the OrangeHRM demo site: https://opensource-demo.orangehrmlive.com/
  • Create Employee
  • Register Employee as an Admin
  • Login as the new employee
  • Update Employee Details
  • Search Employee by Name
  • Search Employee by Id
  • Login via test Data in xlsx file
  • Create employee using test Data in xlsx file

Languages, libraries and tools used

  • Python
  • Pytest
  • pytest-html
  • pytest-xdist
  • Openpyxl
  • Allure-pytest

Installation

To install the required libraries for distributed testing, run the following command in your terminal:

pip install -U pytest
pip install pytest-html
pip install pytest-xdist
pip install openpyxl
pip install allure-pytest

Test Execution

Test Execution

Test Execution commands can be found in the run.bat file located in this respository

Browser Supported:

  • Chrome (--browser chrome)
  • Edge (--browser edge)
  • Firefox (--browser firefox)
e.g.
pytest -s -v --html=Reports/report_login.html testCases/test_login.py --browser chrome

This will run test on Chrome Browser

N/B: If no browser is specified test will be executed on chrome

About

A Web Automation test project written in python using a Pytest Hybrid Framework.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published