Edit

TestHttpClientBase.GetTestRunAttachmentZipAsync Method

Definition

Overloads

GetTestRunAttachmentZipAsync(String, Int32, Int32, Object, CancellationToken)

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

GetTestRunAttachmentZipAsync(Guid, Int32, Int32, Object, CancellationToken)

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

GetTestRunAttachmentZipAsync(String, Int32, Int32, Object, CancellationToken)

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

public virtual System.Threading.Tasks.Task<System.IO.Stream> GetTestRunAttachmentZipAsync(string project, int runId, int attachmentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestRunAttachmentZipAsync : string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetTestRunAttachmentZipAsync : string * 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 whose attachment has to be downloaded.

attachmentId
Int32

ID of the test run attachment to be downloaded.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetTestRunAttachmentZipAsync(Guid, Int32, Int32, Object, CancellationToken)

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

public virtual System.Threading.Tasks.Task<System.IO.Stream> GetTestRunAttachmentZipAsync(Guid project, int runId, int attachmentId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestRunAttachmentZipAsync : Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetTestRunAttachmentZipAsync : Guid * 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 whose attachment has to be downloaded.

attachmentId
Int32

ID of the test run attachment to be downloaded.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to