It's all about the answers!

Ask a question

How do I display embedded images in Test Scripts in my RPE output


Ben Sharples (813360) | asked Dec 13 '15, 6:02 p.m.
Hello,

In some of my Test Scripts my test engineers have added images as part of the description field.

When I extract the description to publish in my word document the image does not get displayed only the link to the image on the server.

Images in Test Case and Test Plan sections come out fine though.

2 answers



permanent link
Subramanya Prasad Pilar (4.6k16) | answered Dec 14 '15, 1:41 a.m.
edited Dec 14 '15, 2:33 a.m.
Do you mean images as part of Step description? You can get the images from both Step "Description" and "Expected Results" in RPE output.

Are you seeing this issue only for keywords or for execution steps also? For Step Description, if you are using testscript/steps/step/title, replace it with testscript/steps/step/description.

Comments
Ben Sharples commented Dec 14 '15, 6:17 p.m.

On the examples I've working with the images are all in keywords. (I use 2 datasource configurations to firstly go from parent Test Script to the Keyword then from the Keyword to the Sub-Test Script)

I'm using testscript/steps/step/description and assigning that to a variable which I then assign to a text element in a cell.

Note I'm currently using RQM v4.0.6


permanent link
Subramanya Prasad Pilar (4.6k16) | answered Dec 15 '15, 4:26 a.m.
You must select "XHTML Input" while assigning testscript/steps/step/description to variable and select "XHTML Output" while setting that variable as content for text element. Also note that the images will be shown only if the text element is within the query context (since qm user credentials are required for authenticating image url).



Comments
Ben Sharples commented Dec 15 '15, 5:50 a.m.

This is not making any difference. I still only get links to the URLs and not the images returned in the RPE output.

In terms of user credentials I have a reporting user that has been created that has full access to everything.


Subramanya Prasad Pilar commented Dec 15 '15, 6:42 a.m. | edited Dec 15 '15, 6:44 a.m.

I meant that RPE can authenticate only within the query context. That means, if you assign description value to variable v1 and use v1 outside the query context, RPE cannot get the image. However, in RPE 2.0.1, we have added "Inherited data configuration" property for Text element. Once you set it to datasource, the image would be shown.

Your answer


Register or 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.