This project is a proof of concept (POC) demonstrating the integration of Selenium for browser automation with Poetry for dependency management and packaging. It showcases how to set up and manage a Python project using modern tools and practices, including automated testing with Pytest and generating detailed test reports with Allure.
The primary goal of this project is to provide a clear and concise example of how to:
- Use Poetry to manage project dependencies and virtual environments.
- Automate browser interactions and tests using Selenium.
- Write and organize tests using Pytest.
- Generate and visualize test reports with Allure.
By following this POC, developers can quickly get started with these tools and apply similar setups to their own projects.
-
Clone the repository:
git clone [email protected]:mateoagudgarcia/sauce-labs-selenium-pytest.git cd sauce-labs-selenium-pytest
-
Activate the environment using Poetry:
poetry activate env
-
Install the dependencies using Poetry:
poetry install
To run the tests, use the following command:
poetry run pytest
Last 30 builds deployed using GH Pages: Sauce Labs - Selenium & Pytest - Github Page
Generate and open the Allure report by running the provided script
./create_reports.sh
poc-poetry-selenium/
├── tests/
│ ├── __init__.py
│ └── test_selenium.py
├── pyproject.toml
└── README.md