Aracılığıyla paylaş


Attachments - Create Test Result Attachment

POST https://vstmr.dev.azure.com/{organization}/{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments?api-version=7.1-preview.1

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ı

runId
path True

integer

int32
testCaseResultId
path True

integer

int32
api-version
query True

string

Kullanılacak API sürümü. Api'nin bu sürümünü kullanmak için bu değer '7.1-preview.1' olarak ayarlanmalıdır.

İstek Gövdesi

Name Tür Description
attachmentType

string

Ek türü Varsayılan olarak GenelAttachment olur. Aşağıdaki türlerden biri olabilir. { GeneralAttachment, AfnStrip, BugFilingData, CodeCoverage, IntermediateCollectorData, RunConfig, TestImpactDetails, TmiTestRunDeploymentFiles, TmiTestRunReverseDeploymentFiles, TmiTestResultDetail, TmiTestRunSummary }

comment

string

Ek ile ilişkili açıklama

fileName

string

Ek dosya adı

stream

string

Base64 kodlanmış dosya akışı

Yanıtlar

Name Tür Description
200 OK

TestAttachmentReference

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ını, sonuçlarını ve diğer test yönetimiyle ilgili yapıtları okuma, oluşturma ve güncelleştirme olanağı sağlar.

Tanımlar

Name Description
TestAttachmentReference

Test eki başvurusu.

TestAttachmentRequestModel

Ek isteği modelini test etme

TestAttachmentReference

Test eki başvurusu.

Name Tür Description
id

integer

Ekin kimliği.

url

string

Eki indirme url'si.

TestAttachmentRequestModel

Ek isteği modelini test etme

Name Tür Description
attachmentType

string

Ek türü Varsayılan olarak GenelAttachment olur. Aşağıdaki türlerden biri olabilir. { GeneralAttachment, AfnStrip, BugFilingData, CodeCoverage, IntermediateCollectorData, RunConfig, TestImpactDetails, TmiTestRunDeploymentFiles, TmiTestRunReverseDeploymentFiles, TmiTestResultDetail, TmiTestRunSummary }

comment

string

Ek ile ilişkili açıklama

fileName

string

Ek dosya adı

stream

string

Base64 kodlanmış dosya akışı