API Test: Validate GET /users Response

api-testingapirequestsjsonbeginner
Write a Python function that tests a GET request to an API endpoint. **Requirements:** 1. Make a GET request to `https://jsonplaceholder.typicode.com/users` 2. Assert the response status code is 200 3. Assert the response contains a list of users 4. Assert each user has an 'id', 'name', and 'email' field **Hint:** Use the `requests` library and `assert` statements.

Test Results

Click "Run Tests" to execute your code

Loading editor...
Loading...

Pro tip: Press Ctrl+Enter to run tests (coming soon)