Filtered Selector Variables

Shows filtered array selectors that use variables in both captures and assertions.

$ EXPECTED_USERNAME = Bret

---

Get Users

GET https://jsonplaceholder.typicode.com/users

& body.[? username == $EXPECTED_USERNAME].email -> $TARGET_EMAIL
& body.[? email == $TARGET_EMAIL].address.city -> $TARGET_CITY

^ & body.[? username == $EXPECTED_USERNAME].name == 'Leanne Graham'
^ & body.[? email == $TARGET_EMAIL].company ~= {"name":"Romaguera-Crona"}
^ $TARGET_CITY == 'Gwenborough'