VIIT Automation Qualifier 1
VIIT Automation 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.
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.
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