---
title: Trace Usage Standard
slug: suite-documentation/trace-usage-standard
docTags: 
createdAt: 2026-07-14T10:18:42.968Z
---

Trace support must be included from the beginning in new Playwright projects. In existing projects, tracing must be started and stopped at hook points that match the framework lifecycle.

**1. Create context:&#x20;**&#x43;reate a new BrowserContext for test isolation.

**2. Start tracing:&#x20;**&#x53;tart recording before creating the Page and before navigation.

**3. Run the test:&#x20;**&#x52;ecord actions, snapshots, and source information.

**4. Stop tracing:&#x20;**&#x50;roduce a uniquely named ZIP file at the end of the execution.

- screenshots, snapshots ve sources seçenekleri açık olmalıdır.
- Tracing must start before the Page is created.
- stop() must always run inside a finally block or the framework after hook.
- Parallel executions must not write to the same file name.
- Trace files generated in CI must be stored as job artifacts or test result attachments.



