[Question] Is it possible to get the test's video and screenshot in local machine while executing test on remote machine?
See original GitHub issueI 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:
- Created a year ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@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?