Skip to content

Commit

Permalink
Added test response on all postman response
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoGiuliani committed Feb 9, 2024
1 parent b464f4f commit 307db87
Showing 1 changed file with 40 additions and 8 deletions.
48 changes: 40 additions & 8 deletions src/test/postman/postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
"postman.setEnvironmentVariable(\"initiativeId\", jsonData.initiatives[0].id);\r",
"\r",
"console.log(\"RESPONSE:\");\r",
"console.log(jsonData);"
"console.log(jsonData);\r",
"\r",
"pm.test(\"Status code is 200\", function () {\r",
" pm.response.to.have.status(200);\r",
"});"
],
"type": "text/javascript"
}
Expand Down Expand Up @@ -150,7 +154,11 @@
"postman.setEnvironmentVariable(\"milTransactionId\", jsonData.milTransactionId);\r",
"\r",
"console.log(\"RESPONSE:\");\r",
"console.log(jsonData);"
"console.log(jsonData);\r",
"\r",
"pm.test(\"Status code is 201\", function () {\r",
" pm.response.to.have.status(201);\r",
"});"
],
"type": "text/javascript"
}
Expand Down Expand Up @@ -305,7 +313,11 @@
"postman.setEnvironmentVariable(\"exponent\", jsonData.e);\r",
"\r",
"console.log(\"RESPONSE:\");\r",
"console.log(jsonData);"
"console.log(jsonData);\r",
"\r",
"pm.test(\"Status code is 200\", function () {\r",
" pm.response.to.have.status(200);\r",
"});"
],
"type": "text/javascript"
}
Expand Down Expand Up @@ -698,7 +710,11 @@
"postman.setEnvironmentVariable(\"encSessionKey\", responseBody);\r",
"\r",
"console.log(\"RESPONSE:\");\r",
"console.log(responseBody);"
"console.log(responseBody);\r",
"\r",
"pm.test(\"Status code is 200\", function () {\r",
" pm.response.to.have.status(200);\r",
"});"
],
"type": "text/javascript"
}
Expand Down Expand Up @@ -746,7 +762,11 @@
"script": {
"exec": [
"console.log(\"RESPONSE:\");\r",
"console.log(responseBody);"
"console.log(responseBody);\r",
"\r",
"pm.test(\"Status code is 200\", function () {\r",
" pm.response.to.have.status(200);\r",
"});"
],
"type": "text/javascript"
}
Expand Down Expand Up @@ -932,7 +952,11 @@
"script": {
"exec": [
"console.log(\"RESPONSE:\");\r",
"console.log(responseBody);"
"console.log(responseBody);\r",
"\r",
"pm.test(\"Status code is 200\", function () {\r",
" pm.response.to.have.status(200);\r",
"});"
],
"type": "text/javascript"
}
Expand Down Expand Up @@ -1020,7 +1044,11 @@
"script": {
"exec": [
"console.log(\"RESPONSE:\");\r",
"console.log(responseBody);"
"console.log(responseBody);\r",
"\r",
"pm.test(\"Status code is 204\", function () {\r",
" pm.response.to.have.status(204);\r",
"});"
],
"type": "text/javascript"
}
Expand Down Expand Up @@ -1143,7 +1171,11 @@
"script": {
"exec": [
"console.log(\"RESPONSE:\");\r",
"console.log(responseBody);"
"console.log(responseBody);\r",
"\r",
"pm.test(\"Status code is 200\", function () {\r",
" pm.response.to.have.status(200);\r",
"});"
],
"type": "text/javascript"
}
Expand Down

0 comments on commit 307db87

Please sign in to comment.