157
rated 0 times
[
164]
[
7]
/ answers: 1 / hits: 15149
/ 6 Years ago, tue, april 10, 2018, 12:00:00
How do I make it work?
Goal: call a variable inside test script
Test script:
pm.test(shipment registration not allowed, function () {
var jsonData = pm.response.json();
pm.expect(jsonData.results[0].errors.title).to.eql(pm.errors.get(shipmentRegistrationNotAllowed));
});
The error:
Error: TypeError: Cannot read property 'get' of undefined
More From » postman