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

Bajaj Health - Test Qualifier - 1 - Automation and JAVA

The document outlines a challenge for validating an API designed to create user accounts, detailing the API endpoint, required headers, and body parameters. Participants are encouraged to implement various test cases, particularly focusing on duplicate phone numbers and missing roll numbers, to demonstrate their testing skills. The challenge emphasizes that only submissions with the roll number in the header will receive credit for the test cases executed.

Uploaded by

Utkarsh Gupta
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)
14 views

Bajaj Health - Test Qualifier - 1 - Automation and JAVA

The document outlines a challenge for validating an API designed to create user accounts, detailing the API endpoint, required headers, and body parameters. Participants are encouraged to implement various test cases, particularly focusing on duplicate phone numbers and missing roll numbers, to demonstrate their testing skills. The challenge emphasizes that only submissions with the roll number in the header will receive credit for the test cases executed.

Uploaded by

Utkarsh Gupta
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 and JAVA Challenge (Qualifier 1)

(20th February 2025)

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 'https://bfhldevapigw.healthrx.co.in/automation-campus/create/user' \

--header 'roll-number: 1' \

--header 'Content-Type: application/json' \

--data-raw '{

"firstName": "Test",

"lastName": "Test",

"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 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