I am trying to use the Team Foundation Server Power Tools (tfpt) to create workitems programmatically. I need to create many test cases this way. The power tools are largely undocumented unfortunately but I have traced it down to one last remaining bits. I need to be able to create test steps alongside the test case. This is done with a field called Steps=
For Example: /fields: "Title=My Title;Steps="
Now digging as far as I could in the field explorer, the text that follows steps has to be "HTML formatted" But I have no idea what Microsoft's definition of HTML is and what the tags should be in order to properly serve the data.
Any help is much appreciated
It is general HTML formatted value, for example
<div></div>, <B></B>.The detail value will be encoded. You can get encoded value via online tool.On the other hand, there is additional information indicate test step actions, for example:
<step id=”4” type=”ActionStep”> <parameterizedString isformatted="true"></ parameterizedString></step>.A simple step value:
I recommend that you can create test case by using TFS/VSTS API (Client SDK or Rest API)
C# code:
Also, you can get a test case step value by using this code:
Rest API: Create a work item
Body sample: