Code Monkey home page Code Monkey logo

saucelab-web-automation's Introduction

Sauce-lab-web-automation

Requirements

  • Any computer: Mac, Windows, Linux
  • Node 12.0.0+ (LTS)
  • git
  • Docker

About project

  • Cypress is used as Test automation framework
  • Behavior Driven Development (BDD), Cucumber is implemented
  • Page object model is used in order to create object repository for storing web elements
  • For reports cucumber-html-reporter is used
  • Docker for containerised environment
  • Cypress parallel is implemented to execute test in parallel
  • cucumber-json-merge is used to consolidate test
  • Used chai-sorted assertion

In order to get the code and install dependencies

  • git clone http://[email protected]/capmo-gmbh/secret-sauce-mtofgl
  • cd secret-sauce-mtofgl
  • npm install

Enter the following commands in terminal in order to execute test on chrome browser locally

  • npm run test:chromeTest

Enter the following command to visulaize test execution report

  • npm run TestExecutionreport

Enter the following commands in terminal in order to execute test on electron browser locally

  • npm run test:electronTest

Enter the following command to visulaize test execution report

  • npm run TestExecutionreport

Following is the report path

./reports/cucumber-htmlreport.html

Enter the following commands to run automated test inside docker container

  • docker run -it -v $PWD:/e2e -w /e2e --entrypoint=/bin/bash cypress/included:7.5.0
  • npm install -g cucumber-json-merge
  • npm run test:chromeTest
  • npm run TestExecutionreport

Electron test

npm run test:electronTest npm run TestExecutionreport

Screenshots

failed test screenshot available at: secret-sauce-mtofgl/cypress/screenshots/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.