Comments (7)
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!
from wdio-video-reporter.
@christian-bromann I investigated this issue many times. And I think I found the reason.
First, logs are created:
wdio.log, wdio,browser.log, drivers log(chromedriver, geckodriver)
after 2 second logs are created:
Video-reporter.log and rawSeleniumVideoGrabs folder
That's why I think there were cases with bug;
Test run in 58-59 second of some minute, and wdio-0-0-Video-reporter.log
could not be created, since the next minute had already arrived
I have added a temporary solution in wdio.conf.js
, like:
import fs from 'fs'
const logsPath = './logs';
const folderName = moment().format('YYYY-MM-DD_HH-mm');
const folderPath = `${logsPath}/${folderName}`;
fs.mkdirSync(folderPath, { recursive: true });
const allFolders = fs.readdirSync(logsPath);
const sortedFolders = allFolders.sort((a, b) => {
return fs.statSync(`${logsPath}/${b}`).ctime.getTime() - fs.statSync(`${logsPath}/${a}`).ctime.getTime();
});
const latestFolder = sortedFolders[0];
console.log('Latest test folder', latestFolder);
export const config = {
outputDir: `${logsPath}/${latestFolder}`,
In this case, the log folder will be created before each test run.
I think the permanent solution would be to create logs at the same time. Or need to look for other options.
from wdio-video-reporter.
Test run in 58-59 second of some minute, and
wdio-0-0-Video-reporter.log
could not be created, since the next minute had already arrived
So the reports are being overwritten by another test?
from wdio-video-reporter.
So the reports are being overwritten by another test?
In this case, the file is not created and the test fails
from wdio-video-reporter.
How does the test fail due to a non existing log file?
from wdio-video-reporter.
How does the test fail due to a non existing log file?
In this case, I think the error was not that the file does not exist. The problem is that it tried to create a log file in a non-existent folder.
from wdio-video-reporter.
Ah, I think this can be fixed. All contributions would be appreciated!
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
- 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 5
- 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.