https://github.com/vrun545/orangehrm_with_selenium_python
This repository contains an automated testing framework for Demo OrangeHRM, a popular human resource management system, implemented using Selenium and Python. The framework is testing the OrangeHRM functionalities through a series of test cases, leveraging the Page Object Model (POM) design pattern for enhanced maintainability and scalability.
https://github.com/vrun545/orangehrm_with_selenium_python
pageobjectmodel pytest python3 report selenium webdriver
Last synced: 2 months ago
JSON representation
This repository contains an automated testing framework for Demo OrangeHRM, a popular human resource management system, implemented using Selenium and Python. The framework is testing the OrangeHRM functionalities through a series of test cases, leveraging the Page Object Model (POM) design pattern for enhanced maintainability and scalability.
- Host: GitHub
- URL: https://github.com/vrun545/orangehrm_with_selenium_python
- Owner: vrun545
- Created: 2024-05-08T17:14:15.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-15T13:41:20.000Z (about 1 year ago)
- Last Synced: 2025-01-26T06:28:04.335Z (4 months ago)
- Topics: pageobjectmodel, pytest, python3, report, selenium, webdriver
- Language: HTML
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Selenium Python Automation Project
This project demonstrates automated testing of the [OrangeHRM](https://opensource-demo.orangehrmlive.com/web/index.php/auth/login) website using Selenium with Python and pytest framework. The tests are organized using the Page Object Model (POM) design pattern for improved maintainability and readability.
## Introduction
Automated testing is crucial for ensuring the quality and stability of web applications. This project demonstrates how to automate testing of the OrangeHRM website using Selenium WebDriver, Python, and pytest framework. By implementing the Page Object Model (POM), we organize our tests into reusable components, making the test suite more maintainable and scalable.
## Features
- Automated testing of login functionality.
- Demonstrates usage of POM design pattern.
- Generates HTML reports for test execution results.## Prerequisites
Before running the tests, ensure you have the following installed:
- Python (version 3.7 or higher)
- pip (Python package installer)
- Chrome or Firefox browser
- ChromeDriver or GeckoDriver (for running tests in Chrome or Firefox)## Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/your-repo.git
```2. Navigate to the project directory:
```bash
cd your-repo
```3. Install the required Python packages:
```bash
pip install -r requirements.txt
```## Usage
To run the tests, use the following command:
```bash
pytest -v
```This command will execute all the test cases and generate HTML reports in the `htmlReports` directory.
## Contributing
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or create a pull request.
## License
This project is licensed under the [MIT License](LICENSE).
---
Feel free to customize the README.md file according to your project's specific details and requirements. You can add more sections or information as needed.