Skip to main content

Playwright automation scaffold installer for L7 projects

Project description

autoplay-l7

Playwright automation scaffold installer for L7 projects.

Installation

pip install autoplay-l7

Usage

Inside your project root, run:

autoplay init

Behavior

  • If tests/ exists → installs scaffold into tests/automation/
  • If tests/automation/ already exists → merges scaffold files into it (existing files are not deleted)
  • If no tests/ folder exists → creates tests/automation/ with the full scaffold

Options

autoplay init [--target DIR]

  --target DIR   Project root to install into (default: current directory)

Example

cd my-project/
autoplay init
# → tests/automation/ is created or updated

What gets installed

tests/automation/
├── conftest.py
├── pytest.ini
├── requirements.txt
├── playwright.sh
├── utils/
│   ├── commands.py
│   ├── networks.py
│   └── utility_functions.py
├── pages/
│   ├── base_page.py
│   ├── homepage.py
│   └── ...
├── e2e/
│   ├── base_tc.py
│   ├── placeholder/
│   └── Test case Templates/
└── fixtures/
    └── index_seed.yml

Configuration

Port & Host

The automation connects to your app using environment variables. The defaults are defined in tests/automation/pages/base_page.py:

DEFAULT_PORT = "8002"

HOST = os.getenv("ESP_HOST", "localhost")
PORT = os.getenv("ESP_PORT", DEFAULT_PORT)

To change the port, update DEFAULT_PORT in base_page.py to match the port exposed by your Docker container:

DEFAULT_PORT = "8080"  # replace with your Docker port

This single change propagates automatically to:

  • The browser navigation URLs (BasePage.build_url)
  • The esp CLI commands in utils/commands.py
  • The default value in playwright.sh

Alternatively, you can pass the port at runtime without changing any file:

ESP_PORT=8080 ./playwright.sh -t "e2e/placeholder/placeholder.py"

Or for Docker mode:

ESP_HOST=localhost ESP_PORT=8080 ./playwright.sh -t "e2e/placeholder/placeholder.py" -D

Running tests

cd tests/automation/
./playwright.sh -t "e2e/placeholder/placeholder.py"

For Docker mode:

./playwright.sh -t "e2e/placeholder/placeholder.py" -D

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoplay_l7-0.1.8.tar.gz (37.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoplay_l7-0.1.8-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

Details for the file autoplay_l7-0.1.8.tar.gz.

File metadata

  • Download URL: autoplay_l7-0.1.8.tar.gz
  • Upload date:
  • Size: 37.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for autoplay_l7-0.1.8.tar.gz
Algorithm Hash digest
SHA256 b5bbc18a0d7be8d716db8b61dbb854d21d47e9b2f91ec5ae2197f5ce83f23494
MD5 a20bd2c851196e744e08b35464adfe5e
BLAKE2b-256 9ad8145b7ec3f35e980e3f9312900aca967d4b7be7a7585a480cc88d21174df3

See more details on using hashes here.

File details

Details for the file autoplay_l7-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: autoplay_l7-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 43.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for autoplay_l7-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a5b5382f82d3594c970332e1605cf7df8a7289463165319c28b8dc2e8bd5b8c1
MD5 4063a1ad8d4b9f3f1ea37d312c9a706f
BLAKE2b-256 ae60b8af78832a735103674bc95ac40bccde55054c9958f52bbaf5c5784a9ea9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page