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.

[Question] Is it possible to get the test's video and screenshot in local machine while executing test on remote machine?

See original GitHub issue

I am running test on a remote machine.

  • Runner used: @playwright/test
  • Playwright version: 1.24.0

The config file is as given below:

const config = {
  testDir: 'tests',
  outputDir: 'my-report-artefacts',
  testMatch: '**/*.spec.js',
  timeout: 60000,
  headless: false,
  workers: 10,
  use: {
    viewport: null,
    screenshots: 'on',
    video: 'on',
    trace: 'on',
  },
  reporter: [ ['html', { outputFolder: 'my-report' }] ],
  projects: [
    {
      name: 'chrome:latest:MacOS Catalina@lambdatest',
      use: {
        viewport: { width: 1920, height: 1080 }
      }
    }
  ]
}

While I am executing the tests in my local machine, I am able to get the video, screenshots and trace of the test. While executing on remote machine, I am getting only trace. The video I am getting is blank. Is there any way to get the video and the screenshots?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mxschmittcommented, Aug 2, 2022

Yes, as of today it’s expected that video/screenshot/tracing won’t work, we’d have to implement the issue above. Please upvote https://github.com/microsoft/playwright/issues/8379, and then it will be added!

Closing as per above.

0reactions
ankur-ltcommented, Sep 14, 2022

@mxschmitt , can you reopen this issue or https://github.com/microsoft/playwright/issues/8379, as the issue regarding getting the test’s video/screenshots is not resolved?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Capture Test Video on Remote Machine in JUnit/Selenium Tests
I want to capture screen video where the tests are running. I tried Monte Media Library but it records video only on Host...
Read more >
How to take Screenshot in Selenium WebDriver - BrowserStack
Learn how to take screenshot in Selenium WebDriver using this step-by-step tutorial to execute your first code with a live example.
Read more >
Guide to Capturing Screenshots in Selenium With Examples
In this article, we're going to deep dive into Selenium Screenshots. Learn different ways to take screenshots in Selenium. See our guide.
Read more >
How to add screenshots to test steps without saving to local ...
How to add screenshots to test steps without saving to local machine in Zephyr for Jira cloud 2.2 and above? Test Step attachment....
Read more >
How to capture/take Selenium Screenshot as Full ... - Tools QA
As we know, one of the primary purposes of automation testing is to reduce manual effort. Therefore, the use of a screenshot captured...
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