English 中文(简体)
联系测试结果与发布阶段或环境
原标题:Link test results to a release stage or environment in Azure Devops through API

我正在出版测试结果“测试计划”和“APIC”版本,我已设法将测试结果与“释放”版本联系起来,但我未能将结果与环境(或与释放阶段联系起来,因为部署阶段是释放阶段)。

通过派遣以下吉大港定居人士协会机构,利用,Create Runpoint ,

{ 
"name":"Test results",
"automated":true,
"plan":{"id":XXXX},
"pointIds":[AAA, BBB, CCC],
"releaseReference":
 {
  "id": XX,
  "name":"xxxxxxxxxxxxxxxx",
  "definitionId":YY,
  "environmentId":ZZZ,
  "environmentName":"zzzzz",
  "environmentDefinitionId":DD
 }
}

我只得到以下联系:

“enterography

我没有什么数据来把释放阶段填满在我的测验中? 以及从哪里收到过该软件?

问题回答

我试图与以下请求机构合作,可以按预期开展工作。 您可参考其更新其请求机构。

{
    "name": "<name>",
    "automated": true,
    "iteration": "<iteration>",
    "owner": {
        xxxx
    },
    "plan": {
        "id": "<planId>",
        "name": "<planName>",
        "url": "https://dev.azure.com/<orgName>/<projName>/_apis/test/Plans/<planId>"
    },
    "releaseUri": "vstfs:///ReleaseManagement/Release/<releaseId>",
    "releaseEnvironmentUri": "vstfs:///ReleaseManagement/Environment/<environmentId>",
    "releaseReference": {
        "id": <releaseId>,
        "name": "<releaseName>",
        "environmentId": <environmentId>,
        "environmentName": "vstfs:///ReleaseManagement/Environment/<environmentId>",
        "definitionId": <definitionId>,
        "environmentDefinitionId": <environmentDefinitionId>,
        "creationDate": "<creationDate>",
        "environmentCreationDate": "<environmentCreationDate>",
        "attempt": 1
    }
}




相关问题
Team foundation server in the cloud?

We have been using TFS on our own server for a while. We would like to move it in the cloud. Is there any good hosted service? Note: we would like to import all our source and projects

热门标签