/// import basem = require('./ClientApiBases'); import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces'); import Contracts = require("./interfaces/TestInterfaces"); import VSSInterfaces = require("./interfaces/common/VSSInterfaces"); export interface ITestResultsApi extends basem.ClientApiBase { createTestIterationResultAttachment(attachmentRequestModel: Contracts.TestAttachmentRequestModel, project: string, runId: number, testCaseResultId: number, iterationId: number, actionPath?: string): Promise; createTestResultAttachment(attachmentRequestModel: Contracts.TestAttachmentRequestModel, project: string, runId: number, testCaseResultId: number): Promise; createTestSubResultAttachment(attachmentRequestModel: Contracts.TestAttachmentRequestModel, project: string, runId: number, testCaseResultId: number, testSubResultId: number): Promise; deleteTestResultAttachment(project: string, runId: number, testCaseResultId: number, attachmentId: number): Promise; getTestIterationAttachmentContent(project: string, runId: number, testCaseResultId: number, attachmentId: number, iterationId: number): Promise; getTestIterationAttachmentZip(project: string, runId: number, testCaseResultId: number, attachmentId: number, iterationId: number): Promise; getTestResultAttachmentContent(project: string, runId: number, testCaseResultId: number, attachmentId: number): Promise; getTestResultAttachments(project: string, runId: number, testCaseResultId: number): Promise; getTestResultAttachmentZip(project: string, runId: number, testCaseResultId: number, attachmentId: number): Promise; getTestSubResultAttachmentContent(project: string, runId: number, testCaseResultId: number, attachmentId: number, testSubResultId: number): Promise; getTestSubResultAttachments(project: string, runId: number, testCaseResultId: number, testSubResultId: number): Promise; getTestSubResultAttachmentZip(project: string, runId: number, testCaseResultId: number, attachmentId: number, testSubResultId: number): Promise; createTestRunAttachment(attachmentRequestModel: Contracts.TestAttachmentRequestModel, project: string, runId: number): Promise; deleteTestRunAttachment(project: string, runId: number, attachmentId: number): Promise; getTestRunAttachmentContent(project: string, runId: number, attachmentId: number): Promise; getTestRunAttachments(project: string, runId: number): Promise; getTestRunAttachmentZip(project: string, runId: number, attachmentId: number): Promise; getBugsLinkedToTestResult(project: string, runId: number, testCaseResultId: number): Promise; fetchSourceCodeCoverageReport(project: string, buildId: number): Promise; getBuildCodeCoverage(project: string, buildId: number, flags: number): Promise; getCodeCoverageSummary(project: string, buildId: number, deltaBuildId?: number): Promise; updateCodeCoverageSummary(project: string, buildId: number, coverageData?: Contracts.CodeCoverageData): Promise; getTestRunCodeCoverage(project: string, runId: number, flags: number): Promise; addCustomFields(newFields: Contracts.CustomTestFieldDefinition[], project: string): Promise; queryCustomFields(project: string, scopeFilter: Contracts.CustomTestFieldScope): Promise; getFileLevelCodeCoverage(fileCoverageRequest: Contracts.FileCoverageRequest, project: string): Promise; getFlakyTestResultsByBuildDefinitionId(project: string, buildDefinitionId: number, minBuildCreatedDate: Date): Promise; getFlakyTestResultsByTestRun(project: string, runId: number): Promise; queryTestResultHistory(filter: Contracts.ResultsFilter, project: string): Promise; getTestRunMessageLogs(project: string, runId: number): Promise; getTestPipelineMetrics(project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, metricNames?: Contracts.Metrics[], groupByNode?: boolean): Promise; getTestResultDetailsForBuild(project: string, buildId: number, publishContext?: string, groupBy?: string, filter?: string, orderby?: string, shouldIncludeResults?: boolean, queryRunSummaryForInProgress?: boolean): Promise; getTestResultDetailsForRelease(project: string, releaseId: number, releaseEnvId: number, publishContext?: string, groupBy?: string, filter?: string, orderby?: string, shouldIncludeResults?: boolean, queryRunSummaryForInProgress?: boolean): Promise; publishTestResultDocument(document: Contracts.TestResultDocument, project: string, runId: number): Promise; getResultGroupsByBuild(project: string, buildId: number, publishContext: string, fields?: string[], continuationToken?: string): Promise>; getResultGroupsByRelease(project: string, releaseId: number, publishContext: string, releaseEnvId?: number, fields?: string[], continuationToken?: string): Promise>; queryTestResultsMetaData(testCaseReferenceIds: string[], project: string, detailsToInclude?: Contracts.ResultMetaDataDetails): Promise; updateTestResultsMetaData(testResultMetaDataUpdateInput: Contracts.TestResultMetaDataUpdateInput, project: string, testCaseReferenceId: number): Promise; getTestResultsByQuery(query: Contracts.TestResultsQuery, project: string): Promise; getTestResultsByQueryWiql(queryModel: Contracts.QueryModel, project: string, includeResultDetails?: boolean, includeIterationDetails?: boolean, skip?: number, top?: number): Promise; addTestResultsToTestRun(results: Contracts.TestCaseResult[], project: string, runId: number): Promise; getTestResultById(project: string, runId: number, testResultId: number, detailsToInclude?: Contracts.ResultDetails): Promise; getTestResults(project: string, runId: number, detailsToInclude?: Contracts.ResultDetails, skip?: number, top?: number, outcomes?: Contracts.TestOutcome[], newTestsOnly?: boolean): Promise; updateTestResults(results: Contracts.TestCaseResult[], project: string, runId: number): Promise; getTestResultsByBuild(project: string, buildId: number, publishContext?: string, outcomes?: Contracts.TestOutcome[], top?: number, continuationToken?: string): Promise>; getTestResultsByPipeline(customHeaders: any, project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, outcomes?: Contracts.TestOutcome[], top?: number, continuationToken?: String): Promise>; getTestResultsByRelease(project: string, releaseId: number, releaseEnvid?: number, publishContext?: string, outcomes?: Contracts.TestOutcome[], top?: number, continuationToken?: string): Promise>; testResultsGroupDetails(project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, shouldIncludeFailedAndAbortedResults?: boolean, queryGroupSummaryForInProgress?: boolean): Promise; queryTestResultsReportForBuild(project: string, buildId: number, publishContext?: string, includeFailureDetails?: boolean, buildToCompare?: Contracts.BuildReference): Promise; queryTestResultsReportForPipeline(project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, includeFailureDetails?: boolean): Promise; queryTestResultsReportForRelease(project: string, releaseId: number, releaseEnvId: number, publishContext?: string, includeFailureDetails?: boolean, releaseToCompare?: Contracts.ReleaseReference): Promise; queryTestResultsSummaryForReleases(releases: Contracts.ReleaseReference[], project: string): Promise; queryTestSummaryByRequirement(resultsContext: Contracts.TestResultsContext, project: string, workItemIds?: number[]): Promise; queryResultTrendForBuild(filter: Contracts.TestResultTrendFilter, project: string): Promise; queryResultTrendForRelease(filter: Contracts.TestResultTrendFilter, project: string): Promise; createTestRun(testRun: Contracts.RunCreateModel, project: string): Promise; deleteTestRun(project: string, runId: number): Promise; getTestRunById(project: string, runId: number, includeDetails?: boolean, includeTags?: boolean): Promise; getTestRuns(project: string, buildUri?: string, owner?: string, tmiRunId?: string, planId?: number, includeRunDetails?: boolean, automated?: boolean, skip?: number, top?: number): Promise; queryTestRuns(project: string, minLastUpdatedDate: Date, maxLastUpdatedDate: Date, state?: Contracts.TestRunState, planIds?: number[], isAutomated?: boolean, publishContext?: Contracts.TestRunPublishContext, buildIds?: number[], buildDefIds?: number[], branchName?: string, releaseIds?: number[], releaseDefIds?: number[], releaseEnvIds?: number[], releaseEnvDefIds?: number[], runTitle?: string, top?: number, continuationToken?: string): Promise>; updateTestRun(runUpdateModel: Contracts.RunUpdateModel, project: string, runId: number): Promise; getTestRunSummaryByOutcome(project: string, runId: number): Promise; getTestResultsSettings(project: string, settingsType?: Contracts.TestResultsSettingsType): Promise; updatePipelinesTestSettings(testResultsUpdateSettings: Contracts.TestResultsUpdateSettings, project: string): Promise; getSimilarTestResults(customHeaders: any, project: string, runId: number, testResultId: number, testSubResultId: number, top?: number, continuationToken?: String): Promise; getTestRunStatistics(project: string, runId: number): Promise; getCoverageStatusBadge(project: string, definition: string, branchName?: string, label?: string): Promise; getTestTagsForBuild(project: string, buildId: number): Promise; getTestTagsForRelease(project: string, releaseId: number, releaseEnvId: number): Promise; updateTestRunTags(testTagsUpdateModel: Contracts.TestTagsUpdateModel, project: string, runId: number): Promise; getTestTagSummaryForBuild(project: string, buildId: number): Promise; getTestTagSummaryForRelease(project: string, releaseId: number, releaseEnvId: number): Promise; createBuildAttachmentInLogStore(attachmentRequestModel: Contracts.TestAttachmentRequestModel, project: string, buildId: number): Promise; createTestRunLogStoreAttachment(attachmentRequestModel: Contracts.TestAttachmentRequestModel, project: string, runId: number): Promise; deleteTestRunLogStoreAttachment(project: string, runId: number, filename: string): Promise; getTestRunLogStoreAttachmentContent(project: string, runId: number, filename: string): Promise; getTestRunLogStoreAttachments(project: string, runId: number): Promise; getTestRunLogStoreAttachmentZip(project: string, runId: number, filename: string): Promise; createFailureType(testResultFailureType: Contracts.TestResultFailureTypeRequestModel, project: string): Promise; deleteFailureType(project: string, failureTypeId: number): Promise; getFailureTypes(project: string): Promise; queryTestHistory(filter: Contracts.TestHistoryQuery, project: string): Promise; getTestLogsForBuild(customHeaders: any, project: string, buildId: number, type: Contracts.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise>; getTestResultLogs(customHeaders: any, project: string, runId: number, resultId: number, type: Contracts.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise>; getTestSubResultLogs(customHeaders: any, project: string, runId: number, resultId: number, subResultId: number, type: Contracts.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise>; getTestRunLogs(customHeaders: any, project: string, runId: number, type: Contracts.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise>; getTestLogStoreEndpointDetailsForBuildLog(project: string, build: number, type: Contracts.TestLogType, filePath: string): Promise; testLogStoreEndpointDetailsForBuild(project: string, buildId: number, testLogStoreOperationType: Contracts.TestLogStoreOperationType): Promise; getTestLogStoreEndpointDetailsForResultLog(project: string, runId: number, resultId: number, type: Contracts.TestLogType, filePath: string): Promise; getTestLogStoreEndpointDetailsForSubResultLog(project: string, runId: number, resultId: number, subResultId: number, type: Contracts.TestLogType, filePath: string): Promise; testLogStoreEndpointDetailsForResult(project: string, runId: number, resultId: number, subResultId: number, filePath: string, type: Contracts.TestLogType): Promise; getTestLogStoreEndpointDetailsForRunLog(project: string, runId: number, type: Contracts.TestLogType, filePath: string): Promise; testLogStoreEndpointDetailsForRun(project: string, runId: number, testLogStoreOperationType: Contracts.TestLogStoreOperationType, filePath?: string, type?: Contracts.TestLogType): Promise; getTestRunsBySessionId(project: string, sessionId: number): Promise; createTestSession(session: Contracts.TestResultsSession, project: string): Promise; getTestSession(project: string, buildId: number): Promise; getTestSessionLayout(project: string, sessionId: string): Promise; createEnvironment(environments: Contracts.TestSessionEnvironment[], project: string): Promise; createNotification(notifications: Contracts.TestSessionNotification[], project: string, sessionId: number): Promise; getSessionNotifications(project: string, sessionId: number): Promise; addTestResultsToTestRunSession(results: Contracts.TestCaseResult[], project: string, runId: number): Promise; getTestSessionResults(project: string, runId: number, detailsToInclude?: Contracts.ResultDetails, skip?: number, top?: number, outcomes?: Contracts.TestOutcome[], newTestsOnly?: boolean): Promise; updateTestResultsToTestRunSession(results: Contracts.TestCaseResult[], project: string, runId: number): Promise; createTestSettings(testSettings: Contracts.TestSettings, project: string): Promise; deleteTestSettings(project: string, testSettingsId: number): Promise; getTestSettingsById(project: string, testSettingsId: number): Promise; addWorkItemToTestLinks(workItemToTestLinks: Contracts.WorkItemToTestLinks, project: string): Promise; deleteTestMethodToWorkItemLink(project: string, testName: string, workItemId: number): Promise; queryTestMethodLinkedWorkItems(project: string, testName: string): Promise; getTestResultWorkItemsById(project: string, runId: number, testCaseResultId: number): Promise; queryTestResultWorkItems(project: string, workItemCategory: string, automatedTestName?: string, testCaseId?: number, maxCompleteDate?: Date, days?: number, workItemCount?: number): Promise; } export declare class TestResultsApi extends basem.ClientApiBase implements ITestResultsApi { constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], options?: VsoBaseInterfaces.IRequestOptions); static readonly RESOURCE_AREA_ID = "c83eaf52-edf3-4034-ae11-17d38f25404c"; /** * @param {Contracts.TestAttachmentRequestModel} attachmentRequestModel * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testCaseResultId * @param {number} iterationId * @param {string} actionPath */ createTestIterationResultAttachment(attachmentRequestModel: Contracts.TestAttachmentRequestModel, project: string, runId: number, testCaseResultId: number, iterationId: number, actionPath?: string): Promise; /** * @param {Contracts.TestAttachmentRequestModel} attachmentRequestModel * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testCaseResultId */ createTestResultAttachment(attachmentRequestModel: Contracts.TestAttachmentRequestModel, project: string, runId: number, testCaseResultId: number): Promise; /** * @param {Contracts.TestAttachmentRequestModel} attachmentRequestModel * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testCaseResultId * @param {number} testSubResultId */ createTestSubResultAttachment(attachmentRequestModel: Contracts.TestAttachmentRequestModel, project: string, runId: number, testCaseResultId: number, testSubResultId: number): Promise; /** * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testCaseResultId * @param {number} attachmentId */ deleteTestResultAttachment(project: string, runId: number, testCaseResultId: number, attachmentId: number): Promise; /** * Returns a test iteration attachment * * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testCaseResultId * @param {number} attachmentId * @param {number} iterationId */ getTestIterationAttachmentContent(project: string, runId: number, testCaseResultId: number, attachmentId: number, iterationId: number): Promise; /** * Returns a test iteration attachment * * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testCaseResultId * @param {number} attachmentId * @param {number} iterationId */ getTestIterationAttachmentZip(project: string, runId: number, testCaseResultId: number, attachmentId: number, iterationId: number): Promise; /** * Returns a test result attachment * * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testCaseResultId * @param {number} attachmentId */ getTestResultAttachmentContent(project: string, runId: number, testCaseResultId: number, attachmentId: number): Promise; /** * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testCaseResultId */ getTestResultAttachments(project: string, runId: number, testCaseResultId: number): Promise; /** * Returns a test result attachment * * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testCaseResultId * @param {number} attachmentId */ getTestResultAttachmentZip(project: string, runId: number, testCaseResultId: number, attachmentId: number): Promise; /** * Returns a test sub result attachment * * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testCaseResultId * @param {number} attachmentId * @param {number} testSubResultId */ getTestSubResultAttachmentContent(project: string, runId: number, testCaseResultId: number, attachmentId: number, testSubResultId: number): Promise; /** * Returns attachment references for test sub result. * * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testCaseResultId * @param {number} testSubResultId */ getTestSubResultAttachments(project: string, runId: number, testCaseResultId: number, testSubResultId: number): Promise; /** * Returns a test sub result attachment * * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testCaseResultId * @param {number} attachmentId * @param {number} testSubResultId */ getTestSubResultAttachmentZip(project: string, runId: number, testCaseResultId: number, attachmentId: number, testSubResultId: number): Promise; /** * @param {Contracts.TestAttachmentRequestModel} attachmentRequestModel * @param {string} project - Project ID or project name * @param {number} runId */ createTestRunAttachment(attachmentRequestModel: Contracts.TestAttachmentRequestModel, project: string, runId: number): Promise; /** * @param {string} project - Project ID or project name * @param {number} runId * @param {number} attachmentId */ deleteTestRunAttachment(project: string, runId: number, attachmentId: number): Promise; /** * Returns a test run attachment * * @param {string} project - Project ID or project name * @param {number} runId * @param {number} attachmentId */ getTestRunAttachmentContent(project: string, runId: number, attachmentId: number): Promise; /** * @param {string} project - Project ID or project name * @param {number} runId */ getTestRunAttachments(project: string, runId: number): Promise; /** * Returns a test run attachment * * @param {string} project - Project ID or project name * @param {number} runId * @param {number} attachmentId */ getTestRunAttachmentZip(project: string, runId: number, attachmentId: number): Promise; /** * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testCaseResultId */ getBugsLinkedToTestResult(project: string, runId: number, testCaseResultId: number): Promise; /** * @param {string} project - Project ID or project name * @param {number} buildId */ fetchSourceCodeCoverageReport(project: string, buildId: number): Promise; /** * @param {string} project - Project ID or project name * @param {number} buildId * @param {number} flags */ getBuildCodeCoverage(project: string, buildId: number, flags: number): Promise; /** * http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10&deltaBuildId=9 Request: build id and delta build id (optional) * * @param {string} project - Project ID or project name * @param {number} buildId * @param {number} deltaBuildId */ getCodeCoverageSummary(project: string, buildId: number, deltaBuildId?: number): Promise; /** * http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10 Request: Json of code coverage summary * * @param {string} project - Project ID or project name * @param {number} buildId * @param {Contracts.CodeCoverageData} coverageData */ updateCodeCoverageSummary(project: string, buildId: number, coverageData?: Contracts.CodeCoverageData): Promise; /** * @param {string} project - Project ID or project name * @param {number} runId * @param {number} flags */ getTestRunCodeCoverage(project: string, runId: number, flags: number): Promise; /** * @param {Contracts.CustomTestFieldDefinition[]} newFields * @param {string} project - Project ID or project name */ addCustomFields(newFields: Contracts.CustomTestFieldDefinition[], project: string): Promise; /** * @param {string} project - Project ID or project name * @param {Contracts.CustomTestFieldScope} scopeFilter */ queryCustomFields(project: string, scopeFilter: Contracts.CustomTestFieldScope): Promise; /** * Get file coverage for the specified file * * @param {Contracts.FileCoverageRequest} fileCoverageRequest - File details with pull request iteration context * @param {string} project - Project ID or project name */ getFileLevelCodeCoverage(fileCoverageRequest: Contracts.FileCoverageRequest, project: string): Promise; /** * @param {string} project - Project ID or project name * @param {number} buildDefinitionId * @param {Date} minBuildCreatedDate */ getFlakyTestResultsByBuildDefinitionId(project: string, buildDefinitionId: number, minBuildCreatedDate: Date): Promise; /** * @param {string} project - Project ID or project name * @param {number} runId */ getFlakyTestResultsByTestRun(project: string, runId: number): Promise; /** * @param {Contracts.ResultsFilter} filter * @param {string} project - Project ID or project name */ queryTestResultHistory(filter: Contracts.ResultsFilter, project: string): Promise; /** * Get test run message logs * * @param {string} project - Project ID or project name * @param {number} runId - ID of the run to get. */ getTestRunMessageLogs(project: string, runId: number): Promise; /** * Get summary of test results. * * @param {string} project - Project ID or project name * @param {number} pipelineId - Pipeline Id. This is same as build Id. * @param {string} stageName - Name of the stage. Maximum supported length for name is 256 character. * @param {string} phaseName - Name of the phase. Maximum supported length for name is 256 character. * @param {string} jobName - Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character. * @param {Contracts.Metrics[]} metricNames * @param {boolean} groupByNode - Group summary for each node of the pipleine heirarchy */ getTestPipelineMetrics(project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, metricNames?: Contracts.Metrics[], groupByNode?: boolean): Promise; /** * @param {string} project - Project ID or project name * @param {number} buildId * @param {string} publishContext * @param {string} groupBy * @param {string} filter * @param {string} orderby * @param {boolean} shouldIncludeResults * @param {boolean} queryRunSummaryForInProgress */ getTestResultDetailsForBuild(project: string, buildId: number, publishContext?: string, groupBy?: string, filter?: string, orderby?: string, shouldIncludeResults?: boolean, queryRunSummaryForInProgress?: boolean): Promise; /** * @param {string} project - Project ID or project name * @param {number} releaseId * @param {number} releaseEnvId * @param {string} publishContext * @param {string} groupBy * @param {string} filter * @param {string} orderby * @param {boolean} shouldIncludeResults * @param {boolean} queryRunSummaryForInProgress */ getTestResultDetailsForRelease(project: string, releaseId: number, releaseEnvId: number, publishContext?: string, groupBy?: string, filter?: string, orderby?: string, shouldIncludeResults?: boolean, queryRunSummaryForInProgress?: boolean): Promise; /** * @param {Contracts.TestResultDocument} document * @param {string} project - Project ID or project name * @param {number} runId */ publishTestResultDocument(document: Contracts.TestResultDocument, project: string, runId: number): Promise; /** * @param {string} project - Project ID or project name * @param {number} buildId * @param {string} publishContext * @param {string[]} fields * @param {string} continuationToken */ getResultGroupsByBuild(project: string, buildId: number, publishContext: string, fields?: string[], continuationToken?: string): Promise>; /** * @param {string} project - Project ID or project name * @param {number} releaseId * @param {string} publishContext * @param {number} releaseEnvId * @param {string[]} fields * @param {string} continuationToken */ getResultGroupsByRelease(project: string, releaseId: number, publishContext: string, releaseEnvId?: number, fields?: string[], continuationToken?: string): Promise>; /** * Get list of test Result meta data details for corresponding testcasereferenceId * * @param {string[]} testCaseReferenceIds - TestCaseReference Ids of the test Result to be queried, comma separated list of valid ids (limit no. of ids 200). * @param {string} project - Project ID or project name * @param {Contracts.ResultMetaDataDetails} detailsToInclude - Details to include with test results metadata. Default is None. Other values are FlakyIdentifiers. */ queryTestResultsMetaData(testCaseReferenceIds: string[], project: string, detailsToInclude?: Contracts.ResultMetaDataDetails): Promise; /** * Update properties of test result meta data * * @param {Contracts.TestResultMetaDataUpdateInput} testResultMetaDataUpdateInput - TestResultMetaData update input TestResultMetaDataUpdateInput * @param {string} project - Project ID or project name * @param {number} testCaseReferenceId - TestCaseReference Id of Test Result to be updated. */ updateTestResultsMetaData(testResultMetaDataUpdateInput: Contracts.TestResultMetaDataUpdateInput, project: string, testCaseReferenceId: number): Promise; /** * @param {Contracts.TestResultsQuery} query * @param {string} project - Project ID or project name */ getTestResultsByQuery(query: Contracts.TestResultsQuery, project: string): Promise; /** * @param {Contracts.QueryModel} queryModel * @param {string} project - Project ID or project name * @param {boolean} includeResultDetails * @param {boolean} includeIterationDetails * @param {number} skip * @param {number} top */ getTestResultsByQueryWiql(queryModel: Contracts.QueryModel, project: string, includeResultDetails?: boolean, includeIterationDetails?: boolean, skip?: number, top?: number): Promise; /** * @param {Contracts.TestCaseResult[]} results * @param {string} project - Project ID or project name * @param {number} runId */ addTestResultsToTestRun(results: Contracts.TestCaseResult[], project: string, runId: number): Promise; /** * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testResultId * @param {Contracts.ResultDetails} detailsToInclude */ getTestResultById(project: string, runId: number, testResultId: number, detailsToInclude?: Contracts.ResultDetails): Promise; /** * @param {string} project - Project ID or project name * @param {number} runId * @param {Contracts.ResultDetails} detailsToInclude * @param {number} skip * @param {number} top * @param {Contracts.TestOutcome[]} outcomes * @param {boolean} newTestsOnly */ getTestResults(project: string, runId: number, detailsToInclude?: Contracts.ResultDetails, skip?: number, top?: number, outcomes?: Contracts.TestOutcome[], newTestsOnly?: boolean): Promise; /** * @param {Contracts.TestCaseResult[]} results * @param {string} project - Project ID or project name * @param {number} runId */ updateTestResults(results: Contracts.TestCaseResult[], project: string, runId: number): Promise; /** * @param {string} project - Project ID or project name * @param {number} buildId * @param {string} publishContext * @param {Contracts.TestOutcome[]} outcomes * @param {number} top * @param {string} continuationToken */ getTestResultsByBuild(project: string, buildId: number, publishContext?: string, outcomes?: Contracts.TestOutcome[], top?: number, continuationToken?: string): Promise>; /** * Get a list of results. * * @param {string} project - Project ID or project name * @param {number} pipelineId - Pipeline Id. This is same as build Id. * @param {string} stageName - Name of the stage. Maximum supported length for name is 256 character. * @param {string} phaseName - Name of the phase. Maximum supported length for name is 256 character. * @param {string} jobName - Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character. * @param {Contracts.TestOutcome[]} outcomes - List of outcome of results * @param {number} top - Maximum number of results to return * @param {String} continuationToken - Header to pass the continuationToken */ getTestResultsByPipeline(customHeaders: any, project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, outcomes?: Contracts.TestOutcome[], top?: number, continuationToken?: String): Promise>; /** * @param {string} project - Project ID or project name * @param {number} releaseId * @param {number} releaseEnvid * @param {string} publishContext * @param {Contracts.TestOutcome[]} outcomes * @param {number} top * @param {string} continuationToken */ getTestResultsByRelease(project: string, releaseId: number, releaseEnvid?: number, publishContext?: string, outcomes?: Contracts.TestOutcome[], top?: number, continuationToken?: string): Promise>; /** * Get all the available groups details and for these groups get failed and aborted results. * * @param {string} project - Project ID or project name * @param {number} pipelineId - Pipeline Id. This is same as build Id. * @param {string} stageName - Name of the stage. Maximum supported length for name is 256 character. * @param {string} phaseName - Name of the phase. Maximum supported length for name is 256 character. * @param {string} jobName - Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character. * @param {boolean} shouldIncludeFailedAndAbortedResults - If true, it will return Ids of failed and aborted results for each test group * @param {boolean} queryGroupSummaryForInProgress - If true, it will calculate summary for InProgress runs as well. */ testResultsGroupDetails(project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, shouldIncludeFailedAndAbortedResults?: boolean, queryGroupSummaryForInProgress?: boolean): Promise; /** * @param {string} project - Project ID or project name * @param {number} buildId * @param {string} publishContext * @param {boolean} includeFailureDetails * @param {Contracts.BuildReference} buildToCompare */ queryTestResultsReportForBuild(project: string, buildId: number, publishContext?: string, includeFailureDetails?: boolean, buildToCompare?: Contracts.BuildReference): Promise; /** * Get summary of test results. * * @param {string} project - Project ID or project name * @param {number} pipelineId - Pipeline Id. This is same as build Id. * @param {string} stageName - Name of the stage. Maximum supported length for name is 256 character. * @param {string} phaseName - Name of the phase. Maximum supported length for name is 256 character. * @param {string} jobName - Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character. * @param {boolean} includeFailureDetails - If true returns failure insights */ queryTestResultsReportForPipeline(project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, includeFailureDetails?: boolean): Promise; /** * @param {string} project - Project ID or project name * @param {number} releaseId * @param {number} releaseEnvId * @param {string} publishContext * @param {boolean} includeFailureDetails * @param {Contracts.ReleaseReference} releaseToCompare */ queryTestResultsReportForRelease(project: string, releaseId: number, releaseEnvId: number, publishContext?: string, includeFailureDetails?: boolean, releaseToCompare?: Contracts.ReleaseReference): Promise; /** * @param {Contracts.ReleaseReference[]} releases * @param {string} project - Project ID or project name */ queryTestResultsSummaryForReleases(releases: Contracts.ReleaseReference[], project: string): Promise; /** * @param {Contracts.TestResultsContext} resultsContext * @param {string} project - Project ID or project name * @param {number[]} workItemIds */ queryTestSummaryByRequirement(resultsContext: Contracts.TestResultsContext, project: string, workItemIds?: number[]): Promise; /** * @param {Contracts.TestResultTrendFilter} filter * @param {string} project - Project ID or project name */ queryResultTrendForBuild(filter: Contracts.TestResultTrendFilter, project: string): Promise; /** * @param {Contracts.TestResultTrendFilter} filter * @param {string} project - Project ID or project name */ queryResultTrendForRelease(filter: Contracts.TestResultTrendFilter, project: string): Promise; /** * @param {Contracts.RunCreateModel} testRun * @param {string} project - Project ID or project name */ createTestRun(testRun: Contracts.RunCreateModel, project: string): Promise; /** * @param {string} project - Project ID or project name * @param {number} runId */ deleteTestRun(project: string, runId: number): Promise; /** * @param {string} project - Project ID or project name * @param {number} runId * @param {boolean} includeDetails * @param {boolean} includeTags */ getTestRunById(project: string, runId: number, includeDetails?: boolean, includeTags?: boolean): Promise; /** * @param {string} project - Project ID or project name * @param {string} buildUri * @param {string} owner * @param {string} tmiRunId * @param {number} planId * @param {boolean} includeRunDetails * @param {boolean} automated * @param {number} skip * @param {number} top */ getTestRuns(project: string, buildUri?: string, owner?: string, tmiRunId?: string, planId?: number, includeRunDetails?: boolean, automated?: boolean, skip?: number, top?: number): Promise; /** * Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate. * * @param {string} project - Project ID or project name * @param {Date} minLastUpdatedDate - Minimum Last Modified Date of run to be queried (Mandatory). * @param {Date} maxLastUpdatedDate - Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days). * @param {Contracts.TestRunState} state - Current state of the Runs to be queried. * @param {number[]} planIds - Plan Ids of the Runs to be queried, comma separated list of valid ids. * @param {boolean} isAutomated - Automation type of the Runs to be queried. * @param {Contracts.TestRunPublishContext} publishContext - PublishContext of the Runs to be queried. * @param {number[]} buildIds - Build Ids of the Runs to be queried, comma separated list of valid ids. * @param {number[]} buildDefIds - Build Definition Ids of the Runs to be queried, comma separated list of valid ids. * @param {string} branchName - Source Branch name of the Runs to be queried. * @param {number[]} releaseIds - Release Ids of the Runs to be queried, comma separated list of valid ids. * @param {number[]} releaseDefIds - Release Definition Ids of the Runs to be queried, comma separated list of valid ids. * @param {number[]} releaseEnvIds - Release Environment Ids of the Runs to be queried, comma separated list of valid ids. * @param {number[]} releaseEnvDefIds - Release Environment Definition Ids of the Runs to be queried, comma separated list of valid ids. * @param {string} runTitle - Run Title of the Runs to be queried. * @param {number} top - Number of runs to be queried. Limit is 100 * @param {string} continuationToken - continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user. */ queryTestRuns(project: string, minLastUpdatedDate: Date, maxLastUpdatedDate: Date, state?: Contracts.TestRunState, planIds?: number[], isAutomated?: boolean, publishContext?: Contracts.TestRunPublishContext, buildIds?: number[], buildDefIds?: number[], branchName?: string, releaseIds?: number[], releaseDefIds?: number[], releaseEnvIds?: number[], releaseEnvDefIds?: number[], runTitle?: string, top?: number, continuationToken?: string): Promise>; /** * @param {Contracts.RunUpdateModel} runUpdateModel * @param {string} project - Project ID or project name * @param {number} runId */ updateTestRun(runUpdateModel: Contracts.RunUpdateModel, project: string, runId: number): Promise; /** * Get test run summary, used when we want to get summary of a run by outcome. Test run should be in completed state. * * @param {string} project - Project ID or project name * @param {number} runId - ID of the run to get. */ getTestRunSummaryByOutcome(project: string, runId: number): Promise; /** * Get TestResultsSettings data * * @param {string} project - Project ID or project name * @param {Contracts.TestResultsSettingsType} settingsType */ getTestResultsSettings(project: string, settingsType?: Contracts.TestResultsSettingsType): Promise; /** * Update project settings of test results * * @param {Contracts.TestResultsUpdateSettings} testResultsUpdateSettings * @param {string} project - Project ID or project name */ updatePipelinesTestSettings(testResultsUpdateSettings: Contracts.TestResultsUpdateSettings, project: string): Promise; /** * Gets the list of results whose failure matches with the provided one. * * @param {string} project - Project ID or project name * @param {number} runId - id of test run * @param {number} testResultId - id of test result inside a test run * @param {number} testSubResultId - id of subresult inside a test result * @param {number} top - Maximum number of results to return * @param {String} continuationToken - Header to pass the continuationToken */ getSimilarTestResults(customHeaders: any, project: string, runId: number, testResultId: number, testSubResultId: number, top?: number, continuationToken?: String): Promise; /** * Get test run statistics , used when we want to get summary of a run by outcome. * * @param {string} project - Project ID or project name * @param {number} runId - ID of the run to get. */ getTestRunStatistics(project: string, runId: number): Promise; /** *

