Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/silasfrancis/opencart-automation-testing_pytest-framework
A Web Automation test project written in python using Pytest Framework.
https://github.com/silasfrancis/opencart-automation-testing_pytest-framework
automated-testing automation-framework pytest pytest-framework selenium
Last synced: 6 days ago
JSON representation
A Web Automation test project written in python using Pytest Framework.
- Host: GitHub
- URL: https://github.com/silasfrancis/opencart-automation-testing_pytest-framework
- Owner: silasfrancis
- Created: 2024-04-03T23:12:25.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-09-01T18:46:34.000Z (4 months ago)
- Last Synced: 2024-11-07T23:39:43.220Z (about 2 months ago)
- Topics: automated-testing, automation-framework, pytest, pytest-framework, selenium
- Language: HTML
- Homepage:
- Size: 76.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testing OpenCart Demo Application
This project involves the testing of the Customers Module on the OpenCart Demo Platform using the Pytest FrameWork## Features
- Page Object Model
- HTML Reports
- Automation logs
- Multiple Browsers Support
- Parallel Testing## Test Scenarios
- Register User on the OpenCart Demo site
- Login User
- Search for Products and add to Shopping Cart
- Check out Products in the Shopping Cart
## 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:
```bash
pip install -U pytest
pip install pytest-html
pip install pytest-xdist
pip install openpyxl
pip install allure-pytest
```## 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)
```bash
e.g.
pytest -s -v -m "sanity" --html=./Reports/report.html testCases/ --browser chrome
```
> This will run test on Chrome Browser_N/B: If no browser is specified test will be executed on chrome_