PowerBuilder / Postman API / Run a Monitor
Back to Collection Items
integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_Resp
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
integer li_Id
string ls_Id
string ls_ItemName
string ls_Method
string ls_V_Url
string ls_Content_type
string ls_Accept
string ls_Accept_encoding
integer li_Content_length
integer li_ContentLength
string ls_Mode
string ls_Timestamp
integer li_Code
integer li_BodyContentLength
integer li_ResponseTime
integer li_ResponseSize
string ls_Date
string ls_HeadersContent_type
string ls_Transfer_encoding
string ls_Connection
string ls_Content_encoding
integer li_Status_code_is_200
string ls_JobId
string ls_MonitorId
string ls_Name
string ls_CollectionUid
string ls_Status
string ls_StartedAt
string ls_FinishedAt
integer li_Total
integer li_Failed
integer li_RequestsTotal
integer li_RequestsFailed
integer i
integer li_Count_i
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
destroy loo_Http
MessageBox("Error","Connecting to COM object failed")
return
end if
loo_Http.SetRequestHeader("X-API-Key","{{postman_api_key}}")
loo_Resp = loo_Http.QuickRequest("POST","https://api.getpostman.com/monitors/{{monitor_uid}}/run")
if loo_Http.LastMethodSuccess = 0 then
Write-Debug loo_Http.LastErrorText
destroy loo_Http
return
end if
loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")
loo_Resp.GetBodySb(loo_SbResponseBody)
loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.JsonObject")
loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0
Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()
li_RespStatusCode = loo_Resp.StatusCode
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
Write-Debug "Response Header:"
Write-Debug loo_Resp.Header
Write-Debug "Failed."
destroy loo_Resp
destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp
return
end if
destroy loo_Resp
// 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
ls_JobId = loo_JResp.StringOf("run.info.jobId")
ls_MonitorId = loo_JResp.StringOf("run.info.monitorId")
ls_Name = loo_JResp.StringOf("run.info.name")
ls_CollectionUid = loo_JResp.StringOf("run.info.collectionUid")
ls_Status = loo_JResp.StringOf("run.info.status")
ls_StartedAt = loo_JResp.StringOf("run.info.startedAt")
ls_FinishedAt = loo_JResp.StringOf("run.info.finishedAt")
li_Total = loo_JResp.IntOf("run.stats.assertions.total")
li_Failed = loo_JResp.IntOf("run.stats.assertions.failed")
li_RequestsTotal = loo_JResp.IntOf("run.stats.requests.total")
li_RequestsFailed = loo_JResp.IntOf("run.stats.requests.failed")
i = 0
li_Count_i = loo_JResp.SizeOfArray("run.executions")
do while i < li_Count_i
loo_JResp.I = i
li_Id = loo_JResp.IntOf("run.executions[i].id")
ls_Id = loo_JResp.StringOf("run.executions[i].item.id")
ls_ItemName = loo_JResp.StringOf("run.executions[i].item.name")
ls_Method = loo_JResp.StringOf("run.executions[i].request.method")
ls_V_Url = loo_JResp.StringOf("run.executions[i].request.url")
ls_Content_type = loo_JResp.StringOf("run.executions[i].request.headers.content-type")
ls_Accept = loo_JResp.StringOf("run.executions[i].request.headers.accept")
ls_Accept_encoding = loo_JResp.StringOf("run.executions[i].request.headers.accept-encoding")
li_Content_length = loo_JResp.IntOf("run.executions[i].request.headers.content-length")
li_ContentLength = loo_JResp.IntOf("run.executions[i].request.body.contentLength")
ls_Mode = loo_JResp.StringOf("run.executions[i].request.body.mode")
ls_Timestamp = loo_JResp.StringOf("run.executions[i].request.timestamp")
li_Code = loo_JResp.IntOf("run.executions[i].response.code")
li_BodyContentLength = loo_JResp.IntOf("run.executions[i].response.body.contentLength")
li_ResponseTime = loo_JResp.IntOf("run.executions[i].response.responseTime")
li_ResponseSize = loo_JResp.IntOf("run.executions[i].response.responseSize")
ls_Date = loo_JResp.StringOf("run.executions[i].response.headers.date")
ls_HeadersContent_type = loo_JResp.StringOf("run.executions[i].response.headers.content-type")
ls_Transfer_encoding = loo_JResp.StringOf("run.executions[i].response.headers.transfer-encoding")
ls_Connection = loo_JResp.StringOf("run.executions[i].response.headers.connection")
ls_Content_encoding = loo_JResp.StringOf("run.executions[i].response.headers.content-encoding")
li_Status_code_is_200 = loo_JResp.BoolOf("run.executions[i].assertions.Status code is 200")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("run.failures")
do while i < li_Count_i
loo_JResp.I = i
i = i + 1
loop
destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp
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}"
}
]
}