github.com/kubeshop/testkube@v1.17.23/test/postman/Video-Chuck-Test.postman_collection.json (about) 1 { 2 "info": { 3 "_postman_id": "046c7729-b816-498a-a07b-88407d4180dc", 4 "name": "Video-Chuck-Test", 5 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", 6 "_exporter_id": "3706349" 7 }, 8 "item": [ 9 { 10 "name": "Check if jokes are about Chuck", 11 "event": [ 12 { 13 "listen": "test", 14 "script": { 15 "exec": [ 16 "pm.test(\"Body matches string\", function () {", 17 " pm.expect(pm.response.text()).to.include(\"Chuck\");", 18 "});", 19 "" 20 ], 21 "type": "text/javascript" 22 } 23 } 24 ], 25 "request": { 26 "method": "GET", 27 "header": [], 28 "url": { 29 "raw": "{{API_URI}}/joke", 30 "host": [ 31 "{{API_URI}}" 32 ], 33 "path": [ 34 "joke" 35 ] 36 } 37 }, 38 "response": [] 39 } 40 ], 41 "event": [ 42 { 43 "listen": "prerequest", 44 "script": { 45 "type": "text/javascript", 46 "exec": [ 47 "" 48 ] 49 } 50 }, 51 { 52 "listen": "test", 53 "script": { 54 "type": "text/javascript", 55 "exec": [ 56 "" 57 ] 58 } 59 } 60 ], 61 "variable": [ 62 { 63 "key": "API_URI", 64 "value": "http://testkube-example-service:8881", 65 "type": "string" 66 } 67 ] 68 }