Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hypersequent/bistro-e2e-python

Repository files navigation

E2E Tests for Bistro Delivery (Python)

This repository contains end-to-end tests for Bistro Delivery, implemented using Playwright for Python with pytest.

Prerequisites: Python 3.13+

Getting Started

  1. Clone the repository:

    git clone git@github.com:Hypersequent/bistro-e2e-python.git
    cd bistro-e2e-python
  2. Create and activate a virtual environment:

    python3 -m venv .venv
    source .venv/bin/activate
  3. Install dependencies:

    pip install -e ".[dev]"
  4. Install Playwright browsers:

    playwright install --with-deps

Running Tests

Basic Test Execution

pytest --browser chromium -v # Run tests in Chromium
pytest --browser chromium -v --headed # Run tests in headed mode

Upload testing results to QA Sphere

  1. Add your QA Sphere credentials to a .qaspherecli file or .env:

    QAS_TOKEN=<QA Sphere API Token>
    # Get your token in QA Sphere -> Settings -> API Keys
    QAS_URL=<QA Sphere Company URL>
    # Example: https://qasdemo.eu2.qasphere.com
  2. Upload results:

    npx qas-cli junit-upload --project-code BD --attachments junit-results/results.xml

Additional Commands

Different browsers:

pytest --browser chromium -v # Run tests in Chromium
pytest --browser firefox -v # Run tests in Firefox
pytest --browser webkit -v # Run tests in WebKit

Linting and formatting:

ruff check tests/ utils/ # Check for lint errors
ruff format tests/ utils/ # Format code

License

This project is licensed under the 0BSD License - see the LICENSE file for details.


Maintained by Hypersequent

About

E2E tests for Bistro Delivery using Playwright for Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /