Set environment variable from API response
Preconditions (3)
Step 1: Send a GET request to the API endpoint https://api.example.com/user/123
Step 2: Wait for the response
Step 3: In the Tests tab, write a script to extract the 'userId' field from the JSON response
Step 4: Set an environment variable named 'userId' with the extracted value
Step 5: Verify that the environment variable 'userId' is set correctly
✅ Expected Result: The environment variable 'userId' is set with the value from the response JSON's 'userId' field