bishnucit / Cypress_Javascript

Scripts testing several websites and API endpoints using the CYPRESS tool.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CYPRESS - JAVASCRIPT - AUTOMATION - Consists multiple examples of code that can be used in cypress for automation testing.


Use the below commands to install the dependent packages -

npm install cypress-fail-on-console-error

npm install cypress-file-upload

npm install cypress-downloadfile (install global level)

npm install --save-dev cypress (install project level)

.\node_modules.bin\cypress.cmd install --force (sometimes installing doesnot work so we need force reinstall)

npx cypress open - with exe (opens up the cypress exe test runner)

npx cypress run (runs all cypress tests in headless mode)

npx cypress run --headed (runs all cypress tests in ui mode)

npx cypress run --spec "location_to_spec" (runs a single spec file)

npx cypress run --browser chrome (runs on a particular browser instead of default)

npx cypress run --record --spec "location_to_spec" (runs a single spec file and records on dashboard)

E2E TESTING WITH CYPRESS -- Description of Website Under Tests:

welcome.spec.js - https://example.cypress.io/todo - Script to test a simple Todo app

sitetwo.spec.js - http://the-internet.herokuapp.com/ - Script for testing Automation Practice Website

sitethree.spec.js - http://automationpractice.com/ - Script to test functionality of a Wordpress sample store

sitefour.spec.js - https://github.com/cypress-io/cypress-realworld-app - E2E script of testing Full stack Express/React app

API TESTING WITH CYPRESS -- Description of API Endpoints Under Tests:

sitefive.spec.js - https://restful-booker.herokuapp.com/apidoc/index.html - Script to test API endpoints

About

Scripts testing several websites and API endpoints using the CYPRESS tool.


Languages

Language:JavaScript 100.0%