This project was created to study and define a base architecture for automated tests of API Rest with Cypress.
- Install Node.js;
- Download this repository or make a git clone;
- Open the project directory and execute the command:
-
npm install
- To open the Cypress execution interface, execute in the project directory:
-
npm run cypress:open
cypress-api-testing/
├─ cypress/
│ │
│ ├── fixtures/
│ │ ├── *.json
│ │ ├── *.csv
│ │ └── *.png
│ │
│ ├── integration/
│ │ ├── <category>/
│ │ │ └── <requests>Tests.request.js
│ │ │ └── <tests>Tests.spec.js
│ │ └── <category2>/
│ │ └── <requests>Tests.requests.js
│ │ └── <tests>Tests.spec.js
│ │
│ ├── plugins/
│ │ └── index.js
│ │
│ ├── reports/
│ │ └── mocha/
│ │ └── mochafiles (*.json, *html)
│ │
│ └── support/
│ ├── databaseCommands.js
│ ├── apiGeneralCommands.js
│ ├── api<Categoria>Commands.js
│ ├── api<Categoria2>Commands.js
│ └── index.js
│
│
├── environmentsConfig/
├── node_modules/
├── cypress.json
├── package-lock.json
├── package.json
└── README.md