Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.56 KB

README.md

File metadata and controls

51 lines (40 loc) · 1.56 KB

cypress-api-test


Cypress

Automated API tests using Cypress

Requirements:

Project structure:

  • 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.

Starting the tests:

  1. Clone this repository:
$ git clone [email protected]:marcellafarias/cypress-api-test.git
  1. Navigate to the repository path and install the dependencies via npm
$ npm install
  1. 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

Reports:

After each cypress:run a report with screenshots and videos evidences is automatically generated, located at the reports file and videos file.