Bug Report
Version:
Latest
Current behavior:
The generated JS tests use postMessage that didn't exists.
try {
json = pm.response.json();
// pm.environment.set('var', json.data.variable);
} catch (e) {
postMessage.test("JSON expected", function() {
pm.expect(json, "responseBody not JSON").not.to.be.null;
});
}
Expected behavior:
The generated JS tests use pm instead of postMessage.
try {
json = pm.response.json();
// pm.environment.set('var', json.data.variable);
} catch (e) {
pm.test("JSON expected", function() {
pm.expect(json, "responseBody not JSON").not.to.be.null;
});
}
Steps to reproduce:
Generate a test
Bug Report
Version:
Latest
Current behavior:
The generated JS tests use
postMessagethat didn't exists.Expected behavior:
The generated JS tests use
pminstead ofpostMessage.Steps to reproduce:
Generate a test