Skip to content

prashanth-sams/protractor-cucumber-typescript

Repository files navigation

Protractor Cucumber Typescript

Boilerplate Framework built using Protractor-Cucumber-Typescript tools

Features

  • Page Object Pattern
  • Hooks
  • Parallel testing
  • HTML Reporter
  • Screenshots on failure
  • Loggers
  • TS task scheduler
  • Slack integration
  • Docker integration - Zalenium as a load balancer

Installation

  • Install libraries

    npm install
    npm install -g jake
    
  • Webdriver update lets you download the chrome & gecko driver binaries locally for you!

    npm run webdriver-update
    
  • Optional - start selenium server manually if you don't set directConnect: true

    npm run webdriver-start
    

Test Runner

  • Clean reports, compile .ts to .js scripts, and execute tests

    npm test
    

    or

    bash runner/smoke.sh
    
  • Docker Execution

    run tests from local machine

    docker-compose up --force-recreate
    npm test
    docker-compose down
    

    or

    run tests from docker machine

    docker-compose up -d --force-recreate
    bash docker-executor.sh
    docker-compose down