Quantcast
Channel: Visio General Questions and Answers for IT Professionals forum
Viewing all articles
Browse latest Browse all 2333

How to link a bug to testcase using TFS API's with C#

$
0
0

Hi,

I have the below code and I want to know what are the API's available to link a bug to testcase using TFS API's in C#.

WorkItemStore

store = newWorkItemStore(ServerURL);


Projectproj = store.Projects[ProjectName];

           

WorkItemTypetype = proj.WorkItemTypes["Bug"];

           

WorkItemworkItem =newWorkItem(type);

            workItem.Title =

GlobalValue.Title;

            workItem.Fields[

"Repro Steps"].Value =GlobalValue.Steps;

            workItem.Fields[

"Assigned To"].Value =GlobalValue.Assigned;

            workItem.Fields[

"Backlog Priority"].Value =GlobalValue.Priority;

            workItem.Fields[

"Severity"].Value =GlobalValue.Severity;

           




            workItem.Save();

Thanks,

Md.Eshaq


Viewing all articles
Browse latest Browse all 2333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>