Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wkjuniordiaz/pytest-web-automation
This repository is part of my personal portfolio as a QA Automation Engineer. It showcases my skills in building automation frameworks from scratch using Selenium, Pytest and Python. The project highlights my expertise in test case design, execution, reporting
https://github.com/wkjuniordiaz/pytest-web-automation
pytest python selenium-python
Last synced: 4 days ago
JSON representation
This repository is part of my personal portfolio as a QA Automation Engineer. It showcases my skills in building automation frameworks from scratch using Selenium, Pytest and Python. The project highlights my expertise in test case design, execution, reporting
- Host: GitHub
- URL: https://github.com/wkjuniordiaz/pytest-web-automation
- Owner: WkjuniorDiaz
- License: mit
- Created: 2024-08-09T00:01:39.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-10-27T23:29:00.000Z (3 months ago)
- Last Synced: 2024-11-16T02:27:10.269Z (2 months ago)
- Topics: pytest, python, selenium-python
- Language: Python
- Homepage:
- Size: 1.07 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Selenium Test Automation Framework with Pytest
## Overview
This repository contains a Selenium-based test automation framework using Pytest. It is designed to facilitate robust and scalable test automation for web applications, following best practices for maintainability and ease of use.## Features
- **Cross-Browser Testing**: Supports multiple browsers (Chrome, Firefox).
- **Page Object Model (POM)**: Enhances test code maintainability.
- **Data-Driven Testing**: Easily integrate data from external sources (e.g., CSV, JSON).
- **Detailed Reporting**: Generates detailed test reports using HTML.## Prerequisites
- Python 3.12 or higher
- Pip (Python package installer)## Installation
1. Clone the repository:
```bash
git clone https://github.com/WkjuniorDiaz/Pytest-Web-Automation.git
```
2. Navigate to the project directory:
```bash
cd your-repo
```
3. Install the required packages:
```bash
pip install pytest
```
```bash
pip install selenium
```## Project Structure
- `tests`: Contains the test cases.
- `pageObjects`: Contains the Page Object Model (POM) classes.
- `utilities`: Stores general methods to use and log configuration.
- `reports`: Directory where test reports are saved.
- `testData`: Contains the data required for the test cases.## Running Tests
### Run All Tests
To execute all test cases:
```bash
pytest
```### Run Specific Test File
To run a specific test file:
```bash
pytest tests/test_your_test_file.py
```### Run Tests with Custom Settings
To specify custom settings, such as the browser:
```bash
pytest --browser_name chrome
```### Generate Reports
To generate a test report:
```bash
pytest --html=reports/report.html
```## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.