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.
- Clone the repository:
git clone https://github.com/AnnVersh/magic-ui.git
cd magic-ui- Create and activate a virtual environment:
python -m venv venv
# macOS/Linux:
source venv/bin/activate
# Windows:
venv\Scripts\activate- Install dependencies:
pip install -r requirements.txtTo run all tests and generate Allure results:
pytest --alluredir=allure-allure-results To run a specific test file:
pytest tests/test_create_new_customer.pyTo run a specific test function inside a file:
pytest tests/test_create_new_customer.py::test_successful_registrationAdd -v for verbose output:
pytest -vTo view the Allure report in your browser:
allure serve allure-allure-resultsIf 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