Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 996 Bytes

README.md

File metadata and controls

47 lines (32 loc) · 996 Bytes

tdl-rest-api-automation

Tech Stack

Libraries: cypress, cypress-multi-reporters, cypress-real-events, cypress-wait-until, mocha, mochawesome, mochawesome-merge, mochawesome-report-generator, typescript

Requirements: Node (min version 14)

Installation

Install with npm

npm install

Running Tests in console

To run all tests, run the following command

npx cypress run

To run a specific test set, use

npx cypress run -s "cypress/e2e/$testSetName"    

$testSetName - available test sets:

  • auth.cy.ts
  • authNeg.cy.ts
  • colors.cy.ts
  • colorsNeg.cy.ts
  • project.cy.ts
  • projectNeg.cy.ts

Running Tests in Cypress App

npx cypress open

Then, select E2E Testing, choose a browser and press Start E2E Testing, click a spec name. Console logs (F12) with request and response body appear here, but currently cannot be seen in Mochawesome browser report.

Execution report can be found at /results/mochawesome.json