/// <summary> /// Start a test set execution with additional options. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: TestSetExecutions or /// TestSetExecutions.Write. /// /// Required permissions: TestSetExecutions.Create. /// /// Responses: /// 200 OK returns test set execution Id /// 403 If the caller doesn't have permissions to execute a test set /// 404 If the test set was not found /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// Provides options to set the BatchExecutionKey and TriggerType and override /// the input parameters for specific test cases /// </param> /// <param name='testSetId'> /// The Id of the test set /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <long?> StartTestSetExecutionWithOptionsAsync(this ITestAutomation operations, TestSetExecutionOptionsDto body = default(TestSetExecutionOptionsDto), long?testSetId = default(long?), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.StartTestSetExecutionWithOptionsWithHttpMessagesAsync(body, testSetId, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Start a test set execution with additional options. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: TestSetExecutions or /// TestSetExecutions.Write. /// /// Required permissions: TestSetExecutions.Create. /// /// Responses: /// 200 OK returns test set execution Id /// 403 If the caller doesn't have permissions to execute a test set /// 404 If the test set was not found /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// Provides options to set the BatchExecutionKey and TriggerType and override /// the input parameters for specific test cases /// </param> /// <param name='testSetId'> /// The Id of the test set /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static long?StartTestSetExecutionWithOptions(this ITestAutomation operations, TestSetExecutionOptionsDto body = default(TestSetExecutionOptionsDto), long?testSetId = default(long?), long?xUIPATHOrganizationUnitId = default(long?)) { return(operations.StartTestSetExecutionWithOptionsAsync(body, testSetId, xUIPATHOrganizationUnitId).GetAwaiter().GetResult()); }