是否存在使用Test Management Client API更新TFS测试用例区域路径和优先级的API [英] Is there an API for updating the TFS Test Case Area path and Priority using the Test Management Client API
本文介绍了是否存在使用Test Management Client API更新TFS测试用例区域路径和优先级的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有使用Test Management Client API更新TFS测试用例区域路径和优先级的API,目前我只能创建一个包含标题,步骤,附件和注释的测试用例。我无法更新任何其他字段。有没有办法
呢?
Is there an API for updating the TFS Test Case Area path and Priority using the Test Management Client API, Presently I am able to create a test case with Title, Steps, Attchments and comments only. I am unable to update any other fields. Is there a way to do it?
任何帮助都将不胜感激。
Any help would be greatly appreciated.
推荐答案
嗨!
ITestCase有一个成员"WorkItem"。您可以尝试更改该成员中的字段并保存。
ITestCase has a member "WorkItem". You can try to change fields in that member and save it.
ITestCase ts = TFSTestProject.TestCases.Create();
ts.Title = "Your title";
ts.Save();
ts.WorkItem.Fields["YouField"].Value = "Value";
ts.WorkItem.Save();
这篇关于是否存在使用Test Management Client API更新TFS测试用例区域路径和优先级的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文