"pm.test(\"params.errmsg should be \\\"Required fields for search content are missing\\\"\", () => {",
" pm.expect(jsonResponse.params.errmsg).to.eql(\"Required fields for search content are missing\");",
"});"
],
"type":"text/javascript"
}
}
],
"protocolProfileBehavior":{
"disabledSystemHeaders":{
"connection":true
}
},
"request":{
"method":"POST",
"header":[
{
"key":"Content-Type",
"value":"application/json"
},
{
"key":"X-Authenticated-User-token",
"value":"{{keycloak_access_token}}"
},
{
"key":"Authorization",
"value":"{{kong_api_key}}"
},
{
"key":"X-Channel-Id",
"value":"{{channel_id}}",
"type":"text",
"disabled":true
}
],
"body":{
"mode":"raw",
"raw":"{\n\"request\": {\n }\n}"
},
"url":{
"raw":"{{host}}/action/composite/v3/search",
"host":[
"{{host}}"
],
"path":[
"action",
"composite",
"v3",
"search"
]
},
"description":"This API is associated with batch creation\nThe endpoint for Creates a Batch is /batch/create\nThe fields marked with an asterisk (*) are mandatory. They cannot be null or empty."
},
"response":[]
},
{
"name":"500 - parameter cannot be negative",
"event":[
{
"listen":"test",
"script":{
"exec":[
"let jsonResponse = pm.response.json()",
"",
"//Verification",
"pm.test(\"Status code is 500\", () => {",
" pm.response.to.have.status(500)",
"});",
"",
"pm.test(\"Verify keys and data type of the response result\", () => {",
"description":"This API is associated with batch creation\nThe endpoint for Creates a Batch is /batch/create\nThe fields marked with an asterisk (*) are mandatory. They cannot be null or empty."
},
"response":[]
}
],
"event":[
{
"listen":"prerequest",
"script":{
"type":"text/javascript",
"exec":[
""
]
}
},
{
"listen":"test",
"script":{
"type":"text/javascript",
"exec":[
"let jsonResponse = pm.response.json();",
"",
"pm.test(\"Verify keys and data type of the params in negative scenario\", () => {",