TestHttpClientBase.CreateTestSubResultAttachmentAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| CreateTestSubResultAttachmentAsync(TestAttachmentRequestModel, Guid, Int32, Int32, Int32, Object, CancellationToken) |
[Preview API] Attach a file to a test result |
| CreateTestSubResultAttachmentAsync(TestAttachmentRequestModel, String, Int32, Int32, Int32, Object, CancellationToken) |
[Preview API] Attach a file to a test result |
CreateTestSubResultAttachmentAsync(TestAttachmentRequestModel, Guid, Int32, Int32, Int32, Object, CancellationToken)
[Preview API] Attach a file to a test result
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference> CreateTestSubResultAttachmentAsync(Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel attachmentRequestModel, Guid project, int runId, int testCaseResultId, int testSubResultId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateTestSubResultAttachmentAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel * Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference>
override this.CreateTestSubResultAttachmentAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel * Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference>
Parameters
- attachmentRequestModel
- TestAttachmentRequestModel
Attachment Request Model.
- 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 results against which attachment has to be uploaded.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreateTestSubResultAttachmentAsync(TestAttachmentRequestModel, String, Int32, Int32, Int32, Object, CancellationToken)
[Preview API] Attach a file to a test result
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference> CreateTestSubResultAttachmentAsync(Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel attachmentRequestModel, string project, int runId, int testCaseResultId, int testSubResultId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateTestSubResultAttachmentAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel * string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference>
override this.CreateTestSubResultAttachmentAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentRequestModel * string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestAttachmentReference>
Parameters
- attachmentRequestModel
- TestAttachmentRequestModel
Attachment Request Model.
- 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 results against which attachment has to be uploaded.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.