TestHttpClientBase.GetTestSessionsAsync 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.
[Preview API] Get a list of test sessions
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestSession>> GetTestSessionsAsync(Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext teamContext, Nullable<int> period = null, Nullable<bool> allSessions = null, Nullable<bool> includeAllProperties = null, Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestSessionSource> source = null, Nullable<bool> includeOnlyCompletedSessions = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestSessionsAsync : Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestSessionSource> * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestSession>>
override this.GetTestSessionsAsync : Microsoft.TeamFoundation.Core.WebApi.Types.TeamContext * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestSessionSource> * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestSession>>
Parameters
- teamContext
- TeamContext
The team context for the operation
If false, returns test sessions for current user. Otherwise, it returns test sessions for all users
If true, it returns all properties of the test sessions. Otherwise, it returns the skinny version.
- source
- Nullable<TestSessionSource>
Source of the test session.
If true, it returns test sessions in completed state. Otherwise, it returns test sessions for all states
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.