我已成功更新我的测试用例的判决,但在使用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" }}
有人可以帮助我更新最后的判决吗?。
答案 0 :(得分:0)
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"
}