question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Expose Trace-Viewer as a static web application available in Playwright documentation page.

See original GitHub issue

Playwright has a CLI command for showing the Trace Viewer web application, that helps visualize the steps a Playwright script executed. This can be useful for debugging broken tests, by visually inspecting why the test broke.

I’d like to avoid the need to download the tracer file for my test session, and viewing my trace via the CLI command, and instead I would like to be able to display such session in a public web app, by providing a url to my tracer log file.

For example, the Trace Viewer could be hosted at the address: https://trace-viewer.playwright.dev/ and I would like to pass a url to my trace log file as a url parameter: ?tracePath=https://some-domain.com/trace_logs.zip. The Trace Viewer web app could then load the file via an XHR request, and allow debugging my Playwright script.

What do you think about such a solution? Would others find it useful? I think that way we could pass artifacts from CI systems directly to the static web app for rendering.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:14
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

8reactions
neil-morrison44commented, Oct 1, 2021

@Evilweed That sounds more like what I was suggesting here https://github.com/microsoft/playwright/issues/9026

You could deploy the traces as pages then link / iframe them into your report rather than a 3rd party website where you still have to upload the trace (which I think is what this issue suggests) or run the cli.

3reactions
pavelfeldmancommented, Nov 9, 2021

This is now done, we’ll provide more details as a part of the release notes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trace Viewer - Playwright
Playwright Trace Viewer is a GUI tool that helps you explore recorded Playwright traces after the script has ran. You can open traces...
Read more >
Playwright End To End Testing Tutorial: A Complete Guide
This Playwright end to end testing tutorial would guide you through its setup just in case you are wondering how to start working...
Read more >
Playwright Trace Viewer | Playwright Tutorial - part 33 - YouTube
Playwright Trace Viewer is a GUI tool that helps exploring recorded Playwright traces after the script ran.Recording a trace:const browser ...
Read more >
Web Test Tools - Software QA Test
Listing of 500 web test tools and management tools - load testing, mobile testing, page speed testing, link checking, html validation, ...
Read more >
GraphQL vs. REST API: Which is better? | Contentstack
This API is designed to help you with query batching and caching by merging ... This is done through either static site generation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found