teamco / e2e

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AIA E2E Test framework

Dependencies: Selenium, Protractor and Webdriver manager.

Pre-install

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:
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

IDE Configuration

  • Basic test execution via Webstorm configuration picture

  • Webstorm configuration to debug tests picture

  • To start debug press picture

  • Debugger info picture

  • Debugger result (example) picture

About


Languages

Language:JavaScript 99.5%Language:Batchfile 0.5%