Optionaloptions: IRequestOptionsStatic ReadonlyRESOURCE_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
OptionalapiVersion: stringOptionalapiVersion: 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.
OptionalactionPath: 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.
OptionaldeltaBuildId: 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.
OptionalwitFields: 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.
OptionalwitFields: stringComma-separated list of work item field names.
OptionalconfigurationId: stringGet test points for specific configuration.
OptionaltestCaseId: stringGet test points for a specific test case, valid when configurationId is not set.
OptionaltestPointIds: stringGet test points for comma-separated list of test point IDs, valid only when configurationId and testCaseId are not set.
OptionalincludePointDetails: booleanInclude all properties for the test point.
Optionalskip: numberNumber of test points to skip..
Optionaltop: numberNumber of test points to return.
Get test points using query.
TestPointsQuery to get test points.
Project ID or project name
Optionalskip: numberNumber of test points to skip..
Optionaltop: numberNumber of test points to return.
Project ID or project name
Optionalfields: string[]OptionalcontinuationToken: stringProject ID or project name
OptionalreleaseEnvId: numberOptionalfields: string[]OptionalcontinuationToken: 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.
OptionalincludeActionResults: 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.
OptionalincludeActionResults: 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.
OptionaldetailsToInclude: ResultDetailsDetails to include with test results. Default is None. Other values are Iterations, WorkItems and SubResults.
Project ID or project name
OptionalpublishContext: stringOptionalgroupBy: stringOptionalfilter: stringOptionalorderby: stringOptionalshouldIncludeResults: booleanOptionalqueryRunSummaryForInProgress: booleanProject ID or project name
OptionalpublishContext: stringOptionalgroupBy: stringOptionalfilter: stringOptionalorderby: stringOptionalshouldIncludeResults: booleanOptionalqueryRunSummaryForInProgress: booleanGet test results for a test run.
Project ID or project name
Test run ID of test results to fetch.
OptionaldetailsToInclude: ResultDetailsDetails to include with test results. Default is None. Other values are Iterations and WorkItems.
Optionalskip: numberNumber of test results to skip from beginning.
Optionaltop: numberNumber of test results to return. Maximum is 1000 when detailsToInclude is None and 200 otherwise.
Optionaloutcomes: TestOutcome[]Comma separated list of test outcomes to filter test results.
Project ID or project name
OptionalpublishContext: stringOptionaloutcomes: TestOutcome[]Optionaltop: numberOptionalcontinuationToken: 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
OptionalreleaseEnvid: numberOptionalpublishContext: stringOptionaloutcomes: TestOutcome[]Optionaltop: numberOptionalcontinuationToken: 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.
OptionalincludeDetails: 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
OptionalbuildUri: stringURI of the build that the runs used.
Optionalowner: stringTeam foundation ID of the owner of the runs.
OptionaltmiRunId: stringOptionalplanId: numberID of the test plan that the runs are a part of.
OptionalincludeRunDetails: booleanIf true, include all the properties of the runs.
Optionalautomated: booleanIf true, only returns automated runs.
Optionalskip: numberNumber of test runs to skip.
Optionaltop: 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
Optionalperiod: numberPeriod in days from now, for which test sessions are fetched.
OptionalallSessions: booleanIf false, returns test sessions for current user. Otherwise, it returns test sessions for all users
OptionalincludeAllProperties: booleanIf true, it returns all properties of the test sessions. Otherwise, it returns the skinny version.
Optionalsource: TestSessionSourceSource of the test session.
OptionalincludeOnlyCompletedSessions: 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
OptionalpublishContext: stringOptionalincludeFailureDetails: booleanOptionalbuildToCompare: BuildReferenceProject ID or project name
OptionalpublishContext: stringOptionalincludeFailureDetails: booleanOptionalreleaseToCompare: ReleaseReferenceProject ID or project name
Project ID or project name
OptionalautomatedTestName: stringOptionaltestCaseId: numberOptionalmaxCompleteDate: DateOptionaldays: numberOptionalworkItemCount: 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).
Optionalstate: TestRunStateCurrent state of the Runs to be queried.
OptionalplanIds: number[]Plan Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
OptionalisAutomated: booleanAutomation type of the Runs to be queried.
OptionalpublishContext: TestRunPublishContextPublishContext of the Runs to be queried.
OptionalbuildIds: number[]Build Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
OptionalbuildDefIds: number[]Build Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
OptionalbranchName: stringSource Branch name of the Runs to be queried.
OptionalreleaseIds: number[]Release Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
OptionalreleaseDefIds: number[]Release Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
OptionalreleaseEnvIds: number[]Release Environment Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
OptionalreleaseEnvDefIds: number[]Release Environment Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
OptionalrunTitle: stringRun Title of the Runs to be queried.
Optionaltop: numberNumber of runs to be queried. Limit is 100
OptionalcontinuationToken: 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
OptionalworkItemIds: 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