github.com/kubeshop/testkube@v1.17.23/test/postman/test.postman_collection.json (about) 1 { 2 "info": { 3 "_postman_id": "3d9a6be2-bd3e-4cf7-89ca-354103aab4a7", 4 "name": "Testkube", 5 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" 6 }, 7 "item": [ 8 { 9 "name": "Google", 10 "event": [ 11 { 12 "listen": "test", 13 "script": { 14 "exec": [ 15 " pm.test(\"Successful GET request\", function () {", 16 " pm.expect(pm.response.code).to.be.oneOf([200, 201, 202]);", 17 " });" 18 ], 19 "type": "text/javascript" 20 } 21 } 22 ], 23 "request": { 24 "method": "GET", 25 "header": [], 26 "url": { 27 "raw": "https://google.com", 28 "protocol": "https", 29 "host": [ 30 "google", 31 "com" 32 ] 33 } 34 }, 35 "response": [] 36 }, 37 { 38 "name": "Kasia.in Homepage", 39 "event": [ 40 { 41 "listen": "test", 42 "script": { 43 "exec": [ 44 "pm.test(\"Body matches string\", function () {", 45 " pm.expect(pm.response.text()).to.include(\"PRZEPIS NA CHLEB\");", 46 "});" 47 ], 48 "type": "text/javascript" 49 } 50 } 51 ], 52 "request": { 53 "method": "GET", 54 "header": [], 55 "url": { 56 "raw": "https://kasia.in", 57 "protocol": "https", 58 "host": [ 59 "kasia", 60 "in" 61 ] 62 } 63 }, 64 "response": [] 65 } 66 ] 67 }