question

SiddiquiNadeem-5341 avatar image
0 Votes"
SiddiquiNadeem-5341 asked ·

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

not-supported
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RaytonKevin-9331 avatar image
0 Votes"
RaytonKevin-9331 answered ·

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

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ChaitanyaNaykodiMSFT-9638 avatar image
0 Votes"
ChaitanyaNaykodiMSFT-9638 answered ·

Hello @SiddiquiNadeem-5341, @RaytonKevin-9331 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!

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RaytonKevin-9331 avatar image
0 Votes"
RaytonKevin-9331 answered ·

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?

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @RaytonKevin-9331, apologies for any misunderstanding caused. I see that the question was tagged with "Azure API Management" product which helps organizations publish APIs to external, partner, and internal developers to unlock the potential of their data and services. Can you please let me know if you are using Api Management product in your project? if yes can you please explain more how you are utilizing Azure API management?

I had shared the community link above as they actively answer questions or problems related to "tfs API" and "vsts".

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



0 Votes 0 ·