Testfailuretype - Create

建立新的測試失敗類型

POST https://vstmr.dev.azure.com/{organization}/{project}/_apis/testresults/testfailuretype?api-version=7.1-preview.1

URI 參數

名稱 位於 必要 類型 Description
organization
path True

string

Azure DevOps 組織的名稱。

project
path True

string

項目識別碼或項目名稱

api-version
query True

string

要使用的 API 版本。 這應該設定為 『7.1-preview.1』 以使用此版本的 API。

要求本文

名稱 類型 Description
name

string

測試失敗類型的名稱

回應

名稱 類型 Description
200 OK

TestResultFailureType

成功作業

安全性

oauth2

類型: oauth2
Flow: 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

範圍

名稱 Description
vso.test_write 授與讀取、建立和更新測試計劃、案例、結果和其他測試管理相關成品的能力。

定義

名稱 Description
TestResultFailureType

測試失敗類型資源

TestResultFailureTypeRequestModel

測試失敗類型要求模型

TestResultFailureType

測試失敗類型資源

名稱 類型 Description
id

integer (int32)

測試失敗類型的識別碼

name

string

測試失敗類型的名稱

TestResultFailureTypeRequestModel

測試失敗類型要求模型

名稱 類型 Description
name

string

測試失敗類型的名稱