Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium UI Testing with Allure Reports

📂 Folder Structure

SeleniumPythonFunctional/
│── tests/                 
│   ├── test_checkout.py   # Selenium checkout test
│   ├── test_login.py      # Selenium login test
│── conftest.py            # Selenium browser setup
│── pytest.ini             # pytest configuration
│── requirements.txt       # Dependencies
│── allure-results/        # Allure test results            
│── README.md              # Project documentation

📌 Prerequisites

Before running the tests, ensure you have the following installed:

Install Dependencies

pip install pytest selenium allure-pytest

or

pip install -r requirements.txt

🚀 Running Tests

Run All Tests

pytest .\tests\test_login.py --alluredir=allure-results

Run a Specific Test (-k)

Run tests that match a keyword:

pytest -k "login" --alluredir=allure-results

👉 This runs tests like test_checkout_process.

Run Tests in a Specific Browser

pytest --browser-type=firefox --alluredir=allure-results

👉 Supports chromium, firefox, edge, and safari.

Run Tests in Headless Mode

pytest --headless --alluredir=allure-results

📊 Viewing Allure Reports

After running tests, generate and open the report:

allure serve allure-results

This launches a web-based report.


⚙️ Advanced Options

Command Description
--headed Run in visible mode
--headless Run in headless mode

Example running in visible mode:

pytest --headed --browser-type=edge --alluredir=allure-results

🎥✅ Results

Selenium.Python.Functional.UI.mp4

🎯 Conclusion

This guide helps you quickly set up, run, and analyze Selenium UI tests with Allure reports. 🚀

About

this is the main repository testing for web automation using selenium

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages