{ "v": 1, "name": "coll-v1", "folders": [ { "v": 1, "name": "coll-v1-child", "folders": [], "requests": [ { "v": "1", "endpoint": "https://echo.hoppscotch.io", "headers": [ { "key": "Inactive-Header", "value": "Inactive Header", "active": false }, { "key": "Authorization", "value": "Bearer token123", "active": true } ], "params": [ { "key": "key", "value": "value", "active": true }, { "key": "inactive-key", "value": "inactive-param", "active": false } ], "name": "req-v1-II", "method": "GET", "preRequestScript": "", "testScript": "pw.test(\"Asserts request params\", () => {\n pw.expect(pw.response.body.args.key).toBe(\"value\")\n pw.expect(pw.response.body.args[\"inactive-key\"]).toBe(undefined)\n})\n\npw.test(\"Asserts request headers\", () => {\n pw.expect(pw.response.body.headers[\"authorization\"]).toBe(\"Bearer token123\")\n pw.expect(pw.response.body.headers[\"inactive-header\"]).toBe(undefined)\n})", "body": { "contentType": null, "body": null }, "auth": { "authType": "bearer", "authActive": true, "token": "token123" } } ] } ], "requests": [ { "v": "1", "endpoint": "https://echo.hoppscotch.io", "headers": [ { "key": "Inactive-Header", "value": "Inactive Header", "active": false }, { "key": "Authorization", "value": "Bearer token123", "active": true } ], "params": [ { "key": "key", "value": "value", "active": true }, { "key": "inactive-key", "value": "inactive-param", "active": false } ], "name": "req-v1", "method": "GET", "preRequestScript": "", "testScript": "pw.test(\"Asserts request params\", () => {\n pw.expect(pw.response.body.args.key).toBe(\"value\")\n pw.expect(pw.response.body.args[\"inactive-key\"]).toBe(undefined)\n})\n\npw.test(\"Asserts request headers\", () => {\n pw.expect(pw.response.body.headers[\"authorization\"]).toBe(\"Bearer token123\")\n pw.expect(pw.response.body.headers[\"inactive-header\"]).toBe(undefined)\n})", "body": { "contentType": null, "body": null }, "auth": { "authType": "bearer", "authActive": true, "token": "token123" } } ] }