Join live training with Christoph Glaser
– JSON body: Body → raw → JSON → enter:
// Set environment variable pm.environment.set("lastId", jsonData.id);
// Status code check pm.test("Status is 200", () => pm.response.to.have.status(200); ); // Response time under 200ms pm.test("Response time < 200ms", () => pm.expect(pm.response.responseTime).to.be.below(200); );
– similar to POST