imarenco / nightwatch-record Goto Github PK
View Code? Open in Web Editor NEWVideo recording integrated with Nightwatch
Video recording integrated with Nightwatch
I am using Remote server as the host and remote browser but i see its capturing the vidoe from where i am running the test not the remote host where actual test is running.
my settings
beforeEach: function (browser, done) {
require('nightwatch-record').start(browser, done);
},
afterEach: function (browser, done) {
require('nightwatch-record').stop(browser, done);
}
nightwatch.conf.js file
const config = {
"src_folders": ["tests"],
"output_folder": "build/xxxx/reports",
"custom_commands_path": "commands",
"page_objects_path": "pages",
"globals_path": "globals.js",
"end_session_on_fail": false,
"w3c": false,
"webdriver": {
"default_path_prefix": '/wd/hub'
},
"test_settings": {
"default": {
"launch_url": "${ENDPOINT}",
"selenium_host": "${SELENIUM_HOSTNAME}",
"selenium_port": "${SELENIUM_PORT}",
"silent": true,
"screenshots": {
"enabled": true,
"on_failure": true,
"on_error": false,
"path": "./build/xxxx/screenshots"
},
"videos": {
"fileName": "example",
"nameAfterTest": true,
"format": "mp4",
"enabled": true,
"deleteOnSuccess": false,
"path": "",
"resolution": "1440x900",
"fps": 15,
"input": "",
"videoCodec": "libx264"
},
"globals": {
"browserId": "${BROWSER_ID}",
"region": "${REGION}",
"test_settings": {
"videos": {
"fileName": "example",
"nameAfterTest": true,
"format": "mp4",
"enabled": true,
"deleteOnSuccess": false,
"path": "build/xxxx/vidoes",
"resolution": "1440x900",
"fps": 15,
"input": "",
"videoCodec": "libx264"
}
}
},
},
Added all pre-sets specified in the readme, but still getting the following err(with verbose output):
INFO Request: POST /wd/hub/session
- data: {"desiredCapabilities":{"browserName":"chrome","javascriptEnabled":true,"acceptSslCerts":true,"platform":"ANY","name":"urlIterationTestSuite"}}
- headers: {"Content-Type":"application/json; charset=utf-8","Content-Length":143}
✖ Error: spawn ffmpeg ENOENT
at _errnoException (util.js:1019:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:192:19)
at onErrorNT (internal/child_process.js:374:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
WARN ✖ Error: spawn ffmpeg ENOENT
INFO FINISHED
LOG → Completed command end (3 ms)
INFO FINISHED
LOG → Completed command end (2 ms)
FAILED: 1 errors (20ms)
_________________________________________________
TEST FAILURE: 1 error during execution, 0 assertions failed, 0 passed. (256ms)
✖ tests_part_3/urlIteration
- urlIteration (20ms)
Error retrieving a new session from the selenium server
INFO Selenium process finished.
Hi,
I love this tool. It works great on my Mac but when I get into Ubuntu (where I really need it to work) the videos are getting dramatically sped up. There's an fps setting that gives me about the same speed but looks super choppy (around 20fps) but anything above that starts to speed up the video. Any idea what might be going on?
When run the test , it shows this error.
"videos": { "fileName": "example", // Required field "nameAfterTest": true, "format": "mp4", "enabled": true, "deleteOnSuccess": false, "path": "", "resolution": "1440x900", "fps": 15, "input": "", "videoCodec": "libx264" }
beforeEach: function (browser, done) { require('nightwatch-record').start(browser, done); }, afterEach: function (browser, done) { require('nightwatch-record').stop(browser, done); }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.