API Challenge - James Thomas using Python

  • Locked
James Thomas's profile
James Thomas

Quality Engineer

API Challenge - James Thomas using Python image
Summary

James Thomas solves the API challenge from Test.bash(); 2022 using Python.

Challenge Description

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:

  1. Create a request to log in as an admin using the Auth API and save the Cookie that comes back in
  2. Send a POST request to the Room API
  3. 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.

Quality Engineer
I'm Vice President of the Association for Software Testing, a non-profit organisation dedicated to the advancement of the testing craft. Over the years I've had many roles including developer, technical author, technical support, and manager, but the combination of intellectual, practical, and social challenges in testing are what really excite me. I blogged about my Test.bash() 2022 API Automation Challenge entry in https://qahiccupps.blogspot.com/2022/10/having-testblast.html
Quality Engineer
I'm Vice President of the Association for Software Testing, a non-profit organisation dedicated to the advancement of the testing craft. Over the years I've had many roles including developer, technical author, technical support, and manager, but the combination of intellectual, practical, and social challenges in testing are what really excite me. I blogged about my Test.bash() 2022 API Automation Challenge entry in https://qahiccupps.blogspot.com/2022/10/having-testblast.html
Suggested Content
Tool of The Week: WonderProxy image
Localization testing with confidence Combine a global network with flexible testing tools to see what your website looks like to customers around the world
Explore MoT
Castelo Branco Meetup image
Tue, 6 May
The Future of Testing in an Automated World: Embracing Continuous Learning and A
MoT Software Testing Essentials Certificate image
Boost your career in software testing with the MoT Software Testing Essentials Certificate. Learn essential skills, from basic testing techniques to advanced risk analysis, crafted by industry experts. Early access available now at a discounted rate!
Leading with Quality
A one-day educational experience to help business lead with expanding quality engineering and testing practices.
This Week in Testing image
Debrief the week in Testing via a community radio show hosted by Simon Tomes and members of the community
Subscribe to our newsletter
We'll keep you up to date on all the testing trends.