0% found this document useful (0 votes)
16 views

API Testing

Uploaded by

nadaelsadany01
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

API Testing

Uploaded by

nadaelsadany01
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Software Test

Candidate Assignment
Engineer

Overview
Thanks for considering Thirdwayv for your next employment opportunity. This assignment aims
to assess your knowledge of fundamental API Testing. There is no single correct answer, and the
goal is to explore your approach to this assignment, which will also be used as a discussion
subject during the interview process.
The contents of this document should be treated as Confidential. You are expected to prepare
the assignment without consulting with other third parties. Please delete any physical copies of
this document and the downloaded copy upon completing the assignment.
This assignment is meant to evaluate candidates of various levels of expertise with Testing. In
case you are not able to complete all tasks, either due to lack of time or lack of experience in
particular areas of the assignment, we still encourage you to submit the deliverable you can
prepare, however incomplete it may be, along with any notes about what you were unable to
complete. It will still help us understand where you can best fit into our team and prepare the live
technical interview.
The candidate might consider that any of the details in this document contain ambiguous or
incomplete requirements. In that case, the candidate shall use their best judgment to fill in the
gaps with assumptions and interpretations, and those assumptions should be documented within
the code where appropriate.
Software Test
Candidate Assignment
Engineer

Read the following steps before you run the API requests on Postman:

1. Create a collection named "test booking" that will include all your API Requests.
2. Make sure to run each API Request and verify that the response is correct.
3. Add an environment variable to contain the base URL https://restful-
booker.herokuapp.com
4. Add an automation test in Postman to check the status code after each request.
5. Finally, you must export the collection as a JSON file and send it.
Software Test
Candidate Assignment
Engineer

Postman Task:

1- Create Booking : Create an API Request to create a new booking. [Post Request]

• url: https://restful-booker.herokuapp.com/booking

• body:

• the response: Success 200


Software Test
Candidate Assignment
Engineer

2- Get Booking Ids : Create an API Request to Returns the ids of all the bookings. [GET Request]

• url: https://restful-booker.herokuapp.com/booking
• response: Success 200

3- Get Booking : Create an API Request to returns a specific booking based upon the booking id provided.
[GET Request]

• url: https://restful-booker.herokuapp.com/booking/:id
Software Test
Candidate Assignment
Engineer

• Add an automation test in Postman to verify the first name after a “get booking API
request”. (for example if the retrieved booking has a first name = “Mohamed”, then
add a test to verify that first name = Mohamed, and also check that this test will fail if
you add a different name in the test)

4- Create Token: Create an API Request to create a new auth token to use for access to the UPDATE
and DELETE Booking. [Post Request]

• URL: https://restful-booker.herokuapp.com/auth
Software Test
Candidate Assignment
Engineer

5- Update Booking : Create an API Request to Updates a current booking. [PUT Request]

• url: https://restful-booker.herokuapp.com/booking/:id
Software Test
Candidate Assignment
Engineer

6- Delete Booking : Create an API Request to remove a booking based on its id. [DELETE Request]

• url: https://restful-booker.herokuapp.com/booking/1

You might also like