Chilkat Online Tools

Classic ASP / Postman API / Run a Monitor

Back to Collection Items

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.

' For versions of Chilkat < 10.0.0, use CreateObject("Chilkat_9_5_0.Http")
set http = Server.CreateObject("Chilkat.Http")

http.SetRequestHeader "X-API-Key","{{postman_api_key}}"

' resp is a Chilkat.HttpResponse
Set resp = http.QuickRequest("POST","https://api.getpostman.com/monitors/{{monitor_uid}}/run")
If (http.LastMethodSuccess = 0) Then
    Response.Write "<pre>" & Server.HTMLEncode( http.LastErrorText) & "</pre>"
    Response.End
End If

' For versions of Chilkat < 10.0.0, use CreateObject("Chilkat_9_5_0.StringBuilder")
set sbResponseBody = Server.CreateObject("Chilkat.StringBuilder")
success = resp.GetBodySb(sbResponseBody)

' For versions of Chilkat < 10.0.0, use CreateObject("Chilkat_9_5_0.JsonObject")
set jResp = Server.CreateObject("Chilkat.JsonObject")
success = jResp.LoadSb(sbResponseBody)
jResp.EmitCompact = 0

Response.Write "<pre>" & Server.HTMLEncode( "Response Body:") & "</pre>"
Response.Write "<pre>" & Server.HTMLEncode( jResp.Emit()) & "</pre>"

respStatusCode = resp.StatusCode
Response.Write "<pre>" & Server.HTMLEncode( "Response Status Code = " & respStatusCode) & "</pre>"
If (respStatusCode >= 400) Then
    Response.Write "<pre>" & Server.HTMLEncode( "Response Header:") & "</pre>"
    Response.Write "<pre>" & Server.HTMLEncode( resp.Header) & "</pre>"
    Response.Write "<pre>" & Server.HTMLEncode( "Failed.") & "</pre>"

    Response.End
End If

' Sample JSON response:
' (Sample code for parsing the JSON response is shown below)

' {
'   "run": {
'     "info": {
'       "jobId": "1e6ba2e1-6256-4430-bafa-a06e591523bd",
'       "monitorId": "1e6b8970-fd13-4480-b011-b3b3e3cd271d",
'       "name": "Sample Collection monitor 1 #54",
'       "collectionUid": "5852-1d3daef4-2037-4584-ab86-bafd8c8f8a55",
'       "status": "success",
'       "startedAt": "2016-12-04T14:29:39.000Z",
'       "finishedAt": "2016-12-04T14:29:39.000Z"
'     },
'     "stats": {
'       "assertions": {
'         "total": 1,
'         "failed": 0
'       },
'       "requests": {
'         "total": 3,
'         "failed": 0
'       }
'     },
'     "executions": [
'       {
'         "id": 1,
'         "item": {
'           "id": "b5e8d7dd-909c-4ba7-aef4-8609bc50b586",
'           "name": "Sample POST Request"
'         },
'         "request": {
'           "method": "POST",
'           "url": "echo.getpostman.com/post",
'           "headers": {
'             "content-type": "application/json",
'             "accept": "*/*",
'             "accept-encoding": "gzip, deflate",
'             "content-length": 18
'           },
'           "body": {
'             "contentLength": 18,
'             "mode": "raw"
'           },
'           "timestamp": "2016-12-04T14:29:39.520Z"
'         },
'         "response": {
'           "code": 200,
'           "body": {
'             "contentLength": 298
'           },
'           "responseTime": 57,
'           "responseSize": 298,
'           "headers": {
'             "date": "Sun, 04 Dec 2016 14:29:39 GMT",
'             "content-type": "application/json",
'             "transfer-encoding": "chunked",
'             "connection": "keep-alive",
'             "content-encoding": "gzip"
'           }
'         }
'       },
'       {
'         "id": 2,
'         "item": {
'           "id": "f790d046-755d-44f5-a416-b825e18dfd9d",
'           "name": "Sample GET Request"
'         },
'         "request": {
'           "method": "GET",
'           "url": "echo.getpostman.com/get",
'           "headers": {
'             "accept": "*/*",
'             "accept-encoding": "gzip, deflate"
'           },
'           "body": {
'             "contentLength": 0,
'             "mode": "formdata"
'           },
'           "timestamp": "2016-12-04T14:29:39.586Z"
'         },
'         "response": {
'           "code": 200,
'           "body": {
'             "contentLength": 282
'           },
'           "responseTime": 46,
'           "responseSize": 282,
'           "headers": {
'             "date": "Sun, 04 Dec 2016 14:29:39 GMT",
'             "content-type": "application/json",
'             "transfer-encoding": "chunked",
'             "connection": "keep-alive",
'             "content-encoding": "gzip"
'           }
'         },
'         "assertions": {
'           "Status code is 200": true
'         }
'       },
'       {
'         "id": 3,
'         "item": {
'           "id": "336e6e17-6d3e-4b8f-a48f-b7e75cf13afb",
'           "name": "This is the second request"
'         },
'         "request": {
'           "method": "POST",
'           "url": "echo.getpostman.com/post",
'           "headers": {
'             "accept": "*/*",
'             "accept-encoding": "gzip, deflate",
'             "content-length": 18
'           },
'           "body": {
'             "contentLength": 0,
'             "mode": "formdata"
'           },
'           "timestamp": "2016-12-04T14:29:39.965Z"
'         },
'         "response": {
'           "code": 200,
'           "body": {
'             "contentLength": 347
'           },
'           "responseTime": 10,
'           "responseSize": 347,
'           "headers": {
'             "date": "Sun, 04 Dec 2016 14:29:39 GMT",
'             "content-type": "application/json",
'             "transfer-encoding": "chunked",
'             "connection": "keep-alive",
'             "content-encoding": "gzip"
'           }
'         }
'       }
'     ],
'     "failures": [
'     ]
'   }
' }

