API Automation Testing using Cypress
Hi everyone, this is a sample repository in API automation measurement using Cypress
Testing by ensuring the response received from the API. What is tested?
- Authentication.cy
- jsonSchemaValidation.cy
- parsingJSONResponse.cy
- parsingXmlResponse.cy
- Clone this repository
- Open the project file using a text editor
- Run one of the tests. and, or
- 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
npm install cypress --save-dev
npm install ajv
npm install xml2js
npm install --save-dev mocha
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