Gets the coverage status for the last successful build of a definition, optionally scoped to a specific branch

* * @param {string} project - Project ID or project name * @param {string} definition - The ID or name of the definition. * @param {string} branchName - The branch name. * @param {string} label - The String to replace the default text on the left side of the badge. */ getCoverageStatusBadge(project: string, definition: string, branchName?: string, label?: string): Promise; /** * Get all the tags in a build. * * @param {string} project - Project ID or project name * @param {number} buildId - Build ID */ getTestTagsForBuild(project: string, buildId: number): Promise; /** * Get all the tags in a release. * * @param {string} project - Project ID or project name * @param {number} releaseId - Release ID * @param {number} releaseEnvId - Release environment ID */ getTestTagsForRelease(project: string, releaseId: number, releaseEnvId: number): Promise; /** * Update tags of a run, Tags can be Added and Deleted * * @param {Contracts.TestTagsUpdateModel} testTagsUpdateModel - TestTagsUpdateModel * @param {string} project - Project ID or project name * @param {number} runId - RunId of the run */ updateTestRunTags(testTagsUpdateModel: Contracts.TestTagsUpdateModel, project: string, runId: number): Promise; /** * Get all the tags in a build. * * @param {string} project - Project ID or project name * @param {number} buildId - Build ID */ getTestTagSummaryForBuild(project: string, buildId: number): Promise; /** * Get all the tags in a release. * * @param {string} project - Project ID or project name * @param {number} releaseId - Release ID * @param {number} releaseEnvId - Release environment ID */ getTestTagSummaryForRelease(project: string, releaseId: number, releaseEnvId: number): Promise; /** * Creates an attachment in the LogStore for the specified buildId. * * @param {Contracts.TestAttachmentRequestModel} attachmentRequestModel - Contains attachment info like stream, filename, comment, attachmentType * @param {string} project - Project ID or project name * @param {number} buildId - BuildId */ createBuildAttachmentInLogStore(attachmentRequestModel: Contracts.TestAttachmentRequestModel, project: string, buildId: number): Promise; /** * Creates an attachment in the LogStore for the specified runId. * * @param {Contracts.TestAttachmentRequestModel} attachmentRequestModel - Contains attachment info like stream, filename, comment, attachmentType * @param {string} project - Project ID or project name * @param {number} runId - Test RunId */ createTestRunLogStoreAttachment(attachmentRequestModel: Contracts.TestAttachmentRequestModel, project: string, runId: number): Promise; /** * Deletes the attachment with the specified filename for the specified runId from the LogStore. * * @param {string} project - Project ID or project name * @param {number} runId - Test RunId * @param {string} filename - Attachment FileName */ deleteTestRunLogStoreAttachment(project: string, runId: number, filename: string): Promise; /** * Returns the attachment with the specified filename for the specified runId from the LogStore. * * @param {string} project - Project ID or project name * @param {number} runId - Test RunId * @param {string} filename - Attachment FileName */ getTestRunLogStoreAttachmentContent(project: string, runId: number, filename: string): Promise; /** * Returns a list of attachments for the specified runId from the LogStore. * * @param {string} project - Project ID or project name * @param {number} runId - Test RunId */ getTestRunLogStoreAttachments(project: string, runId: number): Promise; /** * Returns the attachment with the specified filename for the specified runId from the LogStore. * * @param {string} project - Project ID or project name * @param {number} runId - Test RunId * @param {string} filename - Attachment FileName */ getTestRunLogStoreAttachmentZip(project: string, runId: number, filename: string): Promise; /** * Creates a new test failure type * * @param {Contracts.TestResultFailureTypeRequestModel} testResultFailureType * @param {string} project - Project ID or project name */ createFailureType(testResultFailureType: Contracts.TestResultFailureTypeRequestModel, project: string): Promise; /** * Deletes a test failure type with specified failureTypeId * * @param {string} project - Project ID or project name * @param {number} failureTypeId */ deleteFailureType(project: string, failureTypeId: number): Promise; /** * Returns the list of test failure types. * * @param {string} project - Project ID or project name */ getFailureTypes(project: string): Promise; /** * Get history of a test method using TestHistoryQuery * * @param {Contracts.TestHistoryQuery} filter - TestHistoryQuery to get history * @param {string} project - Project ID or project name */ queryTestHistory(filter: Contracts.TestHistoryQuery, project: string): Promise; /** * Get list of build attachments reference * * @param {string} project - Project ID or project name * @param {number} buildId - Id of the build to get * @param {Contracts.TestLogType} type - type of the attachment to get * @param {string} directoryPath - directory path for which attachments are needed * @param {string} fileNamePrefix - file name prefix to filter the list of attachment * @param {boolean} fetchMetaData - Default is false, set if metadata is needed * @param {number} top - Number of test attachments reference to return * @param {String} continuationToken - Header to pass the continuationToken */ getTestLogsForBuild(customHeaders: any, project: string, buildId: number, type: Contracts.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise>; /** * Get list of test result attachments reference * * @param {string} project - Project ID or project name * @param {number} runId - Id of the test run that contains the result * @param {number} resultId - Id of the test result * @param {Contracts.TestLogType} type - type of attachments to get * @param {string} directoryPath - directory path of attachments to get * @param {string} fileNamePrefix - file name prefix to filter the list of attachment * @param {boolean} fetchMetaData - Default is false, set if metadata is needed * @param {number} top - Numbe of attachments reference to return * @param {String} continuationToken - Header to pass the continuationToken */ getTestResultLogs(customHeaders: any, project: string, runId: number, resultId: number, type: Contracts.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise>; /** * Get list of test subresult attachments reference * * @param {string} project - Project ID or project name * @param {number} runId - Id of the test run that contains the results * @param {number} resultId - Id of the test result that contains subresult * @param {number} subResultId - Id of the test subresult * @param {Contracts.TestLogType} type - type of the attachments to get * @param {string} directoryPath - directory path of the attachment to get * @param {string} fileNamePrefix - file name prefix to filter the list of attachments * @param {boolean} fetchMetaData - Default is false, set if metadata is needed * @param {number} top - Number of attachments reference to return * @param {String} continuationToken - Header to pass the continuationToken */ getTestSubResultLogs(customHeaders: any, project: string, runId: number, resultId: number, subResultId: number, type: Contracts.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise>; /** * Get list of test run attachments reference * * @param {string} project - Project ID or project name * @param {number} runId - Id of the test run * @param {Contracts.TestLogType} type - type of the attachments to get * @param {string} directoryPath - directory path for which attachments are needed * @param {string} fileNamePrefix - file name prefix to filter the list of attachment * @param {boolean} fetchMetaData - Default is false, set if metadata is needed * @param {number} top - Number of attachments reference to return * @param {String} continuationToken - Header to pass the continuationToken */ getTestRunLogs(customHeaders: any, project: string, runId: number, type: Contracts.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise>; /** * Get SAS Uri of a build attachment * * @param {string} project - Project ID or project name * @param {number} build - Id of the build to get * @param {Contracts.TestLogType} type - type of the file * @param {string} filePath - filePath for which sas uri is needed */ getTestLogStoreEndpointDetailsForBuildLog(project: string, build: number, type: Contracts.TestLogType, filePath: string): Promise; /** * Create and Get sas uri of the build container * * @param {string} project - Project ID or project name * @param {number} buildId - Id of the build to get * @param {Contracts.TestLogStoreOperationType} testLogStoreOperationType - Type of operation to perform using sas uri */ testLogStoreEndpointDetailsForBuild(project: string, buildId: number, testLogStoreOperationType: Contracts.TestLogStoreOperationType): Promise; /** * Get SAS Uri of a test results attachment * * @param {string} project - Project ID or project name * @param {number} runId - Id of the test run that contains result * @param {number} resultId - Id of the test result whose files need to be downloaded * @param {Contracts.TestLogType} type - type of the file * @param {string} filePath - filePath for which sas uri is needed */ getTestLogStoreEndpointDetailsForResultLog(project: string, runId: number, resultId: number, type: Contracts.TestLogType, filePath: string): Promise; /** * Get SAS Uri of a test subresults attachment * * @param {string} project - Project ID or project name * @param {number} runId - Id of the test run that contains result * @param {number} resultId - Id of the test result that contains subresult * @param {number} subResultId - Id of the test subresult whose file sas uri is needed * @param {Contracts.TestLogType} type - type of the file * @param {string} filePath - filePath for which sas uri is needed */ getTestLogStoreEndpointDetailsForSubResultLog(project: string, runId: number, resultId: number, subResultId: number, type: Contracts.TestLogType, filePath: string): Promise; /** * Create empty file for a result and Get Sas uri for the file * * @param {string} project - Project ID or project name * @param {number} runId - Id of the test run that contains the result * @param {number} resultId - Id of the test results that contains sub result * @param {number} subResultId - Id of the test sub result whose file sas uri is needed * @param {string} filePath - file path inside the sub result for which sas uri is needed * @param {Contracts.TestLogType} type - Type of the file for download */ testLogStoreEndpointDetailsForResult(project: string, runId: number, resultId: number, subResultId: number, filePath: string, type: Contracts.TestLogType): Promise; /** * Get SAS Uri of a test run attachment * * @param {string} project - Project ID or project name * @param {number} runId - Id of the test run whose file has to be downloaded * @param {Contracts.TestLogType} type - type of the file * @param {string} filePath - filePath for which sas uri is needed */ getTestLogStoreEndpointDetailsForRunLog(project: string, runId: number, type: Contracts.TestLogType, filePath: string): Promise; /** * Create empty file for a run and Get Sas uri for the file * * @param {string} project - Project ID or project name * @param {number} runId - Id of the run to get endpoint details * @param {Contracts.TestLogStoreOperationType} testLogStoreOperationType - Type of operation to perform using sas uri * @param {string} filePath - file path to create an empty file * @param {Contracts.TestLogType} type - Default is GeneralAttachment, type of empty file to be created */ testLogStoreEndpointDetailsForRun(project: string, runId: number, testLogStoreOperationType: Contracts.TestLogStoreOperationType, filePath?: string, type?: Contracts.TestLogType): Promise; /** * Retrieves Test runs associated to a session * * @param {string} project - Project ID or project name * @param {number} sessionId - Id of TestResults session to obtain Test Runs for. */ getTestRunsBySessionId(project: string, sessionId: number): Promise; /** * Creates TestResultsSession object in TCM data store * * @param {Contracts.TestResultsSession} session - Received session object. * @param {string} project - Project ID or project name */ createTestSession(session: Contracts.TestResultsSession, project: string): Promise; /** * Retrieves TestResultsSession metadata object in TCM data store * * @param {string} project - Project ID or project name * @param {number} buildId */ getTestSession(project: string, buildId: number): Promise; /** * Retrieves TestResultsSession Layout object in TCM data store * * @param {string} project - Project ID or project name * @param {string} sessionId */ getTestSessionLayout(project: string, sessionId: string): Promise; /** * Creates Environment object in TCM data store * * @param {Contracts.TestSessionEnvironment[]} environments - Received Environment object. * @param {string} project - Project ID or project name */ createEnvironment(environments: Contracts.TestSessionEnvironment[], project: string): Promise; /** * Creates Notification object in TCM data store for a given session * * @param {Contracts.TestSessionNotification[]} notifications - Notification(s) to add for the specified sessionId * @param {string} project - Project ID or project name * @param {number} sessionId - ID of Session to add Notification */ createNotification(notifications: Contracts.TestSessionNotification[], project: string, sessionId: number): Promise; /** * Retrieves TestResultsSession Notification objects in TCM data store * * @param {string} project - Project ID or project name * @param {number} sessionId - Id of TestResults session to obtain Notifications for. */ getSessionNotifications(project: string, sessionId: number): Promise; /** * Add Test Results to test run session * * @param {Contracts.TestCaseResult[]} results * @param {string} project - Project ID or project name * @param {number} runId - RunId of test run */ addTestResultsToTestRunSession(results: Contracts.TestCaseResult[], project: string, runId: number): Promise; /** * @param {string} project - Project ID or project name * @param {number} runId * @param {Contracts.ResultDetails} detailsToInclude * @param {number} skip * @param {number} top * @param {Contracts.TestOutcome[]} outcomes * @param {boolean} newTestsOnly */ getTestSessionResults(project: string, runId: number, detailsToInclude?: Contracts.ResultDetails, skip?: number, top?: number, outcomes?: Contracts.TestOutcome[], newTestsOnly?: boolean): Promise; /** * Creates TestResultsMRX objects in TCM data store for existing test results * * @param {Contracts.TestCaseResult[]} results - Results object with only test results MRX properties and existing testResultId * @param {string} project - Project ID or project name * @param {number} runId - RunId of test run */ updateTestResultsToTestRunSession(results: Contracts.TestCaseResult[], project: string, runId: number): Promise; /** * @param {Contracts.TestSettings} testSettings * @param {string} project - Project ID or project name */ createTestSettings(testSettings: Contracts.TestSettings, project: string): Promise; /** * @param {string} project - Project ID or project name * @param {number} testSettingsId */ deleteTestSettings(project: string, testSettingsId: number): Promise; /** * @param {string} project - Project ID or project name * @param {number} testSettingsId */ getTestSettingsById(project: string, testSettingsId: number): Promise; /** * @param {Contracts.WorkItemToTestLinks} workItemToTestLinks * @param {string} project - Project ID or project name */ addWorkItemToTestLinks(workItemToTestLinks: Contracts.WorkItemToTestLinks, project: string): Promise; /** * @param {string} project - Project ID or project name * @param {string} testName * @param {number} workItemId */ deleteTestMethodToWorkItemLink(project: string, testName: string, workItemId: number): Promise; /** * @param {string} project - Project ID or project name * @param {string} testName */ queryTestMethodLinkedWorkItems(project: string, testName: string): Promise; /** * @param {string} project - Project ID or project name * @param {number} runId * @param {number} testCaseResultId */ getTestResultWorkItemsById(project: string, runId: number, testCaseResultId: number): Promise; /** * Query Test Result WorkItems based on filter * * @param {string} project - Project ID or project name * @param {string} workItemCategory - can take values Microsoft.BugCategory or all(for getting all workitems) * @param {string} automatedTestName * @param {number} testCaseId * @param {Date} maxCompleteDate * @param {number} days * @param {number} workItemCount */ queryTestResultWorkItems(project: string, workItemCategory: string, automatedTestName?: string, testCaseId?: number, maxCompleteDate?: Date, days?: number, workItemCount?: number): Promise; }