Skip to content

Here you can find the Basic to Advance level of Cypress components with example

Notifications You must be signed in to change notification settings

Suren2695/Cypress_API_-Workout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API METHODS

Here we can Learn about the Rest API Examples on HTTP Methods :

-GET : To retrieve an information from a server

-POST : To add an information in the server

-PUT : To update an information in the server

-DELETE : To remove an information in the server

POINTS TO REMEBER -

  1. examples which are hardcoded and used in fixtures won't work since it is already used in the specified url.
  2. In framework project - you should generate your own access key ( "Authorzation" in Headers) I have used my own key.

Cypress for API

  • This JS testing framework for web applicationallows to do E2E testing on UI and API in the Application.
  • To Install Cypress : npm install cypress --save-dev

Reference Links to verify

  1. https://www.cypress.io/blog/2023/02/13/implementing-api-testing-like-a-pro-1/
  2. Sample API references for framework - https://gorest.co.in/

Framework Content:

- GET

  1. Get method
  2. get Users Details
  3. Invalid URL -
  4. get user detail for 1 user
  5. Invalid Users

- POST

POSITIVE CASE

  1. JSON
  2. JSON Object
  3. Fixture
  4. Import json

NEGATIVE CASE

  1. Incorrect Header
  2. Duplicate Data
  3. Missing Data

- PUT

  1. Put call
  2. Put call using fixtures
  3. Put call using JSON from different package
  4. E2E flow ( POST + PUT + GET )

- DELETE

  1. Delete call
  2. create a post call
  3. Delete that post call

About

Here you can find the Basic to Advance level of Cypress components with example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published