30 Days of API Testing Day 21: Complete Exercise 3

I use Postman for this exercise.

My Solution:

  • Create a Environment Variable to store the value
  • Create a Postman collections and save all request below:
    – GET room request. And save any roomid of any room.
    – POST login. and save the token to env variable
    – POST booking. Using the token and roomid above to get the request

Here is my result

Collection:
image

Post method to login and store the token to env variable

image

Get method to get room and story a room_id to env variable
image

Post method to booking
image

Here is the result when running the collection
image

I will do this exercise again on Katalon when I have free time.

5 Likes