dysen / protractor-js-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codeship Status for qualityshepherd/protractor-example

Protractor Example

Herein lies an example Protractor project, that includes tests (some quite silly) that aim to illustrate solutions for common issues when writing e2e tests.

Example Protractor project that:

  • Makes use of page objects
  • Runs tests on Sauce Labs
  • Runs multiple browsers at once
  • Runs tests sharded (parallel)
  • Includes examples tests for both Angular, and non-Angular applications
  • Uses protractor-flake to re-run failed tests
  • is written using es6

Setup:

  • Install Node (v6.x.x or later)
  • git clone https://github.com/qualityshepherd/protractor_example
  • npm install to install the project dependencies
  • node_modules/.bin/webdriver-manager update to update drivers (this should be run automagically on install)

Run tests:

  • run tests via plain Protractor node_modules/.bin/protractor conf.js
  • run tests npm test (runs via flake, which re-runs failed tests)
  • run with flake ./flake conf.js
  • 111111run on saucelabs./flake sauceConf.js (add your username/key)

Or if you're a non-reader, watch the video...

Troubleshooting

  • run node -v and make sure your node version is 6.x.x or greater
  • webdriver-manager should have updated on install, but if not, run npm run update to be sure

About


Languages

Language:JavaScript 100.0%