Skip to content

ifilatov/protractor-cucumber-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protractor-cucumber-example

Protractor+CucumberJS testing framework example

Installation

Requirement

  • java
  • nodejs
  • npm

Install/Update packages and getting latest webdriver

  • npm install

Run tests

report (single or consolidated, depends on config) is generated automatically after run and stored in reports/

Example: run tests via npm task

  • npm run sanity

Example: run tests via protractor config

  • protractor configs/sanity.conf.js

Example: run tests on DOCKER via .sh file

  • ./run-sanity-tests.sh

Example: run tests on DOCKER via protractor config

  • docker run --privileged --rm --shm-size 2g -e SCREEN_RES=1600x900x24 -v $(pwd):/protractor ifilatov/protractor-cucumber configs/dockerized.sanity.conf.js

Updating Docker image

  1. update the Dockerfile (responsible for software and versions)
  2. build new image with tag: docker build ifilatov/protractor-cucumber:latest .
  3. push new image to the repo: docker image push ifilatov/protractor-cucumber:latest
  4. update protractor.sh if needed (responsible for execution flow)
  5. update configs/dockerized.*.conf if needed (responsible for protractor settings)

docker repo for this project is https://hub.docker.com/r/ifilatov/protractor-cucumber/

About

Protractor + Cucumber + Docker example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published