{"id":24664477,"url":"https://github.com/hbkandhi12/playwright-python-tests","last_synced_at":"2026-04-05T08:32:39.600Z","repository":{"id":269716700,"uuid":"907415627","full_name":"hbkandhi12/playwright-python-tests","owner":"hbkandhi12","description":"Web Test Automation using Python for Beginners :  Playwright + PyTest + Allure + GitHub Actions","archived":false,"fork":false,"pushed_at":"2025-02-05T01:01:31.000Z","size":1373,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T09:47:47.081Z","etag":null,"topics":["allure-report","automation-testing","github-actions","github-secrets","playwright","poetry","pytest","pytest-allure","pytest-playwright","python3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hbkandhi12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-23T14:28:43.000Z","updated_at":"2025-02-05T01:05:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"5484a7c1-698b-4d5c-95f6-72992e9e6850","html_url":"https://github.com/hbkandhi12/playwright-python-tests","commit_stats":null,"previous_names":["hbkandhi12/playwrightpy","hbkandhi12/playwright-python-tests"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hbkandhi12/playwright-python-tests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hbkandhi12%2Fplaywright-python-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hbkandhi12%2Fplaywright-python-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hbkandhi12%2Fplaywright-python-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hbkandhi12%2Fplaywright-python-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hbkandhi12","download_url":"https://codeload.github.com/hbkandhi12/playwright-python-tests/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hbkandhi12%2Fplaywright-python-tests/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265786554,"owners_count":23828282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["allure-report","automation-testing","github-actions","github-secrets","playwright","poetry","pytest","pytest-allure","pytest-playwright","python3"],"created_at":"2025-01-26T06:13:13.074Z","updated_at":"2025-12-30T21:07:14.111Z","avatar_url":"https://github.com/hbkandhi12.png","language":"JavaScript","readme":"# Playwright-Python-tests - Automated Testing with Playwright \u0026 Python\n\n![GitHub stars](https://img.shields.io/github/stars/hbkandhi12/playwright-python-tests?style=social)\n![GitHub forks](https://img.shields.io/github/forks/hbkandhi12/playwright-python-tests?style=social)\n![GitHub issues](https://img.shields.io/github/issues/hbkandhi12/playwright-python-tests)\n\nAutomate your web testing using **Playwright** and **Python**. This project provides end-to-end testing capabilities with **pytest** and **Playwright** for modern web applications.\n\n---\n\n## 🚀 Features\n- ✅ **Fast \u0026 Reliable Browser Automation** with Playwright\n- ✅ **Headless Mode** for running tests in the background\n- ✅ **Cross-Browser Support** (Chromium, Firefox, WebKit)\n- ✅ **Easy Configuration** using `pytest`\n- ✅ **Parallel Test Execution**\n- ✅ **Allure Reports for Test Insights**\n\n---\n\n## 📌 Prerequisites\nMake sure you have the following installed:\n- Python 3.7+\n- Node.js (for Playwright CLI)\n- `poetry` package manager\n\n---\n\n## ⚙️ Installation\nClone the repository and install dependencies:\n```bash\n# Clone the repository\ngit clone https://github.com/hbkandhi12/playwright-python-tests.git\ncd playwright-python-tests\n\n# Install dependencies using Poetry\npoetry install\n\n# Install Playwright browsers\npoetry run playwright install\n```\n\n---\n\n## 🚀 Running Tests\nRun Playwright tests using `pytest`:\n```bash\npoetry run pytest --headed  # Runs tests with a visible browser\npoetry run pytest --headless  # Runs tests in headless mode (faster)\n```\n\nRun tests in parallel:\n```bash\npoetry run pytest -n auto  # Runs tests in parallel using multiple CPU cores\n```\n\nGenerate an **Allure Report**:\n```bash\npoetry run pytest --alluredir=allure-results\npoetry run allure generate allure-results -o allure-report --clean\n```\nYou can view the latest test results in the [Allure Test Report]\n```bash\n\n## Build Status\n\n![Build Status](https://img.shields.io/github/workflow/status/hbkandhi12/playwright-python-tests/Playwright%20-%20Pytest%20automation%20suite)\n\n## Allure Test Report\n\nYou can view the latest test results in the [Allure Test Report](https://hbkandhi12.github.io/playwright-python-tests).\n\n```\n---\n\n## 📁 Project Structure\n```\nplaywright-python-tests/\n│── tests/\n│   ├── test_login.py       # Login page test cases\n│   ├── test_checkout.py    # Checkout workflow tests\n│\n│── pages/\n│   ├── login_page.py       # Page Object Model for login page\n│   ├── inventory_page.py   # Page Object Model for inventory\n│\n│── conftest.py             # Pytest fixtures\n│── pyproject.toml          # Poetry configuration file\n│── README.md               # Project documentation\n```\n\n---\n\n## 🛠️ GitHub Actions for Allure Reports\nTo automatically generate and deploy **Allure Reports** on GitHub Pages, add the following **GitHub Actions workflow**:\n\nCreate `.github/workflows/allure-report.yml` and add:\n```yaml\nname: Playwright Tests \u0026 Allure Report\n\non: [push, pull_request]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v3\n\n      - name: Set up Python\n        uses: actions/setup-python@v4\n        with:\n          python-version: '3.10'\n\n      - name: Install Poetry\n        run: pip install poetry\n\n      - name: Install dependencies\n        run: poetry install\n\n      - name: Install Playwright browsers\n        run: poetry run playwright install\n\n      - name: Run tests and generate Allure results\n        run: poetry run pytest --alluredir=allure-results\n\n      - name: Generate Allure Report\n        run: |\n          poetry run allure generate allure-results -o allure-report --clean\n\n      - name: Deploy Allure Report to GitHub Pages\n        uses: peaceiris/actions-gh-pages@v3\n        with:\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n          publish_dir: ./allure-report\n```\n\nMake sure GitHub Pages is enabled in your repo settings under **Settings \u003e Pages** and set it to deploy from `gh-pages` branch.\n\n---\n\n## 🛠️ Contributing\nWant to improve this project? Contributions are welcome! 🚀\n\n### Steps to Contribute:\n1. Fork the repository\n2. Create a new branch (`feature-branch`)\n3. Commit your changes (`git commit -m 'Add new feature'`)\n4. Push to the branch (`git push origin feature-branch`)\n5. Open a **Pull Request**\n\n---\n\n## 📢 Community \u0026 Support\nHave a question or feature request? **Create an issue** or start a **GitHub discussion**!\n\n- 📌 **Issues**: [Submit here](https://github.com/hbkandhi12/playwright-python-tests/issues)\n- 💬 **Discussions**: [Join here](https://github.com/hbkandhi12/playwright-python-tests/discussions)\n\n---\n\n## 📜 License\nThis project is licensed under the **MIT License**.\n\n---\n\n### ⭐ If you find this project helpful, please give it a **star** to support development! ⭐\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhbkandhi12%2Fplaywright-python-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhbkandhi12%2Fplaywright-python-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhbkandhi12%2Fplaywright-python-tests/lists"}