Workitems - Query Test Result Work Items

基于筛选器查询测试结果工作项

GET https://vstmr.dev.azure.com/{organization}/{project}/_apis/testresults/results/workitems?workItemCategory={workItemCategory}&api-version=7.1-preview.2
GET https://vstmr.dev.azure.com/{organization}/{project}/_apis/testresults/results/workitems?workItemCategory={workItemCategory}&automatedTestName={automatedTestName}&testCaseId={testCaseId}&maxCompleteDate={maxCompleteDate}&days={days}&$workItemCount={$workItemCount}&api-version=7.1-preview.2

URI 参数

名称 必需 类型 说明
organization
path True

string

Azure DevOps 组织的名称。

project
path True

string

项目 ID 或项目名称

api-version
query True

string

要使用的 API 版本。 应将其设置为“7.1-preview.2”才能使用此版本的 API。

workItemCategory
query True

string

可以使用值 Microsoft.BugCategory 或所有 (来获取所有工作项)

$workItemCount
query

integer

int32
automatedTestName
query

string

days
query

integer

int32
maxCompleteDate
query

string

date-time
testCaseId
query

integer

int32

响应

名称 类型 说明
200 OK

WorkItemReference[]

成功的操作

安全性

oauth2

类型: oauth2
流向: accessCode
授权 URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
令牌 URL: https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer

作用域

名称 说明
vso.test 授予读取测试计划、事例、结果和其他测试管理相关项目的能力。

定义

WorkItemReference

WorkItem 引用详细信息。

名称 类型 说明
id

string

WorkItem ID。

name

string

WorkItem 名称。

type

string

WorkItem 类型。

url

string

WorkItem URL。 有效值: (Bug、任务、用户情景、测试用例)

webUrl

string

WorkItem WebUrl。