Senior Software Development Engineer In Test Sdet Interview Questions

3,735 senior software development engineer in test sdet interview questions shared by candidates

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 # Example usage (you'd typically use a test runner like pytest) if __name__ == "__main__": test_api_response()
Jul 7, 2024

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 # Example usage (you'd typically use a test runner like pytest) if __name__ == "__main__": test_api_response()

1. mix of questions from manual , ui automation and api automation 2. code coverage 3. test planning 4. roles and responsibilities 5. two programs: i. find the last repeating character in a string ii. reverse the string without affecting its spaces
avatar

Software Development Engineer In Test (SDET)

Interviewed at Freshworks

3.3
Oct 14, 2022

1. mix of questions from manual , ui automation and api automation 2. code coverage 3. test planning 4. roles and responsibilities 5. two programs: i. find the last repeating character in a string ii. reverse the string without affecting its spaces

Viewing 3371 - 3380 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 3,735 interview questions and reports from Senior software development engineer in test sdet interviews. Prepare for your interview. Get hired. Love your job.