Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting blank video in Allure report using wdio-video-reporter lib #104

Open
arpitgoyal43 opened this issue Jun 20, 2023 · 4 comments
Open
Labels
bug Something isn't working help wanted Extra attention is needed Reproducible Example Missing

Comments

@arpitgoyal43
Copy link

arpitgoyal43 commented Jun 20, 2023

Describe the bug
I am using Webdriver.IO v7 for automation testing and configuring the video support in Allure report for failed testcases.
I followed the wdio-video-reporter documentation on Webdriver.IO official website,
but once e2etest case completes it just adds a blank video in the allure report.

To Reproduce
Add below code in wdio.conf.js:

const video = require('wdio-video-reporter');
reporters: [
[video, {
saveAllVideos: true, // If true, also saves videos for successful test cases
videoSlowdownMultiplier: 3, // Higher to get slower videos, lower for faster videos [Value 1-100]
videoRenderTimeout: 5, // Max seconds to wait for a video to finish rendering
}],
[
'allure',
{
outputDir: './results/allure-raw',
disableWebdriverStepsReporting: true,
disableWebdriverScreenshotsReporting: true,
},
],
],

Expected behavior
It should attach a full video of the automation test in allure report

Environment (please complete the following information):
Using below packages:

"wdio-video-reporter": "^3.5.0",
"@types/mocha": "^8.2.0",
"@wdio/allure-reporter": "^7.20.3",
"@wdio/cli": "^7.20.3",
"@wdio/local-runner": "^7.20.3",
"@wdio/mocha-framework": "^7.20.3",

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • OS: Windows 10
  • Browser: Google Chrome

It seems to be a bug with recent webdriver.io versions.
Please take action on this.

@christian-bromann
Copy link
Contributor

Thanks for reporting!

We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers!

@christian-bromann christian-bromann added bug Something isn't working help wanted Extra attention is needed labels Jun 22, 2023
@bhanuagarwal73
Copy link

@arpitgoyal43 increase the reporterSyncTimeout to 30000 default was 5000. In addition increase videoRenderTimeout to around 80 sec

@arpitgoyal43
Copy link
Author

@bhanuagarwal73 : Tried the suggested way, but still getting an empty video. PFA the snapshots of wdio.conf.js

reporters: [
'Spec',
[video, {
reporterSyncTimeout: 3000,
saveAllVideos: true, // If true, also saves videos for successful test cases
videoSlowdownMultiplier: 3, // Higher to get slower videos, lower for faster videos [Value 1-100]
videoRenderTimeout: 80, // Max seconds to wait for a video to finish rendering
}],
[
'allure',
{
reporterSyncTimeout: 3000,
outputDir: './results/allure-raw',
disableWebdriverStepsReporting: true,
disableWebdriverScreenshotsReporting: false,
},
],
],

@christian-bromann
Copy link
Contributor

@arpitgoyal43 mind providing a reproducible example to help us investigate the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed Reproducible Example Missing
Projects
None yet
Development

No branches or pull requests

3 participants