join the darkside: selenium testing with nightwatch.js
DESCRIPTION
Learn about the Nightwatch.js project and how to get started using it to write Selenium tests, with JavaScript.TRANSCRIPT
Join The Darksidepresented by seth mclaughlin
Selenium testing with Nightwatch.js
1. Project Overview
2. Features & Limitations
3. Hands On
Tonight’s talk
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 startedprerequisite: node.js
1. Use npm to install nightwatch
2. Download selenium-server-standalone.jar
3. Create Nightwatch config file
4. Create some tests
Resourcesdocumentationhttp://nightwatchjs.org/guide & http://nightwatchjs.org/api
sample codehttps://github.com/sethmcl/join-the-dark-side
nightwatch generator (quick start)https://github.com/sethmcl/generator-selenium-nightwatch
nightwatch page object modelhttps://github.com/sethmcl/nightwatch-pages