Skip to content

marcellafarias/cypress-api-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git@github.com: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.


About

Automated API tests using Cypress

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published