We have content in a HTML structure that we need to import and the image tags need to be maintained exactly where they are
How can i embded Image in to Testcase step and expected result using tfs API or VSTS?
Hi We are using Testcase management from TFS. I would like to embed image in to Testcase steps (both action and expected result). We have tried both base64 string and attachment linking as per below link https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b62a0a2c-e1ba-45c7-9a25-680604048bc2/embeded-inline-image-writing-to-workitem-description-throught-api-c-code?forum=tfsgeneral Its working for description field but not for step-action and step-expected result. Can you please help us how to achieve this feature. Note: If we are passing <img tag it will be removed by FlowDocument of respective field. With Kind Regards Nadeem
3 answers
Sort by: Most helpful
-
-
ChaitanyaNaykodi-MSFT 26,956 Reputation points Microsoft Employee
2021-03-08T21:19:28.483+00:00 Hello @Siddiqui, Nadeem , @Rayton, Kevin Thank you for reaching out!
We want to make sure your question is read by the right people (who will be able to give you the best answers). Can you please post your question in the following forum, where the Azure DevOps team and DevOps community are actively answering questions:https://developercommunity.visualstudio.com/spaces/21/index.html
Please let me know if there are any additional concerns. Thank you!
-
Rayton, Kevin 1 Reputation point
2021-03-09T09:32:28.547+00:00 Sorry but this does not help in the least, we are talking of the api system so the linked item is irrelevant to our issue,
we need to be able to send a testcase via the api complete with steps with inline images,
TFS supports these inline images from the front end but they (and possible other items) are being stripped out by the api,
we dont mind doing some post processing to tag and label the items but they must be visible from the test step and they must be in the right location
sofar the HTML structure seems to be getting mostly maintained so for the test and tables we are good but we just need to know what we need to send inorder to inline an image on the step?