legzy27 / BymilesUIE2E

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ByMiles Test Automation Framework

Overview

Simple E2E tests of get a quick quote

Test Automation

Protractor is an open source end to end testing testing framework.It allows you to create tests that interact with the brower like a real user would, one of the feature of the framework is the ability to wait for page load, limiting the amount of waits and sleep I used in the test suite, plus It incredily flexible I integrated cucumber into it.

Setup and Run Test

  • Install NodeJS

Run Test

  • Clone repo
  • cd in to folder
  • npm install
  • protractor protractor.conf.js and press enter
  • check report folder for HTML Reports

Dependency needed

  • npm protractor-cucumber-framework
  • npm install chai
  • npm install cucumber
  • npm install mocha

Automated tests Improvement

  • Use more await command than sleep command
  • click get quote button is been intercepted need to use unique element
    • expand the page to a certain size
  • Write clean code less duplications
  • Create Page Object Model

About


Languages

Language:JavaScript 95.3%Language:Gherkin 4.7%