Git Product home page Git Product logo

nightwatch-record's People

Contributors

imarenco avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

nightwatch-record's Issues

Not working with Remote host/Browser.

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"
}
}
},
},

"Error: spawn ffmpeg ENOENT"

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.

50fps videos speeding up on Ubuntu VM

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?

Cannot read property 'videos' of undefined

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); }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.