Skip Navigation LinksForums > SpiraTest Forums > SpiraTest Issues & Questi... > displaying actual attachm...

displaying actual attachment in report instead of name RSS Feed

Monday, October 21, 2013

in a test run detailed report, (output to html or word) I want to display the attachments (typically png files) instead of giving the default details.
googling a bit I came up with:
<img src="http://myservername/SpiraTeam/14/Attachment/{AttachmentId}.aspx"/>
this displays the the file correctly, but only in project 14, because project_id is not available in attachment.

I did not find a solution to make the project id variable.
can you provide a working xslt solution for this?
or is there another quicker/better solution?

5 Replies
Adam SAdam S
re: Filip Baert on Monday, October 21, 2013
Tuesday, October 22, 2013

Hi Filip

Please try the following:

     <xsl:attribute name="src">
            http://myservername/SpiraTeam/<xsl:value-of select="../../PROJECT_ID" />/Attachment/<xsl:value-of select="AttachmentId" />.aspx

This should work because although the Attachments don't include the project-id, the test runs themselves do.



Filip BaertFilip Baert
re: Adam S on Tuesday, October 22, 2013
Tuesday, October 22, 2013

seems to work like a charm.
thanks for the solution!

Filip BaertFilip Baert
re: Filip Baert on Tuesday, October 22, 2013
Thursday, July 30, 2015

I don't know if it worked back than when exporting to Word, but now it doesn't.
Word states that it cannot load the png file. This may be explained by the fact that one needs to log in to spirateam to see these images.

what is the solution to see these in a generated word report?

Elise B.Elise B.
re: Filip Baert on Thursday, July 30, 2015
Wednesday, August 5, 2015
Hi Filip,

Unfortunately, with SpiraTest 4.1 and later, the embedded images do not display in Word reports. The workaround is to use a different output format.

Jack WrightJack Wright
re: Elise B. on Wednesday, August 5, 2015
Friday, November 25, 2016

Hi Elise,

How about if the attachment is of Word format? Would it also be uploaded and embedded as part of say PDF format of Test Set Detailed report?


  • Started: 10/21/2013
  • Last Reply: 11/25/2016
  • Replies: 5
  • Views: 776
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2017 | Licensed to Inflectra Corporation.