我可以成功更新测试用例的判决,但是在使用https://rally1.rallydev.com/slm/webservice/v2.0/testcase/28428199725?key=5d4291cf-XXXX-bb3e-b015f486695f更新最后判决时,出现以下错误:

"Warnings": [
        "Ignored JSON element Result.Build during processing of this request.",
        "Ignored JSON element Result.LastRun during processing of this request.",
        "Ignored JSON element Result.LastVerdict during processing of this request."


我在有效载荷下面使用了:

{"Result":{"Build":"12.0.0.260", "LastRun":"2015-04-16T19:56:05.000Z", "LastVerdict":"Fail" }}


有人可以帮助我更新最后的判决吗?

最佳答案

LastVerdict从记录的最新TestCaseResult汇总到TestCase。因此,您应该创建一个新的TestCaseResult并将其关联到您的TestCase:

POST https://rally1.rallydev.com/slm/webservice/v2.0/testcaseresult/create

身体:

{
    "TestCaseResult": {
        "Build": "master-39721",
        "Date": "2015-04-02T21:42:13.000Z",
        "Notes": "Logs indicate pass, however code still doesn't produce expected result.",
        "TestCase": {
            "_ref": "https://rally1.rallydev.com/slm/webservice/v2.0/testcase/28428199725",
        },
        "Verdict": "Inconclusive"
}

07-24 21:03