https://github.com/anazalu/tdl-rest-api-cypress
Cypress (TypeScript) for REST API automation
https://github.com/anazalu/tdl-rest-api-cypress
cypress rest-api typescript
Last synced: 8 months ago
JSON representation
Cypress (TypeScript) for REST API automation
- Host: GitHub
- URL: https://github.com/anazalu/tdl-rest-api-cypress
- Owner: anazalu
- License: mit
- Created: 2023-11-26T09:18:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-27T07:23:19.000Z (over 1 year ago)
- Last Synced: 2024-12-30T20:30:39.958Z (9 months ago)
- Topics: cypress, rest-api, typescript
- Language: TypeScript
- Homepage:
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
npm install
```
## Running Tests in consoleTo run all tests, run the following command
```bash
npx cypress run
```To run a specific test set, use
```bash
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
```bash
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