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

     1  {
     2  	"info": {
     3  		"_postman_id": "2256b413-1c9d-4e3f-9ec4-a50c00cec6e7",
     4  		"name": "VeryLong",
     5  		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
     6  		"_exporter_id": "3706349"
     7  	},
     8  	"item": [
     9  		{
    10  			"name": "Getall",
    11  			"event": [
    12  				{
    13  					"listen": "prerequest",
    14  					"script": {
    15  						"exec": [
    16  							"pm.test(\"Status code is 200\", function () {",
    17  							"    for(i=0; i<100;i++) {",
    18  							"        let j = i",
    19  							"        setTimeout(function(){",
    20  							"            console.log(\"running \", j, \"request\")",
    21  							"            pm.sendRequest('https://testkube.io/?no='+j, function (err, response) {",
    22  							"                pm.expect(response.code).to.eq(200);",
    23  							"            });",
    24  							"        }, 1000*j);",
    25  							"    }",
    26  							"});"
    27  						],
    28  						"type": "text/javascript"
    29  					}
    30  				}
    31  			],
    32  			"request": {
    33  				"method": "GET",
    34  				"header": [],
    35  				"url": {
    36  					"raw": "https://kubeshop.github.io",
    37  					"protocol": "https",
    38  					"host": [
    39  						"kubeshop",
    40  						"github",
    41  						"io"
    42  					]
    43  				}
    44  			},
    45  			"response": []
    46  		}
    47  	],
    48  	"event": [
    49  		{
    50  			"listen": "prerequest",
    51  			"script": {
    52  				"type": "text/javascript",
    53  				"exec": [
    54  					""
    55  				]
    56  			}
    57  		},
    58  		{
    59  			"listen": "test",
    60  			"script": {
    61  				"type": "text/javascript",
    62  				"exec": [
    63  					""
    64  				]
    65  			}
    66  		}
    67  	]
    68  }