Bajaj Health - Test Qualifier - 1 - Automation and JAVA
Bajaj Health - Test Qualifier - 1 - Automation and JAVA
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.
--data-raw '{
"firstName": "Test",
"lastName": "Test",
"phoneNumber": 9999999999,
"emailId": "[email protected]"
}'
Headers -
roll-number (required field)
Body -
firstName (required field)
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 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