Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nightwatch-video-recorder

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nightwatch-video-recorder

Record videos of Nightwatch.js test sessions. Uses ffmpeg to capture a (remote) webdriver desktop screen.

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
175
increased by2.34%
Maintainers
1
Weekly downloads
 
Created
Source

Nightwatch.js video screen recording via ffmpeg

Record videos of Nightwatch.js test sessions.
Uses ffmpeg to capture a (remote) webdriver desktop screen.

Install

npm install nightwatch-video-recorder

Usage

Add the following beforeEach/afterEach hooks:

module.exports = {
  beforeEach: function (browser, done) {
    require('nightwatch-video-recorder').start(browser, done)
  },
  afterEach: function (browser, done) {
    require('nightwatch-video-recorder').stop(browser, done)
  }
}

Enable the video screen recording in your test settings:

{
  "test_settings": {
    "default": {
      "videos": {
        "enabled": true,          // Enable video recordings
        "delete_on_pass": true,   // Delete video when tests pass
        "dir": "reports/videos",  // Video directory
        "ext": ".mp4",            // Video file extension
        "resolution": "1440x900", // Display resolution
        "fps": 15,                // Frames per second
        "hostname": "localhost",  // X11 server hostname
        "display": "0",           // X11 server display
        "pixelFormat": "yuv420p"  // Output pixel format
      }
    }
  }
}

See blueimp/nightwatch for a complete setup example.

License

Released under the MIT license.

Author

Sebastian Tschan

Keywords

FAQs

Package last updated on 19 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc