Skip to content

teamco/e2e

Repository files navigation

AIA E2E Test framework

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published