Giter Site home page Giter Site logo

qa-tools-cypress-web-automation-framework's Introduction

QA-Tools-Cypress-Web-Automation-Framework

This is Cypress and JavaScript based automation framework to test few test cases on 'https://www.saucedemo.com/' webpage.

Pre requisites

  1. node : v16.15.0
  2. npm : 8.5.5
  3. Cypress : 12.8.1
  4. Internet connection

Test cases

  • Login page
  1. Verify invalid inputs for username and password : This is to verify messages when empty username and password given.
  2. Verify invalid user login : This is to verify behavior when invalid username given.
  3. Verify standard user login : This is to verify success standard user login flow.
  • Inventory page
  1. Verify Details on Inventory page : This is to verify initial details , items on Inventory page.
  2. Verify Add/Remove to cart : This is to verify behavior of adding and removing item
  3. Verify Cart item count function : This is to verify count on cart when adding and removing item.

How Run Test

  1. In QA-Tools-Cypress-Web-Automation-Framework folder run below command to run all test cases
npx cypress run --spec "cypress/e2e/*.cy.js"
  1. Run page related test cases
  • To run Login page test cases : npx cypress run --spec "cypress/e2e/LoginPageTest.cy.js"
  • To run In page test cases : npx cypress run --spec "cypress/e2e/InventoryPageTest.cy.js"
  1. Open below file on browser to check html reports.

cypress/reports/html/index.html

Configurations

  1. To data driven test used fixtures LoginPageFields.json.
  2. Use cypress.config.js to store important reusing variables such as base url ,common usernames in env.

qa-tools-cypress-web-automation-framework's People

Watchers

Shehan Perera 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.