This repo contains API Testing with https://gorest.co.in/ using Cypress & Cucumber in Javascript.
Author: Tam Pham (Kyle)
Instruction:
- Clone this Repo and open using Visual Studio Code
- Open Terminal inside Visual Studio Code and run [ npm install ] to install required packages (Make sure your machine got node.js + npm, more information: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
- Open Terminal inside Visual Studio Code, Run command [ npx cypress run ] to start Cypress in Headless mode, let it run and finish by itself
- After Cypress finished with the test, it will generate a Video file contains the run + generate a report file name as CucumberAPITesting.cucumber.json (Screenshot 2)
- In Terminal, run command [ npm run cy:report ] in order to generate a new report file in .html extension
- The report file will be inside ./crypress/cucumber-report and be name as [ index.html ], open it with a browser of your choice (Screenshot 3)
CucumberAPITesting.feature (Screenshot 1)