Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egaraujo/restful-booker-api-automation
API Automation with Cypress
https://github.com/egaraujo/restful-booker-api-automation
cypress cypress-plugin-api docker javascript test-automation
Last synced: 8 days ago
JSON representation
API Automation with Cypress
- Host: GitHub
- URL: https://github.com/egaraujo/restful-booker-api-automation
- Owner: egaraujo
- License: gpl-3.0
- Created: 2024-07-29T13:32:34.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-18T19:54:07.000Z (3 months ago)
- Last Synced: 2024-08-19T16:17:03.873Z (3 months ago)
- Topics: cypress, cypress-plugin-api, docker, javascript, test-automation
- Language: JavaScript
- Homepage:
- Size: 866 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# API Automation with Cypress
This is a test suite in Cypress, for restful-booker API## Run tests
To run via Docker:
1. Clone the repo
2. Create .env file following "env README.txt" directions
3. Navigate into the restful-booker root folder
4. Start Docker Desktop
5. Run ```docker-compose build```
6. Run ```docker-compose up```
7. APIs are exposed on http://localhost:3001
8. Run tests from src folder:
`npx cypress open` for test runner
`npx cypress run` for headless mode## Test cases
![screenshot](https://github.com/egaraujo/restful-booker-api-automation/blob/d1639717eae349db392767ece4276f84dcba97ed/screenshot.jpg)
• Should be up and running
• Should create a new token
• Should return ten bookings initially
• Should create a new booking
• Should perform partial booking update
• Should perform full booking update
• Should delete a booking## Links
Restful Booker API Doc: https://restful-booker.herokuapp.com/apidoc/index.html
Restful Booker Repo: https://github.com/mwinteringham/restful-booker