Optional
options: IRequestOptionsStatic
Readonly
RESOURCE_Add test cases to suite.
Project ID or project name
ID of the test plan that contains the suite.
ID of the test suite to which the test cases must be added.
IDs of the test cases to add to the suite. Ids are specified in comma separated format.
Add test results to a test run.
List of test results to add.
Project ID or project name
Test run ID into which test results to add.
Project ID or project name
Optional
apiVersion: stringOptional
apiVersion: stringAttach a file to test step result
Attachment details TestAttachmentRequestModel
Project ID or project name
ID of the test run that contains the result.
ID of the test result that contains the iteration
ID of the test result iteration.
Optional
actionPath: stringHex value of test result action path.
Attach a file to a test result.
Attachment details TestAttachmentRequestModel
Project ID or project name
ID of the test run that contains the result.
ID of the test result against which attachment has to be uploaded.
Create new test run.
Run details RunCreateModel
Project ID or project name
Attach a file to a test run.
Attachment details TestAttachmentRequestModel
Project ID or project name
ID of the test run against which attachment has to be uploaded.
Create a test session
Test session details for creation
The team context for the operation
Project ID or project name
Attach a file to a test result
Attachment Request Model.
Project ID or project name
ID of the test run that contains the result.
ID of the test results that contains sub result.
ID of the test sub results against which attachment has to be uploaded.
Project ID or project name
Project ID or project name
Delete a test case.
Project ID or project name
Id of test case to delete.
Delete a test run by its ID.
Project ID or project name
ID of the run to delete.
Project ID or project name
Project ID or project name
Get code coverage data for a build.
Project ID or project name
ID of the build for which code coverage data needs to be fetched.
Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData.
Get Code Coverage Summary for Build.
Project ID or project name
ID of the build for which code coverage data needs to be fetched.
Optional
deltaBuildId: numberDelta Build id (optional)
Project ID or project name
Get a test point.
Project ID or project name
ID of the test plan.
ID of the suite that contains the point.
ID of the test point to get.
Optional
witFields: stringComma-separated list of work item field names.
Get a list of test points.
Project ID or project name
ID of the test plan.
ID of the suite that contains the points.
Optional
witFields: stringComma-separated list of work item field names.
Optional
configurationId: stringGet test points for specific configuration.
Optional
testCaseId: stringGet test points for a specific test case, valid when configurationId is not set.
Optional
testPointIds: stringGet test points for comma-separated list of test point IDs, valid only when configurationId and testCaseId are not set.
Optional
includePointDetails: booleanInclude all properties for the test point.
Optional
skip: numberNumber of test points to skip..
Optional
top: numberNumber of test points to return.
Get test points using query.
TestPointsQuery to get test points.
Project ID or project name
Optional
skip: numberNumber of test points to skip..
Optional
top: numberNumber of test points to return.
Project ID or project name
Optional
fields: string[]Optional
continuationToken: stringProject ID or project name
Optional
releaseEnvId: numberOptional
fields: string[]Optional
continuationToken: stringGet test result retention settings
Project ID or project name
Get a specific test case in a test suite with test case id.
Project ID or project name
ID of the test plan that contains the suites.
ID of the suite that contains the test case.
ID of the test case to get.
Get all test cases in a suite.
Project ID or project name
ID of the test plan that contains the suites.
ID of the suite to get.
Get iteration for a result
Project ID or project name
ID of the test run that contains the result.
ID of the test result that contains the iterations.
Id of the test results Iteration.
Optional
includeActionResults: booleanInclude result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration.
Get iterations for a result
Project ID or project name
ID of the test run that contains the result.
ID of the test result that contains the iterations.
Optional
includeActionResults: booleanInclude result details for each action performed in the test iteration. ActionResults refer to outcome (pass/fail) of test steps that are executed as part of a running a manual test. Including the ActionResults flag gets the outcome of test steps in the actionResults section and test parameters in the parameters section for each test iteration.
Download a test result attachment by its ID.
Project ID or project name
ID of the test run that contains the testCaseResultId.
ID of the test result whose attachment has to be downloaded.
ID of the test result attachment to be downloaded.
Get list of test result attachments reference.
Project ID or project name
ID of the test run that contains the result.
ID of the test result.
Download a test result attachment by its ID.
Project ID or project name
ID of the test run that contains the testCaseResultId.
ID of the test result whose attachment has to be downloaded.
ID of the test result attachment to be downloaded.
Get a test result for a test run.
Project ID or project name
Test run ID of a test result to fetch.
Test result ID.
Optional
detailsToInclude: ResultDetailsDetails to include with test results. Default is None. Other values are Iterations, WorkItems and SubResults.
Project ID or project name
Optional
publishContext: stringOptional
groupBy: stringOptional
filter: stringOptional
orderby: stringOptional
shouldIncludeResults: booleanOptional
queryRunSummaryForInProgress: booleanProject ID or project name
Optional
publishContext: stringOptional
groupBy: stringOptional
filter: stringOptional
orderby: stringOptional
shouldIncludeResults: booleanOptional
queryRunSummaryForInProgress: booleanGet test results for a test run.
Project ID or project name
Test run ID of test results to fetch.
Optional
detailsToInclude: ResultDetailsDetails to include with test results. Default is None. Other values are Iterations and WorkItems.
Optional
skip: numberNumber of test results to skip from beginning.
Optional
top: numberNumber of test results to return. Maximum is 1000 when detailsToInclude is None and 200 otherwise.
Optional
outcomes: TestOutcome[]Comma separated list of test outcomes to filter test results.
Project ID or project name
Optional
publishContext: stringOptional
outcomes: TestOutcome[]Optional
top: numberOptional
continuationToken: stringThis API will return results by Ids with fields specified/trend for particular automated test method. We are still improving this API and have not finalized proper signature and contract.
Project ID or project name
Project ID or project name
Optional
releaseEnvid: numberOptional
publishContext: stringOptional
outcomes: TestOutcome[]Optional
top: numberOptional
continuationToken: stringDownload a test run attachment by its ID.
Project ID or project name
ID of the test run whose attachment has to be downloaded.
ID of the test run attachment to be downloaded.
Get list of test run attachments reference.
Project ID or project name
ID of the test run.
Download a test run attachment by its ID.
Project ID or project name
ID of the test run whose attachment has to be downloaded.
ID of the test run attachment to be downloaded.
Get a test run by its ID.
Project ID or project name
ID of the run to get.
Optional
includeDetails: booleanDefault value is true. It includes details like run statistics, release, build, test environment, post process state, and more.
Get code coverage data for a test run
Project ID or project name
ID of the test run for which code coverage data needs to be fetched.
Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData.
Get test run message logs
Project ID or project name
ID of the run to get.
Get a list of test runs.
Project ID or project name
Optional
buildUri: stringURI of the build that the runs used.
Optional
owner: stringTeam foundation ID of the owner of the runs.
Optional
tmiRunId: stringOptional
planId: numberID of the test plan that the runs are a part of.
Optional
includeRunDetails: booleanIf true, include all the properties of the runs.
Optional
automated: booleanIf true, only returns automated runs.
Optional
skip: numberNumber of test runs to skip.
Optional
top: numberNumber of test runs to return.
Get test run statistics , used when we want to get summary of a run by outcome.
Project ID or project name
ID of the run to get.
Get a list of test sessions
The team context for the operation
Optional
period: numberPeriod in days from now, for which test sessions are fetched.
Optional
allSessions: booleanIf false, returns test sessions for current user. Otherwise, it returns test sessions for all users
Optional
includeAllProperties: booleanIf true, it returns all properties of the test sessions. Otherwise, it returns the skinny version.
Optional
source: TestSessionSourceSource of the test session.
Optional
includeOnlyCompletedSessions: booleanIf true, it returns test sessions in completed state. Otherwise, it returns test sessions for all states
Project ID or project name
Download a test sub result attachment
Project ID or project name
ID of the test run that contains the result.
ID of the test results that contains sub result.
ID of the test result attachment to be downloaded
ID of the test sub result whose attachment has to be downloaded
Get list of test sub result attachments
Project ID or project name
ID of the test run that contains the result.
ID of the test results that contains sub result.
ID of the test sub result whose attachment has to be downloaded
Download a test sub result attachment
Project ID or project name
ID of the test run that contains the result.
ID of the test results that contains sub result.
ID of the test result attachment to be downloaded
ID of the test sub result whose attachment has to be downloaded
Project ID or project name
Project ID or project name
Project ID or project name
Project ID or project name
Get history of a test method using TestHistoryQuery
TestHistoryQuery to get history
Project ID or project name
Project ID or project name
Project ID or project name
Get list of test Result meta data details for corresponding testcasereferenceId
TestCaseReference Ids of the test Result to be queried, comma separated list of valid ids (limit no. of ids 200).
Project ID or project name
Project ID or project name
Optional
publishContext: stringOptional
includeFailureDetails: booleanOptional
buildToCompare: BuildReferenceProject ID or project name
Optional
publishContext: stringOptional
includeFailureDetails: booleanOptional
releaseToCompare: ReleaseReferenceProject ID or project name
Project ID or project name
Optional
automatedTestName: stringOptional
testCaseId: numberOptional
maxCompleteDate: DateOptional
days: numberOptional
workItemCount: numberQuery Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.
Project ID or project name
Minimum Last Modified Date of run to be queried (Mandatory).
Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days).
Optional
state: TestRunStateCurrent state of the Runs to be queried.
Optional
planIds: number[]Plan Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
Optional
isAutomated: booleanAutomation type of the Runs to be queried.
Optional
publishContext: TestRunPublishContextPublishContext of the Runs to be queried.
Optional
buildIds: number[]Build Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
Optional
buildDefIds: number[]Build Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
Optional
branchName: stringSource Branch name of the Runs to be queried.
Optional
releaseIds: number[]Release Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
Optional
releaseDefIds: number[]Release Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
Optional
releaseEnvIds: number[]Release Environment Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
Optional
releaseEnvDefIds: number[]Release Environment Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
Optional
runTitle: stringRun Title of the Runs to be queried.
Optional
top: numberNumber of runs to be queried. Limit is 100
Optional
continuationToken: stringcontinuationToken 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.
Project ID or project name
Optional
workItemIds: number[]The test points associated with the test cases are removed from the test suite. The test case work item is not deleted from the system. See test cases resource to delete a test case permanently.
Project ID or project name
ID of the test plan that contains the suite.
ID of the suite to get.
IDs of the test cases to remove from the suite.
http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10 Request: Json of code coverage summary
Project ID or project name
Update test result retention settings
Test result retention settings details to be updated
Project ID or project name
Updates the properties of the test case association in a suite.
Model for updation of the properties of test case suite association.
Project ID or project name
ID of the test plan that contains the suite.
ID of the test suite to which the test cases must be added.
IDs of the test cases to add to the suite. Ids are specified in comma separated format.
Update test points.
Data to update.
Project ID or project name
ID of the test plan.
ID of the suite that contains the points.
ID of the test point to get. Use a comma-separated list of IDs to update multiple test points.
Update test results in a test run.
List of test results to update.
Project ID or project name
Test run ID whose test results to update.
Update test run by its ID.
Run details RunUpdateModel
Project ID or project name
ID of the run to update.
Update a test session
Test session details for update
The team context for the operation
Project ID or project name