简体   繁体   中英

How to update "Area Path" of a test case in Azure Devops using Azure Devops Services Rest API

I write test cases in Visual Studio - Specflow feature file. Post that, I use "AzureDevops Test Connector" to migrate test cases into Azure Devops - Test Plan -> Test Suite(Which are already created in Azure Devops by me).

My requirement is to update, "Area Path" and "Iteration" for the newly created test cases.

I am able to update "Area Path" and "Iteration" for Test Plan and Test suite using Azure Devops Services Rest APIs. But, there is no provision to update these values in Test Case. Any lead will be much appreciated. Below is what i tried. Thanks in advance!

.

PATCH CALL TO UPDATE AREA PATH AND ITERATION PATH - BUT IT IS NOT WORKING | SCREENSHOT FROM POSTMAN

在此处输入图像描述

I was able to achieve this by using "work item" instead of "Test Case". Using this, I am able to update all the field values.

Postman - add Content-Type = application/json-patch+json | under headers separately. Keep body as "raw" and "JSON" in drop down.

Azure Devops Work Items Rest API Details

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM