This repository houses a powerful automated testing framework built with Python, Playwright incorporating Behavior-Driven Development (BDD) principles using Gherkin syntax. The framework is designed for the testing of a WordPress plugin and includes Allure reporting for comprehensive test result analysis.
Playwright Integration: Leverage the Playwright automation tool for seamless browser automation across different web browsers.
BDD Testing: Adopt Behavior-Driven Development by expressing test scenarios in Gherkin syntax. Write clear and concise feature files in the features directory.
Allure Reporting: Generate detailed and visually appealing test reports with Allure, providing insights into test execution, failures, and trends.
Before you begin, ensure you have met the following requirements:
Python 3.10 or higher
Pip (Python package installer)
Playwright (installation instructions here)
Allure (installation instructions here)
To clone the repository, run the following command in your terminal:
git clone https://github.com/vizallati/wp-mudev-qa-task-autotests.git
Navigate to the project directory and install the required dependencies:
cd wp-mudev-qa-task-autotests
pip install -r requirements.txt
Before running the tests edit the settings.yml with respective creds for your WordPress environment
Run the tests using the following command:
pytest tests --alluredir=allure-results
This command will execute the tests and generate Allure report data in the allure-results directory.
To generate and view the Allure report, run the following commands:
allure serve allure-results
This will generate the Allure report and open it in your default web browser.