Edit

TestHttpClientBase.GetTestSubResultAttachmentContentAsync Method

Definition

Overloads

GetTestSubResultAttachmentContentAsync(Guid, Int32, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Download a test sub result attachment

public virtual System.Threading.Tasks.Task<System.IO.Stream> GetTestSubResultAttachmentContentAsync(Guid project, int runId, int testCaseResultId, int attachmentId, int testSubResultId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestSubResultAttachmentContentAsync : Guid * int * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetTestSubResultAttachmentContentAsync : Guid * int * 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 result.

testCaseResultId
Int32

ID of the test results that contains sub result.

attachmentId
Int32

ID of the test result attachment to be downloaded

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

GetTestSubResultAttachmentContentAsync(String, Int32, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Download a test sub result attachment

public virtual System.Threading.Tasks.Task<System.IO.Stream> GetTestSubResultAttachmentContentAsync(string project, int runId, int testCaseResultId, int attachmentId, int testSubResultId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestSubResultAttachmentContentAsync : string * int * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetTestSubResultAttachmentContentAsync : string * int * 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 result.

testCaseResultId
Int32

ID of the test results that contains sub result.

attachmentId
Int32

ID of the test result attachment to be downloaded

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