次の方法で共有


Attachments - Create Test Run Attachment

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

URI パラメーター

名前 / 必須 説明
organization
path True

string

Azure DevOps 組織の名前です。

project
path True

string

プロジェクト ID またはプロジェクト名

runId
path True

integer

int32
api-version
query True

string

使う API のバージョン。 このバージョンの API を使用するには、これを '7.1-preview.1' に設定する必要があります。

要求本文

名前 説明
attachmentType

string

既定では、添付ファイルの種類は GeneralAttachment になります。 次のいずれかの型を指定できます。 { GeneralAttachment、AfnStrip、BugFilingData、CodeCoverage、IntermediateCollectorData、RunConfig、TestImpactDetails、TmiTestRunDeploymentFiles、TmiTestRunReverseDeploymentFiles、TmiTestResultDetail、TmiTestRunSummary }

comment

string

添付ファイルに関連付けられているコメント

fileName

string

添付ファイル名

stream

string

Base64 でエンコードされたファイル ストリーム

応答

名前 説明
200 OK

TestAttachmentReference

正常な操作

セキュリティ

oauth2

型: oauth2
フロー: accessCode
Authorization URL (承認 URL): https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL (トークン 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_write テスト 計画、ケース、結果、その他のテスト管理関連の成果物を読み取り、作成、更新する機能を付与します。

定義

名前 説明
TestAttachmentReference

テスト添付ファイルへの参照。

TestAttachmentRequestModel

添付ファイル要求モデルをテストする

TestAttachmentReference

テスト添付ファイルへの参照。

名前 説明
id

integer

添付ファイルの ID。

url

string

添付ファイルをダウンロードする URL。

TestAttachmentRequestModel

添付ファイル要求モデルをテストする

名前 説明
attachmentType

string

既定では、添付ファイルの種類は GeneralAttachment になります。 次のいずれかの型を指定できます。 { GeneralAttachment、AfnStrip、BugFilingData、CodeCoverage、IntermediateCollectorData、RunConfig、TestImpactDetails、TmiTestRunDeploymentFiles、TmiTestRunReverseDeploymentFiles、TmiTestResultDetail、TmiTestRunSummary }

comment

string

添付ファイルに関連付けられているコメント

fileName

string

添付ファイル名

stream

string

Base64 でエンコードされたファイル ストリーム