Join the darkside: Selenium testing with Nightwatch.js

  • Published on
    28-Aug-2014

  • View
    411

  • Download
    15

DESCRIPTION

Learn about the Nightwatch.js project and how to get started using it to write Selenium tests, with JavaScript.

Transcript

  • Join The Darkside presented by seth mclaughlin Selenium testing with Nightwatch.js
  • 1. Project Overview 2. Features & Limitations 3. Hands On Tonights talk
  • Nightwatch.js learn more: www.nightwatchjs.org
  • created by Andrei Rusu @beatfactor learn more: www.linkedin.com/in/beatfactor
  • Selenium WebDriver Web BrowserTest Runner HTTP JAVA JAR Test Script
  • Selenium WebDriver Web BrowserTest Runner HTTP JAVA JAR Test Script
  • Selenium WebDriver Web BrowserTest Runner HTTP JAVA JARNode.js application Test Script Node.js module
  • Features Good documentation Use CSS or XPATH selectors Test runner can execute sequentially or in parallel Test filtering by file name pattern, folders and tags SauceLabs + BrowserStack support Built in JUnit XML reporting Extension model for custom commands
  • (current) Limitations No built-in Page Object Model support Somewhat buggy in places Only one maintainer (beatfactor)
  • ~6,000 downloads per month ~2,000 stars on github ~100 forks on github learn more: www.npmjs.org/package/nightwatch
  • 20 contributors 1 primary contributors (Andrei) 6 pending pull requests (oldest = 4.5.14) 30 open issues 158 closed issues learn more: github.com/beatfactor/nightwatch
  • Get started prerequisite: node.js 1. Use npm to install nightwatch 2. Download selenium-server-standalone.jar 3. Create Nightwatch config file 4. Create some tests
  • Resources documentation http://nightwatchjs.org/guide & http://nightwatchjs.org/api sample code https://github.com/sethmcl/join-the-dark-side nightwatch generator (quick start) https://github.com/sethmcl/generator-selenium-nightwatch nightwatch page object model https://github.com/sethmcl/nightwatch-pages