Skip to content

AnnVersh/magic_ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento UI Test Automation

This project contains automated UI tests for the website magento.softwaretestingboard.com.
Tests are written using Python, Pytest, Selenium WebDriver, and follow the Page Object Model design pattern.

Installation

  1. Clone the repository:
git clone https://github.com/AnnVersh/magic-ui.git
cd magic-ui
  1. Create and activate a virtual environment:
python -m venv venv
# macOS/Linux:
source venv/bin/activate
# Windows:
venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt

Running the Tests

To run all tests and generate Allure results:

pytest --alluredir=allure-allure-results	

To run a specific test file:

pytest tests/test_create_new_customer.py

To run a specific test function inside a file:

pytest tests/test_create_new_customer.py::test_successful_registration

Add -v for verbose output:

pytest -v

Allure Report

To view the Allure report in your browser:

allure serve allure-allure-results

If you want to delete old test results without running tests:

# macOS/Linux:
rm -rf allure-allure-results 
# Windows CMD:        
rmdir /s /q allure-allure-results    

About

UI test automation framework built with Selenium and Pytest for testing magento.softwaretestingboard.com.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages