- Visual Studio Code
- Node.js [^10.0]
- Cypress [^7.0]
-
integration/services/tests
- Contains tests and implementation, separated by type scenario.
-
cypress/requests
- Contains the request methods implementation, separated by type request
-
support
- Location where is possible to create custom commands and overwrite existing ones.
-
cypress.json
- This file is used to store the baseUrl and any configuration values.
-
package.json
- This file is used by npm to handle the project's dependencies, scripts, also contain other metadata such as a project description.
- Clone this repository:
$ git clone git@github.com:marcellafarias/cypress-api-test.git
- Navigate to the repository path and install the dependencies via npm
$ npm install
- To open the cypress GUI and choose which tests and browser to run:
$ npm run cypress:open
Or to run all tests from the CLI and generate screenshots/videos evidence:
$ npm run cypress:run
After each cypress:run a report with screenshots and videos evidences is automatically generated, located at the reports file and videos file.