Dependencies: Selenium, Protractor and Webdriver manager.
Install yarn
Before you start using Yarn, you'll first need to install it on your system. There are a growing number of different ways to install Yarn:
- Windows
- MacOSX
brew install yarn
- Debian / Ubuntu
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
$ yarn install
- Generate documentation (Output directory: ./docs)
$ yarn run doc
- Webdriver update (via Amdocs proxy)
$ yarn run selenium-update:proxy
- Webdriver start
$ yarn run selenium-start
- Execute all specs
$ ./node_modules/.bin/protractor conf.js
or
$ yarn run e2e
- Headless
$ --params.headless=true
- Custom base url
$ --params.url=https://www.google.com
- Custom spec
$ --params.specs=specs/spec.js"
PS. Fix downloading error issue in webdriver (proxy error)
$ node ./webdriver-fix.js