Skip to content

this repo contains examples of API testing using Cypress

Notifications You must be signed in to change notification settings

apatte/cypress-api-testing

Repository files navigation

API testing with Cypress using Swagger documentation

Hello, and welcome to my Github page! I created this repo to demonstrate simple examples of API testing using Cypress. These tests are based on the swagger documentation for the demo site called Petstore: https://petstore.swagger.io/

Installation

To get started:

  1. Pre-requisite: you have node.js installed (https://nodejs.org/en/)
  2. Clone this repo and run npm install in your terminal. This will install all the dependencies.
  3. Launch Cypress runner by entering npx cypress open in your terminal.
  4. In the Cypress runner UI, click on the petstore-api-tests.cy.js spec to run the tests. Enjoy!

image

About the Author

Check out the recording of my talk for the Applitools Future of Testing Event, where I leverage ChatGPT to generate and debug these API tests: https://applitools.com/event/fot23-leveraging-chatgpt-with-cypress-for-api-testing-hands-on-techniques/

About

this repo contains examples of API testing using Cypress

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published