Skip to main content

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

Release files for autoplay-l7 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autoplay-l7 0.1.10
File Size Uploaded
autoplay_l7-0.1.10.tar.gz 37.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autoplay-l7 0.1.10
File Interpreter ABI Platform
autoplay_l7-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 80.2 kB

Release files / autoplay_l7-0.1.10.tar.gz

Download URL autoplay_l7-0.1.10.tar.gz
Size 37.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c959ff6605a94bff41056e2eef5e566d06d1dc39d2915fb2c236eb5fcaf2265e
BLAKE2b-256 checksum
How to use checksums
3c0b4f935292a533431d37fc1b3840b4f0adc97f1756f821bc02896c49b47dc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / autoplay_l7-0.1.10-py3-none-any.whl

Download URL autoplay_l7-0.1.10-py3-none-any.whl
Size 42.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcb0c5642985a4ebe4fb8e88e1d4da22944cd47b4ece1f73ae3dec361408570d
BLAKE2b-256 checksum
How to use checksums
66abe88edaf2fc195c02507572701f5b9333e549358d2987327ca923eeacf9b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page