AIA E2E Test framework
Selenium, Protractor and Webdriver manager.
Dependencies:Pre-install
yarn
InstallBefore 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
Install
$ yarn install
Usage
- 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
Optional usage params
- Headless
$ --params.headless=true
- Custom base url
$ --params.url=https://www.google.com
- Custom spec
$ --params.specs=specs/spec.js"
Post-install
PS. Fix downloading error issue in webdriver (proxy error)
$ node ./webdriver-fix.js