Hi @DomAnndy
What do you mean by check?
Check that it exists?
Check it is a certain string?
Check if it is a certain type?
etc.
Due to the : you would probably need to use the bracket notation like this;
const response = pm.response.json();
pm.test("Your test name", function () {
pm.expect(response["hydra:member"][0]["uuid"]).to.eql('1701458c-8662-33b4-ab20-35bf2ca526ff');
});
Note: check if I typed the uuid correctly.
1 Like
Hi @w4dd325
thank you very much for helping. it worked!
you rock!