productRelationship[0].id and productRelationship[1].id 422 check
id = "12345":
pm.test("Check 'propertyPath' is '/quoteItem/0/product/productRelationship/0/id'", function () { var jsonData = pm.response.json(); pm.expect(jsonData[0].propertyPath).to.eql("/quoteItem/0/product/productRelationship/0/id"); });
id = "":
pm.test("Check 'reason' is 'quoteItem[0].product.productRelationship[0].id must not be blank", function () { pm.expect(jsonData.reason).to.eql("quoteItem[0].product.productRelationship[0].id must not be blank"); });
id = null
pm.test("Check 'reason' is 'quoteItem[0].product.productRelationship[0].id must not be blank", function () { pm.expect(jsonData.reason).to.eql("quoteItem[0].product.productRelationship[0].id must not be blank"); });
productRelationship[0].id and productRelationship[1].id 422 check
pm.test("Check 'propertyPath' is '/quoteItem/0/product/productRelationship/0/id'", function () { var jsonData = pm.response.json(); pm.expect(jsonData[0].propertyPath).to.eql("/quoteItem/0/product/productRelationship/0/id"); });
pm.test("Check 'reason' is 'quoteItem[0].product.productRelationship[0].id must not be blank", function () { pm.expect(jsonData.reason).to.eql("quoteItem[0].product.productRelationship[0].id must not be blank"); });
pm.test("Check 'reason' is 'quoteItem[0].product.productRelationship[0].id must not be blank", function () { pm.expect(jsonData.reason).to.eql("quoteItem[0].product.productRelationship[0].id must not be blank"); });