Edit

TestHttpClientBase.GetTestResultAttachmentContentAsync Method

Definition

Overloads

GetTestResultAttachmentContentAsync(String, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Download a test result attachment by its ID.

GetTestResultAttachmentContentAsync(Guid, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Download a test result attachment by its ID.

GetTestResultAttachmentContentAsync(String, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Download a test result attachment by its ID.

public virtual System.Threading.Tasks.Task<System.IO.Stream> GetTestResultAttachmentContentAsync(string project, int runId, int testCaseResultId, int attachmentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestResultAttachmentContentAsync : string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetTestResultAttachmentContentAsync : string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>

Parameters

project
String

Project ID or project name

runId
Int32

ID of the test run that contains the testCaseResultId.

testCaseResultId
Int32

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

attachmentId
Int32

ID of the test result attachment to be downloaded.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetTestResultAttachmentContentAsync(Guid, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Download a test result attachment by its ID.

public virtual System.Threading.Tasks.Task<System.IO.Stream> GetTestResultAttachmentContentAsync(Guid project, int runId, int testCaseResultId, int attachmentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestResultAttachmentContentAsync : Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetTestResultAttachmentContentAsync : Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>

Parameters

project
Guid

Project ID

runId
Int32

ID of the test run that contains the testCaseResultId.

testCaseResultId
Int32

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

attachmentId
Int32

ID of the test result attachment to be downloaded.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to