When selecting the type 'value' the JSON reference in the test is incorrect
Use this example response body in the JSON payload section:
{
"userId": 1,
"id": 1,
"title": "delectus aut autem",
"completed": false
}
- In the response schema section, change the assertion to check for
value
rather than atype
. - Generate the tests
This test created is missing the .
between the variable name jsonData
and the key
property userId
// Tests userId value
pm.test('Value of userId is 1', () => {
pm.expect(jsonDatauserId).to.eql(1);
});