github.com/kubeshop/testkube@v1.17.23/test/postman/Params-test.postman_collection.json (about)

     1  {
     2  	"info": {
     3  		"_postman_id": "2072ef02-487c-472f-a02e-654b3d5aa4ca",
     4  		"name": "Params-test",
     5  		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
     6  	},
     7  	"item": [
     8  		{
     9  			"name": "Homepage healthcheck",
    10  			"event": [
    11  				{
    12  					"listen": "test",
    13  					"script": {
    14  						"exec": [
    15  							"pm.test(\"Environment variables are set\", function () {",
    16  							"    pm.expect(pm.environment.get(\"env1\"), \"env1 should be equal\").eq(\"val1\");",
    17  							"    pm.expect(pm.environment.get(\"env2\"), \"env2 should be equal\").eq(\"val2\")",
    18  							"});",
    19  							"",
    20  							"pm.test(\"Response time is less than 200ms\", function () {",
    21  							"    pm.expect(pm.response.responseTime).to.be.below(200);",
    22  							"});",
    23  							"",
    24  							"pm.test(\"Body matches string\", function () {",
    25  							"    pm.expect(pm.response.text()).to.include(\"Hi there\");",
    26  							"});"
    27  						],
    28  						"type": "text/javascript"
    29  					}
    30  				}
    31  			],
    32  			"request": {
    33  				"method": "GET",
    34  				"header": [],
    35  				"url": {
    36  					"raw": "https://wysocki.consulting/",
    37  					"protocol": "https",
    38  					"host": [
    39  						"wysocki",
    40  						"consulting"
    41  					],
    42  					"path": [
    43  						""
    44  					]
    45  				}
    46  			},
    47  			"response": []
    48  		},
    49  		{
    50  			"name": "Trainings list check",
    51  			"event": [
    52  				{
    53  					"listen": "test",
    54  					"script": {
    55  						"exec": [
    56  							"pm.test(\"Body matches string\", function () {",
    57  							"    pm.expect(pm.response.text()).to.include(\"Golang Trainings\");",
    58  							"});",
    59  							"pm.test(\"Body matches string\", function () {",
    60  							"    pm.expect(pm.response.text()).to.include(\"Docker Trainings\");",
    61  							"});",
    62  							"pm.test(\"Body matches string\", function () {",
    63  							"    pm.expect(pm.response.text()).to.include(\"Kubernetes Trainings\");",
    64  							"});"
    65  						],
    66  						"type": "text/javascript"
    67  					}
    68  				}
    69  			],
    70  			"request": {
    71  				"method": "GET",
    72  				"header": [],
    73  				"url": {
    74  					"raw": "https://wysocki.consulting",
    75  					"protocol": "https",
    76  					"host": [
    77  						"wysocki",
    78  						"consulting"
    79  					]
    80  				}
    81  			},
    82  			"response": []
    83  		}
    84  	]
    85  }