gpt4 book ai didi

web-services - 如何使用 REST API 在 Rally 中更新测试用例的最后判决

转载 作者:行者123 更新时间:2023-11-28 20:54:40 26 4
gpt4 key购买 nike

我成功地能够更新我的测试用例的判决,但是在更新最后的判决时使用 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"
}

关于web-services - 如何使用 REST API 在 Rally 中更新测试用例的最后判决,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29696948/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com