sandhyauk
3 years agoOccasional Visitor
Test to write to zphyr scales -{"errorCode":400,"message":"createTestCaseTestSteps: must not be null
// Report to Zephyr
pm.test("Report to Zephyr.", function () {
pm.sendRequest({
method: 'POST',
header: {
'Content-Type': 'application/json',
'Authorization': zephyrAuth
},
body: {"mode": "APPEND",
"items": [
{
"inline": {
"description": "AUTO2 Attempt to login to the application",
"testData": "Username = SmartBear Password = weLoveAtlassian",
"expectedResult": "Login succeeds, web-app redirects to the dashboard view",
"customFields": null
},
"testCase": {
"testCaseKey": "POS-T18",
}
}
]
}
}, function (err, res) {
pm.globals.set("token", res.json().access_token);
});
});