I am trying to write tests for the Postman Collection Runner and would like more visual feedback from the runner.
I know I can look at responses in the log, but it would be nice to inject variables into the GUI.
I tried the following, but all that was returned to the GUI was the string 'Qty returned is number'.
pm.test('Qty returned is number' + ' ' + pm.response.json().qty, pm.response.json().qty, () => {
pm.expect(typeof parseInt(pm.response.json().qty)).to.be.not.equal('NaN');
});
Is it possible to return these values to the runner?
Aucun commentaire:
Enregistrer un commentaire