Edit

TestHttpClientBase.GetTestSubResultAttachmentsAsync Method

Definition

Overloads

GetTestSubResultAttachmentsAsync(Guid, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Get list of test sub result attachments

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachment>> GetTestSubResultAttachmentsAsync(Guid project, int runId, int testCaseResultId, int testSubResultId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestSubResultAttachmentsAsync : Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachment>>
override this.GetTestSubResultAttachmentsAsync : Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachment>>

Parameters

project
Guid

Project ID

runId
Int32

ID of the test run that contains the result.

testCaseResultId
Int32

ID of the test results that contains sub result.

testSubResultId
Int32

ID of the test sub result whose attachment has to be downloaded

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetTestSubResultAttachmentsAsync(String, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Get list of test sub result attachments

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachment>> GetTestSubResultAttachmentsAsync(string project, int runId, int testCaseResultId, int testSubResultId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestSubResultAttachmentsAsync : string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachment>>
override this.GetTestSubResultAttachmentsAsync : string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachment>>

Parameters

project
String

Project ID or project name

runId
Int32

ID of the test run that contains the result.

testCaseResultId
Int32

ID of the test results that contains sub result.

testSubResultId
Int32

ID of the test sub result whose attachment has to be downloaded

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to