I recently went through an SDET interview process. Here's how it went:
Waited anxiously for a few days.
Got a call from the recruiter. They decided not to move forward with an offer.
def test_api_response(): """ Task: Implement a function to test an API endpoint that returns user data.
The API endpoint: https://api.example.com/users/{user_id}
Expected response format:
{
"id": int,
"name": string,
"email": string,
"age": int
}
Requirements:
1. Write a function that sends a GET request to the API for a given user_id.
2. Validate the response status code is 200.
3. Verify the response JSON structure matches the expected format.
4. Check that all required fields are present and have the correct data types.
5. Implement at least one edge case test (e.g., invalid user_id).
6. Use any Python testing framework and HTTP library of your choice.
Bonus:
- Implement parameterized tests for multiple user IDs.
- Add performance assertions (e.g., response time < 500ms).
Note: You can assume the API is functional. Focus on writing the test code.
"""
# Implement your solution here
pass
if name == "main": test_api_response()
The following metrics were computed from 2 interview experiences for the Google Software Development Engineer In Test (SDET) role in New Delhi, Delhi.
Google's interview process for their Software Development Engineer In Test (SDET) roles in New Delhi, Delhi is extremely selective, failing the vast majority of engineers.
Candidates reported having very good feelings for Google's Software Development Engineer In Test (SDET) interview process in New Delhi, Delhi.