' Sample code for parsing the JSON response...
' Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

JobId = jResp.StringOf("run.info.jobId")
MonitorId = jResp.StringOf("run.info.monitorId")
Name = jResp.StringOf("run.info.name")
CollectionUid = jResp.StringOf("run.info.collectionUid")
Status = jResp.StringOf("run.info.status")
StartedAt = jResp.StringOf("run.info.startedAt")
FinishedAt = jResp.StringOf("run.info.finishedAt")
Total = jResp.IntOf("run.stats.assertions.total")
Failed = jResp.IntOf("run.stats.assertions.failed")
RequestsTotal = jResp.IntOf("run.stats.requests.total")
RequestsFailed = jResp.IntOf("run.stats.requests.failed")
i = 0
count_i = jResp.SizeOfArray("run.executions")
Do While i < count_i
    jResp.I = i
    id = jResp.IntOf("run.executions[i].id")
    Id = jResp.StringOf("run.executions[i].item.id")
    itemName = jResp.StringOf("run.executions[i].item.name")
    Method = jResp.StringOf("run.executions[i].request.method")
    v_Url = jResp.StringOf("run.executions[i].request.url")
    Content_type = jResp.StringOf("run.executions[i].request.headers.content-type")
    Accept = jResp.StringOf("run.executions[i].request.headers.accept")
    Accept_encoding = jResp.StringOf("run.executions[i].request.headers.accept-encoding")
    Content_length = jResp.IntOf("run.executions[i].request.headers.content-length")
    ContentLength = jResp.IntOf("run.executions[i].request.body.contentLength")
    Mode = jResp.StringOf("run.executions[i].request.body.mode")
    Timestamp = jResp.StringOf("run.executions[i].request.timestamp")
    Code = jResp.IntOf("run.executions[i].response.code")
    BodyContentLength = jResp.IntOf("run.executions[i].response.body.contentLength")
    ResponseTime = jResp.IntOf("run.executions[i].response.responseTime")
    ResponseSize = jResp.IntOf("run.executions[i].response.responseSize")
    Date = jResp.StringOf("run.executions[i].response.headers.date")
    HeadersContent_type = jResp.StringOf("run.executions[i].response.headers.content-type")
    Transfer_encoding = jResp.StringOf("run.executions[i].response.headers.transfer-encoding")
    Connection = jResp.StringOf("run.executions[i].response.headers.connection")
    Content_encoding = jResp.StringOf("run.executions[i].response.headers.content-encoding")
    Status_code_is_200 = jResp.BoolOf("run.executions[i].assertions.Status code is 200")
    i = i + 1
