Conditional execution of Postman requests using setNextRequest
Preconditions (2)
Step 1: Send the 'Login' request with valid credentials.
Step 2: Check the 'success' field in the response JSON.
Step 3: If 'success' is true, execute the 'Get User Data' request next.
Step 4: If 'success' is false, do not execute any further requests.
✅ Expected Result: If login is successful, 'Get User Data' request runs next. If login fails, no further requests run.