Result Meta Data - Update
更新測試結果元數據的屬性
PATCH https://vstmr.dev.azure.com/{organization}/{project}/_apis/testresults/results/resultmetadata/{testCaseReferenceId}?api-version=7.1-preview.4
URI 參數
| 名稱 | 位於 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
organization
|
path | True |
string |
Azure DevOps 組織的名稱。 |
|
project
|
path | True |
string |
項目識別碼或項目名稱 |
|
test
|
path | True |
integer (int32) |
要更新之測試結果的 TestCaseReference 識別符。 |
|
api-version
|
query | True |
string |
要使用的 API 版本。 這應該設定為 『7.1-preview.4』 以使用此版本的 API。 |
要求本文
| 名稱 | 類型 | Description |
|---|---|---|
| flakyIdentifiers |
Flaky 識別符清單 |
回應
| 名稱 | 類型 | Description |
|---|---|---|
| 200 OK |
成功作業 |
安全性
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 | 授與讀取、建立和更新測試計劃、案例、結果和其他測試管理相關成品的能力。 |
範例
Update test result metadata
範例要求
PATCH https://vstmr.dev.azure.com/fabrikam/Fabrikam/_apis/testresults/results/resultmetadata/1?api-version=7.1-preview.4
{
"flakyIdentifiers": [
{
"branchName": "refs/heads/master",
"isFlaky": true
}
]
}
範例回覆
{
"testCaseReferenceId": 1,
"priority": 0
}
定義
| 名稱 | Description |
|---|---|
|
Test |
測試 Flaky 識別碼 |
|
Test |
表示測試結果的元數據。 |
|
Test |
代表TestResultMetaData輸入 |
TestFlakyIdentifier
測試 Flaky 識別碼
| 名稱 | 類型 | Description |
|---|---|---|
| branchName |
string |
Flakiness 必須標示/未標記的分支名稱 |
| isFlaky |
boolean |
Flakiness 的狀態 |
TestResultMetaData
表示測試結果的元數據。
| 名稱 | 類型 | Description |
|---|---|---|
| automatedTestName |
string |
測試結果的 AutomatedTestName。 |
| automatedTestStorage |
string |
測試結果的 AutomatedTestStorage。 |
| flakyIdentifiers |
TestCaseReferenceId 的 Flaky 標識符清單 |
|
| owner |
string |
測試結果的擁有者。 |
| priority |
integer (int32) |
測試結果的優先順序。 |
| testCaseReferenceId |
integer (int32) |
TestCaseReference 的標識符。 |
| testCaseTitle |
string |
測試結果的 TestCaseTitle。 |
TestResultMetaDataUpdateInput
代表TestResultMetaData輸入
| 名稱 | 類型 | Description |
|---|---|---|
| flakyIdentifiers |
Flaky 識別符清單 |