Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

What is the XML syntax for a RQM testscript step which contains a link to an image file

I have successfully imported XML based testscripts  with multiple test steps created from our previous repository. Many of our test case steps include an embedded image file (a png, jpg, or bmp file). I cannot seem to find the syntax that allows me to upload the image file, and I cannot seem to find the syntax to link to that uploaded image from the testscript.

My preference would be to upload the file and the script all at once in one XML so that I don't have to try to rationalize the links later; however, any working syntax will do!  I am using the RQMUrlUtility to import the files and we are currently using RQM 6.0.

Thank you!

0 votes


Accepted answer

Permanent link
I don't think you can do it with a single step using the RQMUrlUtility as is, when attachments are involved. We had similar discussions before.
https://jazz.net/forum/questions/179547/upload-attachment-to-a-test-artifact-with-rqm-url-utility-rest-api
https://jazz.net/forum/questions/213147/uploading-an-attachment-to-rqm-success-reported-but-no-attachment-or-no-id
David Babuder selected this answer as the correct answer

0 votes

Comments

Thanks. We upload the artifacts with unique names and use the Atom Feed for artifacts to pull down the RQM IDs for the artifacts and match them up with our unique names.

Then use the attachment's ID as the replacement reference (while encoding HTML characters), so:

Difference column displays a <img height="29" src="/atm/suites/folder1/folder2/filename.bmp" width="31" /> icon
if there are differences

becomes:

Difference column displays a &lt;img height="29" src="

Unfortunately posting formatted HTML does not work well in a tool that displays HTML. Take two on the "becomes:"

Difference column displays a &lt;img height="29" src="https://YOUR SERVER NAME/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/YOUR PROJECT APA NAME/attachment/urn:com.ibm.rqm:attachment:11298" width="31" /&gt;&#160;icon
if there are differences

(where "11298" was the id associated with the attachment.)

I believe you just stated how you managed to do it in such a fashion, is it correct? It does not appear as a follow-up question to me.

Correct that was our work-around. There are no more open questions on this thread

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Feb 29 '16, 5:13 p.m.

Question was seen: 1,231 times

Last updated: Aug 22 '18, 11:03 a.m.

Confirmation Cancel Confirm