Comments (5)
Can you provide some sort of reproducible example? As you can see this log doesn't help at all to guess where a bug might be located. Could be this library or your environment. Without more information it will be impossible to investigate this problem.
from wdio-video-reporter.
I'm running tests in a docker container.
I reproduced the environment in a new project https://github.com/LikaKse/wdio-template .
Without the tested site located on the local network, I can't reproduce the error.
I managed to collect more logs.
stdout.txt
wdio-0-0-Video-reporter.log
What other information could be useful to you?
from wdio-video-reporter.
Thanks for providing the information. I currently don't have much time to look into this but if anyone can help to investigate, this would be much appreciated!
from wdio-video-reporter.
Exception generated by browser.saveScreenshot at index.js#L113 was not handled by "try catch" block, that leads to whole promise chain fails with warnings:
[0-0] (node:541) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
[0-0] (node:541) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 3)
I replaced "try catch" statement with ".catch(()=>{})" and sent a patch to @LikaKse
So we can catch an actual error:
Got exception "unknown error: cannot activate web view
(Session info: headless chrome=96.0.4664.110)"
#0 0x55fc304a7ee3 <unknown>
#1 0x55fc2ff75608 <unknown>
#2 0x55fc2ff65e83 <unknown>
#3 0x55fc2ff59779 <unknown>
#4 0x55fc2ffe8aa9 <unknown>
#5 0x55fc2ffc9272 <unknown>
#6 0x55fc2ffdc3bc <unknown>
#7 0x55fc2ffc9163 <unknown>
#8 0x55fc2ff9ebfc <unknown>
#9 0x55fc2ff9fc05 <unknown>
#10 0x55fc304d9baa <unknown>
#11 0x55fc304ef651 <unknown>
#12 0x55fc304dab05 <unknown>
#13 0x55fc304f0a68 <unknown>
#14 0x55fc304cf05f <unknown>
#15 0x55fc3050b818 <unknown>
#16 0x55fc3050b998 <unknown>
#17 0x55fc30526eed <unknown>
#18 0x7fe2fbf6bfa3 <unknown>
at Browser.<anonymous> (/e2e/node_modules/@wdio/utils/build/shim.js:270:24)
at Video.onAfterCommand (/e2e/node_modules/wdio-video-reporter/src/index.js:113:9)
at Video.emit (node:events:381:22)
at Video.emit (node:domain:470:12)
at /e2e/node_modules/@wdio/runner/build/reporter.js:36:56
at Array.forEach (<anonymous>)
at BaseReporter.emit (/e2e/node_modules/@wdio/runner/build/reporter.js:36:25)
at EventEmitter.<anonymous> (/e2e/node_modules/@wdio/runner/build/index.js:209:82)
@christian-bromann can you take a closer look at this "try catch" statements index.js#L111 index.js#L171 ? Why them don't catch an exception in a desired way?
from wdio-video-reporter.
"unknown error: cannot activate web view" fixed by increasing the resources available to the container and setting the following arguments to chrome:
args: ["window-size=1920,1080",
"--headless",
"--no-sandbox",
"--disable-gpu",
"--disable-extensions",
"--dns-prefetch-disable",
"--disable-infobars",
"--disable-browser-side-navigation",
"--disable-dev-shm-usage"
],
Thank @ginta1337 for your help in debugging
from wdio-video-reporter.
Related Issues (20)
- CJS build is broken HOT 7
- When integrated with cucumber, the video is attached but cannot be watched HOT 1
- Getting blank video in Allure report using wdio-video-reporter lib HOT 4
- abortTime exceeded while waiting for videos to exist. videoRenderTimeout triggered before ffmpeg had a chance to wrap up HOT 11
- TypeError: browser.isAlertOpen is not a function while executing test script in Edge browser HOT 4
- Request failed with status 404 due to no such alert: no such alert HOT 25
- [🐛 Bug]: Stoping forerver in cli with message "DevTools listening on ws://127.0.0.1:65229/devtools/browser/..." when using wdio-video-reporter HOT 2
- Add e2e tests to verify integration with Allure reporter works
- Video reporter is not working on new project HOT 4
- remake a package from CommonJS to ES6 (rid out of files with .mjs extension) HOT 3
- [🐛Bug]: Error in console `ENOENT: no such file or directory, open Video-reporter.log` after run tests HOT 7
- Get error ffmpeg when running wdio-video-reporter in jenkins and centos HOT 7
- Video Reporter not working HOT 4
- How to remove logs? HOT 2
- videoRenderTimeout triggered, not all videos finished writing to disk before patching Allure HOT 4
- Videos generated are not attached to an allure report if using Mocha before / beforeEach hooks HOT 1
- Generated videos are incomplete if there are unfulfilled frames HOT 2
- Bypass screenshots when the video reporter is enabled HOT 2
- Frames from a previous test/suite are being added to the next test/suite HOT 2
- Proposal: Add option to only record last failed test when using specFileRetries HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wdio-video-reporter.