Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
assets
features
src
.editorconfig
.gitignore
Gruntfile.js
package.json
readme.md

readme.md

Automation Testing with Cucumber and Selenium Web Driver in JavaScript

Credit: Matt Bailey's repo was really helpful in figuring this out.

At Interactive, we've done all of our automation testing in Java from the outset. We've thrown around the idea of doing it JavaScript for a while -- though with no traction yet. So, I wanted to play with geting a proof of concept going with Chrome's web driver.

Get Started

  1. To run this code, you'll need to have Chrome installed -- and a copy of Chromedriver. Just add you're copy of Chromedriver to your PATH.

  2. Run npm install to install the node dependencies.

  3. Run grunt test to kick off the test. You should see Chrome popup as the test is executing and then go away.

Output

Test results will output to the terminal:

Test Results

You should also have screen shots from the end of each scenario in the screenshots directory:

Test Scenario Screenshot