Azure devops rest API 邮递员错误值不能为空。\r\nParameter 名称:TestPointUpdateParams
Azure devops rest API postman error Value cannot be null.\r\nParameter name: TestPointUpdateParams
你好,我正在尝试使用 postman 从 active 更新 azure devops rest api 测试点的结果 passed
这是我正在使用的请求:
PATCH https://dev.azure.com/fodservices/Training%20projects/_apis/testplan/Plans/70152/Suites/70154/TestPoint?api-version=6.1-preview.2
这是正文
{
"value" : [
{
"id": 11431,
"isActive": false,
"results": {
"outcome": "passed"
}
}
]
}
我收到 400 错误请求,消息是:值不能为空。\r\nParameter 名称:TestPointUpdateParams
任何人都可以帮助解决我做错的事情
根据我的研究,我们需要将请求正文更新如下json。详情请参考here
[
{
"id": 1,
"results": {
"outcome": "passed"
}
}
]
例如
PATCH https://dev.azure.com/{organization}/{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/points/{pointIds}?api-version=6.0
[
{
"id": 1,
"results": {
"outcome": "passed"
}
}
]
你好,我正在尝试使用 postman 从 active 更新 azure devops rest api 测试点的结果 passed
这是我正在使用的请求:
PATCH https://dev.azure.com/fodservices/Training%20projects/_apis/testplan/Plans/70152/Suites/70154/TestPoint?api-version=6.1-preview.2
这是正文
{
"value" : [
{
"id": 11431,
"isActive": false,
"results": {
"outcome": "passed"
}
}
]
}
我收到 400 错误请求,消息是:值不能为空。\r\nParameter 名称:TestPointUpdateParams 任何人都可以帮助解决我做错的事情
根据我的研究,我们需要将请求正文更新如下json。详情请参考here
[
{
"id": 1,
"results": {
"outcome": "passed"
}
}
]
例如
PATCH https://dev.azure.com/{organization}/{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/points/{pointIds}?api-version=6.0
[
{
"id": 1,
"results": {
"outcome": "passed"
}
}
]