This repository contains API tests. These tests are written in Type Script with Cypress framework. API tests covers:
- in file CreateTrucks.cy.js
- POST /trucks
- in file EditTrucks.cy.js
- PUT /trucks/{id}
- in file GetTrucks.cy.js
- GET /trucks /trucks/{id}
To execute tests its required to have installed node: https://nodejs.org/en/download/
- open terminal
- make sure you are in folder \Coldrun
- execute command
npm ito install all necessary dependencies (only when executing for the first time) - run comamnds:
npm run run:all-> to run all testsnpm run run:post-> to run only POST validationnpm run run:put-> to run only PUT validationnpm run run:get-> to run only GET validation