Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
313 views
in Technique[技术] by (71.8m points)

REST API to update test point execution outcome in Azure Devops using Test Case ID or Test Case Name

Currently I am able to change the outcome of a test point using it's testpointID in the API.Below is the API: https://dev.azure.com/{organization}/{project}/_apis/test/Plans/{planID}/Suites/{suiteID}/points/{testpointID}?api-version=5.0

According to my understanding, the test point IDs are uniquely generated by the system and the only way to know them is through another REST API.(please correct me if I am wrong)

Since obtaining the test point IDs through another API call is an additional step, I would like to know if there is any way to make the first outcome updation call using the test case name or test case ID?

question from:https://stackoverflow.com/questions/65871685/rest-api-to-update-test-point-execution-outcome-in-azure-devops-using-test-case

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

When you execute a test point, it's supposed to get a test run. So you could try Results - Update api to update test results in a test run:

PATCH https://dev.azure.com/{organization}/{project}/_apis/test/Runs/{runId}/results?api-version=6.0

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...