API Challenge - Tom Hudson using CucumberJS and Supertest
-
Locked
Tom Hudson
Head of Quality Engineering @ WealthWizards
![API Challenge - Tom Hudson using CucumberJS and Supertest image](https://embed-ssl.wistia.com/deliveries/e13ebdac6123e5ab903ac49836670748.jpg?image_crop_resized=1280x720)
Summary
Tom Hudson solves the API challenge from Test.bash(); 2022 using CucumberJS and Supertest.
For this challenge, we’ll be using restful-booker-platform which can be found here: https://automationintesting.online/ to see demonstrations of API automation tools that can chain requests and assert HTTP responses. We’d like to see how far you got with solving the challenge, what you liked about the tooling you used, and what you disliked.
Instructions
Using an API automation tool that you think the community would be interested in, show us how you would mitigate the following risk:
The Room API is unable to create rooms
If you had to build automation to confirm the Room API is able to create a room, how would you do it?
Example:
One example of mitigating this risk might be to use Postman to:
- Create a request to log in as an admin using the Auth API and save the Cookie that comes back in
- Send a POST request to the Room API
- Assert that the room has been created and contains expected room details using the Test tab
Tip: Check out the Postman collection for Restful-Booker-Platform to get started with its APIs www.postman.com/automation-in-testing will grant you access to the Auth Swagger documentation.
Tom Hudson
Head of Quality Engineering @ WealthWizards
Suggested Content
![TestBash Brighton 2024](https://www.ministryoftesting.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbk15IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--815abcdd8f535ab728e65b8c665daf7c18ddfd5b/TestBash%20Brighton%202024_16%209.jpg)
![MoT Foundation Certificate in Test Automation](https://www.ministryoftesting.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZ2d3IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--76089aaf6ab0703afa2eb2ade1ff776e2cbe6283/MoT%20Certification_MoT-FCTA.jpg)