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

VIIT Automation Qualifier 1

Uploaded by

shaikhsadid431
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

VIIT Automation Qualifier 1

Uploaded by

shaikhsadid431
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Bajaj Health Automation Challenge (Qualifier 1)

(3rd May’23)

Problem Statement
A developer in your team has developed an API to create an account for a new user. You need to
validate this API in as many different angles as possible.

Here are the API details

API endpoint - https://bfhldevapigw.healthrx.co.in/automation-


campus/create/user

API curl –
curl --location --request
POST 'https://bfhldevapigw.healthrx.co.in/automation-
campus/create/user' \
--header 'roll-number: 1' \
--header 'Content-Type: application/json' \
--data-raw '{
"firstName":"Test",
"lastName": "User",
"phoneNumber": 9999999999,
"emailId": "[email protected]"
}'

Headers -
roll-number (required field)

Body -
firstName (required field)
lastName (required field)
phoneNumber (required field, phoneNumber cannot be duplicate between
multiple users )
emailId (required field, emailId cannot be duplicate between
multiple users )

You can use any language/ tool to implement test cases. Students implementing most test cases will
get selected for the next round. Please note - if you don't send your college roll number in the
header you will not get credits for that test case.
HINTS:
You can use postman to get started with API testing. Feel free to use online curl testing tools as well.

Couple of example test cases to get you started -

1. Try creating accounts for different users with same phone number, you should get a bad
request response code 400
2. If you won’t send roll number you will get unauthorized response with error code 401

Similarly try implementing as many test cases as you can.

*DO NOT FORWARD THIS DOCUMENT*

You might also like