Loop
i = 0
count_i = jResp.SizeOfArray("run.failures")
Do While i < count_i
    jResp.I = i
    i = i + 1
Loop

%>
</body>
</html>

Curl Command

curl -X POST
	-H "X-API-Key: {{postman_api_key}}"
https://api.getpostman.com/monitors/{{monitor_uid}}/run

Postman Collection Item JSON

{
  "name": "Run a Monitor",
  "request": {
    "method": "POST",
    "header": [
    ],
    "url": {
      "raw": "https://api.getpostman.com/monitors/{{monitor_uid}}/run",
      "protocol": "https",
      "host": [
        "api",
        "getpostman",
        "com"
      ],
      "path": [
        "monitors",
        "{{monitor_uid}}",
        "run"
      ]
    },
    "description": "This endpoint will run the monitor instantly and wait for the monitor to run completely. It responds with the run results.\n\n> Requires <a href=\"#authentication\">API Key</a> as `X-Api-Key` request header or `apikey` URL query parameter."
  },
  "response": [
    {
      "name": "Monitor Run with No Errors",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "formdata",
          "formdata": [
          ]
        },
        "url": {
          "raw": "https://api.getpostman.com/monitors/{{monitor_uid}}/run",
          "protocol": "https",
          "host": [
            "api",
            "getpostman",
            "com"
          ],
          "path": [
            "monitors",
            "{{monitor_uid}}",
            "run"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json",
          "name": "Content-Type",
          "description": {
            "content": "",
            "type": "text/plain"
          }
        }
      ],
      "cookie": [
        {
          "expires": "Invalid Date",
          "hostOnly": false,
          "httpOnly": false,
          "domain": "getpostman.com",
          "path": "/",
          "secure": false,
          "session": false,
          "value": "yes",
          "key": "getpostmanlogin"
        },
        {
          "expires": "Invalid Date",
          "hostOnly": false,
          "httpOnly": false,
          "domain": "getpostman.com",
          "path": "/",
          "secure": false,
          "session": false,
          "value": "813af79fd620c970d59f4e41275292a96873bb5065975eccf67a84cfdc24b448037430d26c2a29f4192ad492875ed7a0d53bbea8c63f760bb75c886624b4da560fc52c7f9f9e79837bee212f90b9a59c1dfcf94b95156b20f45169eab2ed93b0c38669819143ae41e45dfaac6a5f0cf6d5e76ca40134c3bd9ef9f5532ad6d179519aa0315fe4e6e157ee9d71c9f14aa9b0455ff84f94ae7519f1139d0cccdeeef7e2aafe1696cf640ec874c62d4d5bda3dbe17cf6083fb276b7f3355eb19162430f171166d19a7d79da028c76b3c2b97e88c93dc7183bc486d9d331b93b9a20de1216e84ca74f7b6887df61785d0b65be19f56283523f211fd43a772afa39aadc3b8dc011ba680b69a7e4fcda83be75d593c8ce6c6997bf530b57a8036881ea3d5b3c28d096099ca712f5d6916b453f1b338c455c4f861da638dffd05fd2a3dd5b9dd6dbe5f2c3a30e304363c9c2bcfbe5d9abeba9c06df16d155a70c6b0a9848f7446a5646e58640d7fad642df11350f528e4bacb5c446986cddf8f0c7ad10ec1067daccca962d6fb90aad8db55c2ffa1dc8716865350d5127cb69e44cfc4511836cbc5828c1c01370c7464fef1f07c716456a57a467bc1445ea88b705ef9c0c068948a73dca851804663befbc2d9aec7cfc3a2daf377b1a8c020091216d82504ff9b38c84234ad9b6f8c596a",
          "key": "postman.sid"
        },
        {
          "expires": "Invalid Date",
          "hostOnly": false,
          "httpOnly": false,
          "domain": "getpostman.com",
          "path": "/",
          "secure": false,
          "session": false,
          "value": "b8ee90dd180562a5a21edad92ea0b987583b7599811884947b9aae88d0c060e8abb0c337534285da6defa4cfabba320b37b611b2c9586b81cb38220830b58440a2ff03756c898b89eb08799bc486c7dc08643ef1ee6e38e5988c4aafda47f1ed26c4218a23620f43d57aa19bb7f79762b394384215a7805e6b1c2cc092b6ac5ad8e8848b1ce655edba6f52820a2ac5acf3d289dda878c6a1fe62e88bb4159f605e8081afa2afce7a72a0c5d96515d566bcbf9cb3842cfc2b7f3a48badbcbfb9e5907b6451674d2c09cf6bf0b34b967edfc3a6389a834f7be21592ba2fbf7aa9eaaa6b87f99590813ded37c6e4ad17e7afcca74455b703d2d653e6ce063ce8eb195ce46c910a1b61fb71f13a8cb52ab2a7bded1b9b5a6b56ad5a66ceafc20afc70962a1f49b8abf2ce3f9e7cf3f44aaf0f41f81605b4ee612f3044d81b787a7cb128c56474a25cdc13803e9057603ead1f1fd6666ae5467ca9e250bb228dfd11dafd16345019bb7e06c58b27bf69d550cbfcef348bc746fdea61d4ea93c48d5f5e4e729adf18655669170f0a059025a79fb2a48f924d9748895a42780d1a9fae32ebf2d57df434c60b675412e217d126b9edbd28b949dfcbcbc8518aa51339d3e1d1f37c6cac4866064c54a476cf94d749a570938a7ad3ce28a9f1c5ea6623b",
          "key": "postman-staging.sid"
        }
      ],
      "body": "{\n \"run\": {\n  \"info\": {\n   \"jobId\": \"1e6ba2e1-6256-4430-bafa-a06e591523bd\",\n   \"monitorId\": \"1e6b8970-fd13-4480-b011-b3b3e3cd271d\",\n   \"name\": \"Sample Collection monitor 1 #54\",\n   \"collectionUid\": \"5852-1d3daef4-2037-4584-ab86-bafd8c8f8a55\",\n   \"status\": \"success\",\n   \"startedAt\": \"2016-12-04T14:29:39.000Z\",\n   \"finishedAt\": \"2016-12-04T14:29:39.000Z\"\n  },\n  \"stats\": {\n   \"assertions\": {\n    \"total\": 1,\n    \"failed\": 0\n   },\n   \"requests\": {\n    \"total\": 3,\n    \"failed\": 0\n   }\n  },\n  \"executions\": [\n   {\n    \"id\": 1,\n    \"item\": {\n     \"id\": \"b5e8d7dd-909c-4ba7-aef4-8609bc50b586\",\n     \"name\": \"Sample POST Request\"\n    },\n    \"request\": {\n     \"method\": \"POST\",\n     \"url\": \"echo.getpostman.com/post\",\n     \"headers\": {\n      \"content-type\": \"application/json\",\n      \"accept\": \"*/*\",\n      \"accept-encoding\": \"gzip, deflate\",\n      \"content-length\": 18\n     },\n     \"body\": {\n      \"contentLength\": 18,\n      \"mode\": \"raw\"\n     },\n     \"timestamp\": \"2016-12-04T14:29:39.520Z\"\n    },\n    \"response\": {\n     \"code\": 200,\n     \"body\": {\n      \"contentLength\": 298\n     },\n     \"responseTime\": 57,\n     \"responseSize\": 298,\n     \"headers\": {\n      \"date\": \"Sun, 04 Dec 2016 14:29:39 GMT\",\n      \"content-type\": \"application/json\",\n      \"transfer-encoding\": \"chunked\",\n      \"connection\": \"keep-alive\",\n      \"content-encoding\": \"gzip\"\n     }\n    }\n   },\n   {\n    \"id\": 2,\n    \"item\": {\n     \"id\": \"f790d046-755d-44f5-a416-b825e18dfd9d\",\n     \"name\": \"Sample GET Request\"\n    },\n    \"request\": {\n     \"method\": \"GET\",\n     \"url\": \"echo.getpostman.com/get\",\n     \"headers\": {\n      \"accept\": \"*/*\",\n      \"accept-encoding\": \"gzip, deflate\"\n     },\n     \"body\": {\n      \"contentLength\": 0,\n      \"mode\": \"formdata\"\n     },\n     \"timestamp\": \"2016-12-04T14:29:39.586Z\"\n    },\n    \"response\": {\n     \"code\": 200,\n     \"body\": {\n      \"contentLength\": 282\n     },\n     \"responseTime\": 46,\n     \"responseSize\": 282,\n     \"headers\": {\n      \"date\": \"Sun, 04 Dec 2016 14:29:39 GMT\",\n      \"content-type\": \"application/json\",\n      \"transfer-encoding\": \"chunked\",\n      \"connection\": \"keep-alive\",\n      \"content-encoding\": \"gzip\"\n     }\n    },\n    \"assertions\": {\n     \"Status code is 200\": true\n    }\n   },\n   {\n    \"id\": 3,\n    \"item\": {\n     \"id\": \"336e6e17-6d3e-4b8f-a48f-b7e75cf13afb\",\n     \"name\": \"This is the second request\"\n    },\n    \"request\": {\n     \"method\": \"POST\",\n     \"url\": \"echo.getpostman.com/post\",\n     \"headers\": {\n      \"accept\": \"*/*\",\n      \"accept-encoding\": \"gzip, deflate\",\n      \"content-length\": 18\n     },\n     \"body\": {\n      \"contentLength\": 0,\n      \"mode\": \"formdata\"\n     },\n     \"timestamp\": \"2016-12-04T14:29:39.965Z\"\n    },\n    \"response\": {\n     \"code\": 200,\n     \"body\": {\n      \"contentLength\": 347\n     },\n     \"responseTime\": 10,\n     \"responseSize\": 347,\n     \"headers\": {\n      \"date\": \"Sun, 04 Dec 2016 14:29:39 GMT\",\n      \"content-type\": \"application/json\",\n      \"transfer-encoding\": \"chunked\",\n      \"connection\": \"keep-alive\",\n      \"content-encoding\": \"gzip\"\n     }\n    }\n   }\n  ],\n  \"failures\": []\n }\n}"
    },
    {
      "name": "Monitor Run with Errors",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "formdata",
          "formdata": [
          ]
        },
        "url": {
          "raw": "https://api.getpostman.com/monitors/{{monitor_uid}}/run",
          "protocol": "https",
          "host": [
            "api",
            "getpostman",
            "com"
          ],
          "path": [
            "monitors",
            "{{monitor_uid}}",
            "run"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json",
          "name": "Content-Type",
          "description": {
            "content": "",
            "type": "text/plain"
          }
        }
      ],
      "cookie": [
        {
          "expires": "Invalid Date",
          "hostOnly": false,
          "httpOnly": false,
          "domain": "getpostman.com",
          "path": "/",
          "secure": false,
          "session": false,
          "value": "yes",
          "key": "getpostmanlogin"
        },
        {
          "expires": "Invalid Date",
          "hostOnly": false,
          "httpOnly": false,
          "domain": "getpostman.com",
          "path": "/",
          "secure": false,
          "session": false,
          "value": "813af79fd620c970d59f4e41275292a96873bb5065975eccf67a84cfdc24b448037430d26c2a29f4192ad492875ed7a0d53bbea8c63f760bb75c886624b4da560fc52c7f9f9e79837bee212f90b9a59c1dfcf94b95156b20f45169eab2ed93b0c38669819143ae41e45dfaac6a5f0cf6d5e76ca40134c3bd9ef9f5532ad6d179519aa0315fe4e6e157ee9d71c9f14aa9b0455ff84f94ae7519f1139d0cccdeeef7e2aafe1696cf640ec874c62d4d5bda3dbe17cf6083fb276b7f3355eb19162430f171166d19a7d79da028c76b3c2b97e88c93dc7183bc486d9d331b93b9a20de1216e84ca74f7b6887df61785d0b65be19f56283523f211fd43a772afa39aadc3b8dc011ba680b69a7e4fcda83be75d593c8ce6c6997bf530b57a8036881ea3d5b3c28d096099ca712f5d6916b453f1b338c455c4f861da638dffd05fd2a3dd5b9dd6dbe5f2c3a30e304363c9c2bcfbe5d9abeba9c06df16d155a70c6b0a9848f7446a5646e58640d7fad642df11350f528e4bacb5c446986cddf8f0c7ad10ec1067daccca962d6fb90aad8db55c2ffa1dc8716865350d5127cb69e44cfc4511836cbc5828c1c01370c7464fef1f07c716456a57a467bc1445ea88b705ef9c0c068948a73dca851804663befbc2d9aec7cfc3a2daf377b1a8c020091216d82504ff9b38c84234ad9b6f8c596a",
          "key": "postman.sid"
        },
        {
          "expires": "Invalid Date",
          "hostOnly": false,
          "httpOnly": false,
          "domain": "getpostman.com",
          "path": "/",
          "secure": false,
          "session": false,
          "value": "b8ee90dd180562a5a21edad92ea0b987583b7599811884947b9aae88d0c060e8abb0c337534285da6defa4cfabba320b37b611b2c9586b81cb38220830b58440a2ff03756c898b89eb08799bc486c7dc08643ef1ee6e38e5988c4aafda47f1ed26c4218a23620f43d57aa19bb7f79762b394384215a7805e6b1c2cc092b6ac5ad8e8848b1ce655edba6f52820a2ac5acf3d289dda878c6a1fe62e88bb4159f605e8081afa2afce7a72a0c5d96515d566bcbf9cb3842cfc2b7f3a48badbcbfb9e5907b6451674d2c09cf6bf0b34b967edfc3a6389a834f7be21592ba2fbf7aa9eaaa6b87f99590813ded37c6e4ad17e7afcca74455b703d2d653e6ce063ce8eb195ce46c910a1b61fb71f13a8cb52ab2a7bded1b9b5a6b56ad5a66ceafc20afc70962a1f49b8abf2ce3f9e7cf3f44aaf0f41f81605b4ee612f3044d81b787a7cb128c56474a25cdc13803e9057603ead1f1fd6666ae5467ca9e250bb228dfd11dafd16345019bb7e06c58b27bf69d550cbfcef348bc746fdea61d4ea93c48d5f5e4e729adf18655669170f0a059025a79fb2a48f924d9748895a42780d1a9fae32ebf2d57df434c60b675412e217d126b9edbd28b949dfcbcbc8518aa51339d3e1d1f37c6cac4866064c54a476cf94d749a570938a7ad3ce28a9f1c5ea6623b",
          "key": "postman-staging.sid"
        }
      ],
      "body": "{\n \"run\": {\n  \"info\": {\n   \"jobId\": \"1e6ba2e3-1aaf-4c10-bd5f-905943284b2a\",\n   \"monitorId\": \"1e6b8970-fd13-4480-b011-b3b3e3cd271d\",\n   \"name\": \"Sample Collection monitor 1 #56\",\n   \"collectionUid\": \"5852-1d3daef4-2037-4584-ab86-bafd8c8f8a55\",\n   \"status\": \"failed\",\n   \"startedAt\": \"2016-12-04T14:30:25.000Z\",\n   \"finishedAt\": \"2016-12-04T14:30:26.000Z\"\n  },\n  \"stats\": {\n   \"assertions\": {\n    \"total\": 1,\n    \"failed\": 1\n   },\n   \"requests\": {\n    \"total\": 3,\n    \"failed\": 1\n   }\n  },\n  \"executions\": [\n   {\n    \"id\": 1,\n    \"item\": {\n     \"id\": \"b5e8d7dd-909c-4ba7-aef4-8609bc50b586\",\n     \"name\": \"Sample POST Request\"\n    },\n    \"request\": {\n     \"method\": \"POST\",\n     \"url\": \"echo.getpostman.com/post\",\n     \"headers\": {\n      \"content-type\": \"application/json\",\n      \"accept\": \"*/*\",\n      \"accept-encoding\": \"gzip, deflate\",\n      \"content-length\": 18\n     },\n     \"body\": {\n      \"contentLength\": 18,\n      \"mode\": \"raw\"\n     },\n     \"timestamp\": \"2016-12-04T14:30:26.025Z\"\n    },\n    \"response\": {\n     \"code\": 200,\n     \"body\": {\n      \"contentLength\": 298\n     },\n     \"responseTime\": 26,\n     \"responseSize\": 298,\n     \"headers\": {\n      \"date\": \"Sun, 04 Dec 2016 14:30:26 GMT\",\n      \"content-type\": \"application/json\",\n      \"transfer-encoding\": \"chunked\",\n      \"connection\": \"keep-alive\",\n      \"content-encoding\": \"gzip\"\n     }\n    }\n   },\n   {\n    \"id\": 2,\n    \"item\": {\n     \"id\": \"f790d046-755d-44f5-a416-b825e18dfd9d\",\n     \"name\": \"Sample GET Request\"\n    },\n    \"request\": {\n     \"method\": \"GET\",\n     \"url\": \"echo.getpostman.com/get\",\n     \"headers\": {\n      \"accept\": \"*/*\",\n      \"accept-encoding\": \"gzip, deflate\"\n     },\n     \"body\": {\n      \"contentLength\": 0,\n      \"mode\": \"formdata\"\n     },\n     \"timestamp\": \"2016-12-04T14:30:26.093Z\"\n    },\n    \"response\": {\n     \"code\": 200,\n     \"body\": {\n      \"contentLength\": 280\n     },\n     \"responseTime\": 46,\n     \"responseSize\": 280,\n     \"headers\": {\n      \"date\": \"Sun, 04 Dec 2016 14:30:26 GMT\",\n      \"content-type\": \"application/json\",\n      \"transfer-encoding\": \"chunked\",\n      \"connection\": \"keep-alive\",\n      \"content-encoding\": \"gzip\"\n     }\n    },\n    \"assertions\": {\n     \"Status code is 400\": false\n    }\n   },\n   {\n    \"id\": 3,\n    \"item\": {\n     \"id\": \"336e6e17-6d3e-4b8f-a48f-b7e75cf13afb\",\n     \"name\": \"This is the second request\"\n    },\n    \"request\": {\n     \"method\": \"POST\",\n     \"url\": \"echo.getpostman.com/post\",\n     \"headers\": {\n      \"accept\": \"*/*\",\n      \"accept-encoding\": \"gzip, deflate\",\n      \"content-length\": 18\n     },\n     \"body\": {\n      \"contentLength\": 0,\n      \"mode\": \"formdata\"\n     },\n     \"timestamp\": \"2016-12-04T14:30:26.477Z\"\n    },\n    \"response\": {\n     \"code\": 200,\n     \"body\": {\n      \"contentLength\": 345\n     },\n     \"responseTime\": 9,\n     \"responseSize\": 345,\n     \"headers\": {\n      \"date\": \"Sun, 04 Dec 2016 14:30:26 GMT\",\n      \"content-type\": \"application/json\",\n      \"transfer-encoding\": \"chunked\",\n      \"connection\": \"keep-alive\",\n      \"content-encoding\": \"gzip\"\n     }\n    }\n   }\n  ],\n  \"failures\": [\n   {\n    \"executionId\": 2,\n    \"name\": \"AssertionError\",\n    \"message\": \"Expected 'Status code is 400' to be truthy\",\n    \"assertion\": {\n     \"Status code is 400\": false\n    }\n   }\n  ]\n }\n}"
    }
  ]
}