Code Monkey home page Code Monkey logo

conduit's Introduction

conduit CircleCI

Overview

  • This is a simple project to showcase Web-UI & Api Test Automation using Cypress
  • Skills: Setup Automation Framework from scratch for Web-UI + Api testing
  • Languages: JavaScript/Node.JS
  • SCM: Git
  • Build/Dependency Management: Cypress/npm
  • Assertion Lib: Cypress, Chai
  • CI/CD: Cypress CircleCI Orb

Setup

  • Download conduit project repo from GitHub
  • Install latest Node.JS
  • Install Git
  • Install Visual Studio Code
  • Navigate to Project Directory in Terminal
  • Run npm install
  • Run npm install cypress --save-dev

Execute Tests

  • Run All Tests in Headless Electron npm run test
  • Run All Tests in Headless Chrome npm run test:chrome:headless
  • Run All Tests in Headed Chrome npm run test:chrome:headed
  • Run Web-UI Tests npm run test:web
  • Run API Tests npm run test:api
  • Generate JSON Report npx mochawesome-merge mochawesome-report/*.json > mochawesome.json
  • Generate HTML Report npx marge mochawesome.json

Test Scenarios - Test Report Summary

Web-UI Functional Tests
    Test New User SignUp
      √ Should NOT SignUp with existing user (13662ms)
      √ Should Successfully SignUp new user and LogOut (12378ms)
    Test Existing User SignIn
      √ Should NOT Login with Invalid Email, Password (20063ms)
      √ Should Successfully Login with Valid Email, Password and LogOut (8558ms)
    Validate New Article is Created and Displayed in Feeds
      √ Check Validation Messages on Create Article (9184ms)
      √ SignUp and Create Article using Random User and check Article is shown in Global Feed and My Artiles (49244ms)
      
API Functional Tests
    Test USER-SIGNUP-POST API
      √ Validate Status 422, response  for EXISTING USER-SIGNUP-POST Request (1266ms)
      √ Validate Status 200, response for NEW USER-SIGNUP-POST Request (744ms)
    Test USER-LOGIN-POST API
      √ Validate Status 422, response  for INVALID USER-LOGIN-POST Request  (815ms)
      √ Validate Status 200, response  for VALID USER-LOGIN-POST Request (795ms)
    Test TAGS-GET API
      √ Validate Status 200, response for TAGS-GET Request (1189ms)
    Test GET-GLOBAL-ARTICLE-FEED API
      √ Validate Status 200, response for GET-GLOBAL-ARTICLE-FEED Request (701ms)

conduit's People

Contributors

irfanalinoor avatar

Watchers

 avatar

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.