Forum Discussion

sandhyauk's avatar
sandhyauk
Occasional Visitor
2 years ago

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 (errres) {
    pm.globals.set("token"res.json().access_token);
  });
});

1 Reply

  • MisterB's avatar
    MisterB
    Champion Level 3

    If you haven't fixed this yet it sounds like you've not added test steps within your test case.  If you still need support there is of course the help documentation which should mention test steps, and there is also SmartBear support:

     

    Help

     

    Support Portal