Edit

TestHttpClientBase.CreateTestIterationResultAttachmentAsync Method

Definition

Overloads

CreateTestIterationResultAttachmentAsync(TestAttachmentRequestModel, Guid, Int32, Int32, Int32, String, Object, CancellationToken)

[Preview API] Attach a file to test step result

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference> CreateTestIterationResultAttachmentAsync(Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel attachmentRequestModel, Guid project, int runId, int testCaseResultId, int iterationId, string actionPath = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateTestIterationResultAttachmentAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel * Guid * int * int * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference>
override this.CreateTestIterationResultAttachmentAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel * Guid * int * int * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference>

Parameters

attachmentRequestModel
TestAttachmentRequestModel

Attachment details TestAttachmentRequestModel

project
Guid

Project ID

runId
Int32

ID of the test run that contains the result.

testCaseResultId
Int32

ID of the test result that contains the iteration

iterationId
Int32

ID of the test result iteration.

actionPath
String

Hex value of test result action path.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreateTestIterationResultAttachmentAsync(TestAttachmentRequestModel, String, Int32, Int32, Int32, String, Object, CancellationToken)

[Preview API] Attach a file to test step result

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference> CreateTestIterationResultAttachmentAsync(Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel attachmentRequestModel, string project, int runId, int testCaseResultId, int iterationId, string actionPath = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateTestIterationResultAttachmentAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel * string * int * int * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference>
override this.CreateTestIterationResultAttachmentAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel * string * int * int * int * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference>

Parameters

attachmentRequestModel
TestAttachmentRequestModel

Attachment details TestAttachmentRequestModel

project
String

Project ID or project name

runId
Int32

ID of the test run that contains the result.

testCaseResultId
Int32

ID of the test result that contains the iteration

iterationId
Int32

ID of the test result iteration.

actionPath
String

Hex value of test result action path.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to