How can i embded Image in to Testcase step and expected result using tfs API or VSTS?

Siddiqui, Nadeem 1 Reputation point

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 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

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
27,206 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Rayton, Kevin 1 Reputation point

    We have content in a HTML structure that we need to import and the image tags need to be maintained exactly where they are

    0 comments No comments

  2. ChaitanyaNaykodi-MSFT 13,136 Reputation points Microsoft Employee

    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:

    Please let me know if there are any additional concerns. Thank you!

    0 comments No comments

  3. Rayton, Kevin 1 Reputation point

    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?