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

Thursday, June 30, 2011
Avatar
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
Avatar
re: oliver.wettich Thursday, June 30, 2011

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
Avatar
re: inflectra.adam 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
Avatar
re: oliver.wettich 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
Avatar
re: inflectra.adam 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
Avatar
re: oliver.wettich Saturday, July 2, 2011
No, it cannot be added to that specific report.
Statistics
  • Started: Thursday, June 30, 2011
  • Last Reply: Wednesday, July 6, 2011
  • Replies: 5
  • Views: 1151