| ASK CORE EXT Postman Code // Params // Authorization // Headers // Body { "id": "", "ts": {{TSstart}}, ... } // Pre-requestScript var ts = new Date().getTime(); postman.setEnvironmentVariable("TSstart", ts); // Tests pm.test("response is 200", function () { pm.response.to.have.status(200); }); console.log('Trace ID is: ' + pm.response.headers.get('X-B3-TraceId')); try{ var body = JSON.parse(responseBody); } catch (e) { tests["Response Body is empty"] = false; } pm.test("id is not empty", function() { pm.expect(body.id).to.not.be.null; }); // Settings Param 1 ON/OFF Param N ON/OFF |