This repository's objective is to show how you can configure trace-based tests using Tracetest and Playwright.
- Copy the
.env.template
file to.env
. - Log into the Tracetest app.
- This example is configured to use the OpenTelemetry Collector. Ensure the environment you will be utilizing to run this example is also configured to use the OpenTelemetry Tracing Backend by clicking on Settings, Tracing Backend, OpenTelemetry, and Save.
- Fill out the token and agent API key details by editing your .env file. You can find these values in the Settings area for your environment.
- Run
docker compose up -d
. - Look for the
tracetest-e2e
service in Docker and click on it to view the logs. It will show the results from the trace-based tests that are triggered by the Playwright tests. - Follow the links in the log to view the test runs programmatically created by your Playwright script.