Martin
Martin

Reputation: 11875

DevOps API how to create a test point

In order to use Microsoft.TeamFoundation.TestManagement.WebApi.TestManagementHttpClientRetryHelper.AddTestResultsToTestRunAsync you need an Microsoft.TeamFoundation.TestManagement.WebApi.TestPoint. There are several API to get query a TestPoint. I can find test points vor various test configurations. However, not for the test configuration I'm planning to use. That leaves me with the question: How to you actually create a test point. Manually or with the API.

Side-Note: I can't find the test points in the user interface at all. Microsoft.TeamFoundation.TestManagement.WebApi.TestHttpClientBase.GetPointsAsync seem to be the only place they actually show up.

Upvotes: 0

Views: 39

Answers (2)

Ziyang Liu-MSFT
Ziyang Liu-MSFT

Reputation: 5296

According to the official doc Test points,

When you add a test case to a test suite then test point(s) are generated. A test point is a unique combination of test case, test suite, configuration, and tester. For example, if you have a test case named Test login functionality and you add two configurations for the Edge and Chrome browsers, you have two test points.

To create a test point, you can add a new test case to the test suite, change the configuration or tester of the suite using REST API Test Suites - Update.

Upvotes: 1

Martin
Martin

Reputation: 11875

Answering my own question - at least for the GUI part. This Dialog here does the trick:

configuration

As soon as you add the desired test configuration the needed test points are created. Note that I added one test configuration but got two test points.

You find the dialog here:

enter image description here

Upvotes: 0

Related Questions