tracera-playwright
Tracera Autotest adapter for Playwright for Python (pytest plugin).
Requires Python ≥ 3.11, pytest ≥ 8, Playwright ≥ 1.40, and pytest-playwright ≥ 0.5.
pip install tracera-playwright
How-to: Playwright Python. Shared env / run mode: Autotest adapters.
Setup
The package registers as a pytest plugin automatically. Do not load tracera-pytest and tracera-playwright in the same pytest run.
Enable pytest-playwright screenshot / video / trace — files the runner keeps attach to the Tracera result automatically:
# pytest.ini
addopts = --screenshot only-on-failure --video retain-on-failure --tracing retain-on-failure
from tracera_playwright import id as tracera_id
from tracera_playwright import tracera
@tracera_id(42, "e2e/login")
def test_login(page):
page.goto("/login")
tracera.step("assert signed in", lambda: None)
Bind
@tracera.id(…) (preferred) or tracera.test_case. Optional name may use {param} / {param_id} from pytest parametrize. If name is omitted → item.name.
Skip
Stock pytest.skip. The reason becomes a result comment.
Steps
tracera.step(title, body), @tracera.step("…"), with / async with tracera.step("…"):. Function-scoped fixtures → Setup / Teardown; suite-level fixtures are not reported.
Comments, errors, and attachments
tracera.comment / tracera.error / tracera.attachment — see Autotest adapters. Playwright screenshot / video / trace from the test output dir attach on their own.
Parameterized
@pytest.mark.parametrize + @tracera.id(id, "login as {login}"). Retries: final attempt only; PLAYWRIGHT_RETRY on Env when retry > 0.
Metadata
Release files for tracera-playwright 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tracera_playwright-1.1.0.tar.gz | 12.1 kB | Without provenance | Details for tracera_playwright-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tracera_playwright-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for tracera_playwright-1.1.0-py3-none-any.whl |
Total release size: 26.1 kB
Release files / tracera_playwright-1.1.0.tar.gz
| Download URL | tracera_playwright-1.1.0.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20846bb0d200950fd7bbf8157845e47af8363e5e403b0512908ba643b927c205
|
|
BLAKE2b-256 checksum How to use checksums |
dab3830ce42fb2253f4f5980b08a3ab11766888f20d27fbe3961f83cb2941541
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.5
|
Release files / tracera_playwright-1.1.0-py3-none-any.whl
| Download URL | tracera_playwright-1.1.0-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0ce84a55d855db71512247cc63d66c1dc52bbd0b2785035ef3449c5bf13005b
|
|
BLAKE2b-256 checksum How to use checksums |
7846e4b774048232493f7dcb5a0d800a5e373762199d01b0e9df6bd2c252b681
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.5
|
Security for tracera-playwright 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.