Skip to content

suryana-code/API-Testing-with-Cypress

Repository files navigation

Cypress API Testing

API Automation Testing using Cypress

Last Commit

About this repository

Hi everyone, this is a sample repository in API automation measurement using Cypress

Testing Scope?

Testing by ensuring the response received from the API. What is tested?

  • Authentication.cy
  • jsonSchemaValidation.cy
  • parsingJSONResponse.cy
  • parsingXmlResponse.cy

How to use?

  1. Clone this repository
  2. Open the project file using a text editor
  3. Run one of the tests. and, or
  4. You can run all tests by calling 1 project.cy by running "apiService.cy.js" this will call and run the projects contained in it, including Authentication.cy, jsonSchemaValidation.cy, parsingJSONResponse.cy, parsingXmlResponse.cy

If you encounter any difficulties, please give me feedback at msuryana45@gmail.com

Installation

npm install cypress --save-dev
npm install ajv
npm install xml2js
npm install --save-dev mocha

How To Run?

Run the Cypress Tests in headmode

npx cypress open

or, if you want to run headless mode testing

npx cypress run --spec cypress/e2e/api-test/apiService.cy.js

Test Report generated on terminal

Screenshot

About

API automation measurement using Cypress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors