Playwright traces now supported in Artillery Cloud #3221
hassy
announced in
Announcements
Replies: 1 comment 2 replies
-
Is there any way to capture the traces locally? I have an issue where some third-party asset is causing timeouts, and I am trying to run the tests locally against localhost with network access disabled. For now, I've been doing this, essentially. const randomID = Math.random().toString(36).slice(2);
const tracePath = `traces/trace-${randomID}.zip`;
const context = page.context();
await context.tracing.start({ screenshots: true, snapshots: true });
try {
//code that may fail or the whole test function.
} finally {
console.log('randomID', randomID, 'Error - Trace Captured')
await context.tracing.stop({ path: tracePath });
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Support for Playwright tracing is now generally available in Artillery Cloud.
What is this?
Artillery can now automatically record and upload Playwright traces for failing VUs in a Playwright load test.
Recorded traces are available under the Traces tab in a load test report and can be viewed inline with Playwright Trace Viewer.
Playwright traces can be recorded for any tests - running locally with
artillery run
, or on AWS ECS withartillery run-fargate
.Who is this for?
This feature is for anyone running load tests with Playwright and Artillery. Playwright trace recordings make it easier to debug and fix issues that cause VUs to fail.
How do I get started?
Enable Playwright trace recording in your Artillery config:
Run your Artillery test as normal, with reporting to Artillery Cloud turned on:
artillery run-fargate my-test.yml --record --key $ARTILLERY_CLOUD_KEY
Get your API key via Settings -> API Keys in Artillery Cloud (https://app.artillery.io)
How much does this cost?
This feature is available to all users of Artillery Cloud. For users on the free tier, up to 5 traces can be recorded per test, with trace retention period of 7 days.
Demo
Playwright.Trace.Demo.mp4
Beta Was this translation helpful? Give feedback.
All reactions