Need some help at creating report for test run detailed at the "TestRunDetails_MsWord2003.xslt"

Thursday, June 30, 2011 8:22:17 AM
Hi All,

i need additional output in the test run detailed report. I need there the information about the requirements of the related test case. I added the following phrase into the "TestRunDetails_MsWord2003.xslt" file:

...
...
...
        <xsl:for-each select="CustomProperties/CustomProperty">
          <w:tr>
            <w:tc>
              <w:p>
                <w:pPr>
                  <w:pStyle w:val="BoldText"/>
                </w:pPr>
                <w:r>
                  <w:t>
                    <xsl:value-of select="Alias"/>:
                  </w:t>
                </w:r>
              </w:p>
            </w:tc>
            <w:tc>
              <w:tcPr>
                <w:hmerge w:val="restart"/>
              </w:tcPr>
              <w:p>
                <w:r>
                  <w:t>
                    <xsl:value-of select="Value"/>
                  </w:t>
                </w:r>
              </w:p>
            </w:tc>
            <w:tc>
              <w:tcPr>
                <w:hmerge/>
              </w:tcPr>
              <w:p></w:p>
            </w:tc>
            <w:tc>
              <w:tcPr>
                <w:hmerge/>
              </w:tcPr>
              <w:p></w:p>
            </w:tc>
          </w:tr>
        </xsl:for-each>
      </w:tbl>
      <w:p>
        <w:pPr>
          <!--<w:pStyle w:val="Heading2"/>-->
          <!-- Inserted by Oliver -->
         <w:pStyle w:val="BoldText"/>
        </w:pPr>
        <w:r>
          <w:rPr>
           <w:sz w:val="24"/>
           <w:sz-cs w:val="24"/>
           <w:lang w:val="EN-GB"/>
          </w:rPr>
          <w:t>Description:</w:t>
          <w:br w:type="text-wrapping"/>
        </w:r>
      </w:p>
      <w:p>
        <w:r>
          <w:t>
            <xsl:value-of select="Description" disable-output-escaping="yes"/>
          </w:t>
        </w:r>
      </w:p>
                  <!-- output of requirements -->
            <w:p>
                <w:pPr>
                  <!--<w:pStyle w:val="Heading2"/>-->
                  <!-- Inserted by me-->
                 <w:pStyle w:val="BoldText"/>
                </w:pPr>
                <w:r>
                  <w:rPr>
                   <w:sz w:val="24"/>
                   <w:sz-cs w:val="24"/>
                   <w:lang w:val="EN-GB"/>
                  </w:rPr>
                  <w:t>Requirements:</w:t>
                  <w:br w:type="text-wrapping"/>
                </w:r>
             </w:p>
             <w:tbl>
              <w:tblPr>
                <w:tblStyle w:val="DataGrid"/>
                <w:tblLook w:val="000001E0"/>
              </w:tblPr>
              <w:tr>
                <w:tc>
                  <w:p>
                    <w:r>
                      <w:t>Req #</w:t>
                    </w:r>
                  </w:p>
                </w:tc>
                <w:tc>
                  <w:p>
                    <w:r>
                      <w:t>Name</w:t>
                    </w:r>
                  </w:p>
                </w:tc>
              </w:tr>
              <xsl:for-each select="Requirements/Requirement">
                <w:tr>
                  <w:tc>
                    <w:p>
                      <w:r>
                        <w:t>RQ<xsl:value-of select="RequirementId"/></w:t>
                      </w:r>
                    </w:p>
                  </w:tc>
                  <w:tc>
                    <w:p>
                      <w:r>
                        <w:t>
                          <xsl:value-of select="Name"/>
                        </w:t>
                      </w:r>
                    </w:p>
                  </w:tc>
                </w:tr>
              </xsl:for-each>
...
..
.

When now creating the report there are only the column headline but no output.
Mabe anyone of you has an idea ?

Regards,
Oliver

5 Replies
Thursday, June 30, 2011 4:22:58 PM
Avatar
re: oliver.wettich on Thursday, June 30, 2011 8:22:17 AM

Did you just change the:

<w:pStyle w:val="BoldText"/>

if you restore back the original version, do you get output?

Friday, July 1, 2011 8:25:19 AM
Avatar
re: inflectra.adam on Thursday, June 30, 2011
Hi support team,

when i restore the orginal "TestRunDetails_MsWord2003.xslt" nothin happens because there is no output that includes the requirements. But i need an overview of the requirements at the "TestRunDetails_MsWord2003.xslt" report.

here are the complete file:

http://oli4work.funpic.de/web/Backup_TestRunDetails_MsWord2003.xslt       --> orginal

http://oli4work.funpic.de/web/TestRunDetails_MsWord2003.xslt                    --> adapted

my be you have an hint for me whats wrong or not.

Thx a lot.
Oliver
Friday, July 1, 2011 5:53:16 PM
Avatar
re: oliver.wettich on Friday, July 1, 2011
You cannot do that because the Requirements Data is not provided to that report. The source XML provided to the different types of report is different I'm afraid.
Saturday, July 2, 2011 1:40:39 PM
Avatar
re: inflectra.adam on Friday, July 1, 2011
Don't be affraid .... We need the information about the requirements Data in this report.
Well .... so there is no option to get he requirements datainto this report ?
Wednesday, July 6, 2011 6:58:36 PM
Avatar
re: oliver.wettich on Saturday, July 2, 2011
No, it cannot be added to that specific report.
Statistics
  • Started: Thursday, June 30, 2011 8:22:17 AM
  • Last Reply: Wednesday, July 6, 2011 6:58:36 PM
  • Replies: 5
  • Views: 860