Aracılığıyla paylaş


Result Meta Data - Update

Test sonucu meta verilerinin özelliklerini güncelleştirme

PATCH https://vstmr.dev.azure.com/{organization}/{project}/_apis/testresults/results/resultmetadata/{testCaseReferenceId}?api-version=7.1-preview.4

URI Parametreleri

Name İçinde Gerekli Tür Description
organization
path True

string

Azure DevOps kuruluşunun adı.

project
path True

string

Proje kimliği veya proje adı

testCaseReferenceId
path True

integer (int32)

Güncelleştirilecek Test Sonucunun TestCaseReference Kimliği.

api-version
query True

string

Kullanılacak API'nin sürümü. Bu, API'nin bu sürümünü kullanmak için '7.1-preview.4' olarak ayarlanmalıdır.

İstek Gövdesi

Name Tür Description
flakyIdentifiers

TestFlakyIdentifier[]

Flaky Tanımlayıcıları Listesi

Yanıtlar

Name Tür Description
200 OK

TestResultMetaData

başarılı işlem

Güvenlik

oauth2

Tür: oauth2
Akış: accessCode
Yetkilendirme URL’si: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Belirteç URL'si: 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

Kapsamlar

Name Description
vso.test_write Test planlarını, çalışmaları, sonuçları ve test yönetimiyle ilgili diğer yapıtları okuma, oluşturma ve güncelleştirme olanağı sağlar.

Örnekler

Update test result metadata

Örnek isteği

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
    }
  ]
}

Örnek yanıt

{
  "testCaseReferenceId": 1,
  "priority": 0
}

Tanımlar

Name Description
TestFlakyIdentifier

Test Flaky Tanımlayıcısı

TestResultMetaData

Bir test sonucunun Meta Verilerini temsil eder.

TestResultMetaDataUpdateInput

TestResultMetaData Girişini temsil eder

TestFlakyIdentifier

Test Flaky Tanımlayıcısı

Name Tür Description
branchName

string

Flakiness'in İşaretli/İşaretsiz olması gereken Dal Adı

isFlaky

boolean

Flakiness için Durum

TestResultMetaData

Bir test sonucunun Meta Verilerini temsil eder.

Name Tür Description
automatedTestName

string

Test sonucunun AutomatedTestName'i.

automatedTestStorage

string

Test sonucunun AutomatedTestStorage değeri.

flakyIdentifiers

TestFlakyIdentifier[]

TestCaseReferenceId için Flaky Tanımlayıcı listesi

owner

string

Test sonucunun sahibi.

priority

integer (int32)

Test sonucunun önceliği.

testCaseReferenceId

integer (int32)

TestCaseReference kimliği.

testCaseTitle

string

Test sonucunun TestCaseTitle değeri.

TestResultMetaDataUpdateInput

TestResultMetaData Girişini temsil eder

Name Tür Description
flakyIdentifiers

TestFlakyIdentifier[]

Flaky Tanımlayıcıları Listesi