Commit 535b547f authored by Darshana Herath's avatar Darshana Herath
Browse files

Adding exception handling!

parent 14f701bc
Pipeline #3464 failed with stages
in 9 seconds
......@@ -2089,12 +2089,16 @@
"/*pm.test(\"Status description - Records created and/or updated successfully.\", function () {",
" pm.response.to.have.status(\"Records created and/or updated successfully.\");",
"});*/",
"try{",
"var jsonData = pm.response.json();",
"pm.test(\"Wellbore Record ingested: \" + jsonData.recordIds[0], function () { ",
" pm.expect(jsonData.recordIds[0].length > 0);",
" console.log(jsonData.recordIds);",
"});",
"",
"}",
"catch (e) {",
" console.log(e.message);",
"}",
"pm.test(\"No records were skipped\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.skippedRecordIds.length).to.equal(0);",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment