Create a Postman collection with folders and add requests
Preconditions (2)
Step 1: Click on 'New' and select 'Collection' to create a new collection named 'User API Tests'
Step 2: Inside the 'User API Tests' collection, create a folder named 'User Creation'
Step 3: Add a POST request to the 'User Creation' folder with URL 'https://api.example.com/users'
Step 4: Set the request body to JSON with fields 'name' and 'email'
Step 5: Save the request with the name 'Create User'
Step 6: Create another folder inside the collection named 'User Retrieval'
Step 7: Add a GET request to the 'User Retrieval' folder with URL 'https://api.example.com/users/{{userId}}'
Step 8: Save the request with the name 'Get User'
Step 9: Verify that the collection contains two folders each with one request
✅ Expected Result: The 'User API Tests' collection contains two folders named 'User Creation' and 'User Retrieval'. Each folder contains one request named 'Create User' and 'Get User' respectively with correct URLs and request types.