Constructing a Custom Report for IBM Rational Integration Tester

Technote (FAQ)


Question

How can a custom modification be made to an existing report in IBM Rational Integration Tester?

Answer


    IBM Rational Integration Tester's in-built reports are based on XML data published by the application and transformed into human readable data using XSLT. This XSLT is stored on the file system and a number of clients have taken advantage of this fact to modify the shipped XSLT in order to create customized reports.

    The intention of this document is to share the information required to make such modifications.

Intended Audience

    This document is intended for use by those with proficient XSLT skills, who are prepared to determine the contents of the source XML by examination and who wish to modify XSLT which ships with IBM Rational Integration Tester in order to create customized reports.

Basic Solution

    With IBM Rational Integration Tester installed in the default location the report templates are found here:


    C:\Program Files\IBM\RationalIntegrationTester\config\report-templates\GreenHat

    The report templates have a ".xsl" extension. For example there is a "Detailed Report.xsl" file which contains the template for the Detailed Report. Modifying this file will modify the detailed report which appears within IBM Rational Integration Tester.

    The ".xsl" files contain instructions in the XSLT language which is a standard XML application. Documentation for XSLT is available in books and on the Internet.


XML Discovery

    Modifying XSLT is a great deal easier if it is also possible to see the XML upon which the XSLT is acting. One way to see the XML is to temporarily replace the template to be modified with an identity template which simply returns the incoming XML, and then run the report.

      Example Identity Template:

      <?xml version="1.0" encoding="UTF-8"?>
      <xsl:stylesheet version="2.0" xmlns:xsl="
      http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml" indent="yes"/>
         <xsl:template match="node()|@*">
             <xsl:copy>
                 <xsl:apply-templates select="@*|node()" />
             </xsl:copy>
         </xsl:template>
      </xsl:stylesheet>


    When this is executed the displayed report will appear as a blank page. This is correct.

    The blank page may then opened in an external viewer (using the "Open Externally" toolbar button) causing it to appear in the computer's default web browser. The web browser's view source option can then be used to display the XML.


Multiple Source Documents

    The XSLT reports commonly process more than one XML source document. In that case the primary XML document will itself refer to other XML documents.

    For example this section of XML is a reference to another URL:


      <task name="Folder/Test 1" logLocation="test-execution-data:27283"/>

    The other URL which is later expanded into the XSLT processed output:

      <xsl:variable ... select="document(TestSuite/task/@logLocation)/Test/summary"/>

    The URL of the second XML document is relative to the location of the primary XML document.

Alternate approaches

    It is possible to connect directly to the IBM Rational Integration Tester results database and to then use dedicated reporting tools to generate reports directly from the recorded data. This allows the user to create a completely new report containing data from the IBM Rational Integration Tester test results.

    The format of the tables and views within the IBM Rational Integration Tester results database is not published, and therefore it is necessary to determine the structure of the data by examination of the values in the database.

    In future there may be a set of dedicated reporting views are created for reporting directly from the database, or for populating a data warehouse for subsequent reporting. Such a set of views should remain backwardly compatible with new releases of IBM Rational Integration Tester.


Compatibility with future releases

    The ability to create tailored reports by modifying XSLT files within IBM Rational Integration Tester is a consequence of the application design, but it is not a feature of the software. Both the XSLT which ships with IBM Rational Integration Tester and the XML from which it runs may change in future; or the reporting mechanism may be changed. Customers must therefore be aware that tailored reports created through modified XML may not be usable with future versions of IBM Rational Integration Tester.

    The format of the tables and views in the IBM Rational Integration Tester results database is also subject to potential change with future release of IBM Rational Integration Tester. Customers must therefore be aware that tailored reports created by accessing the database directly or through third party reporting tools may not be usable with future versions of IBM Rational Integration Tester.

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational Test Workbench
Rational Integration Tester

Software version:

8.0, 8.0.0.1, 8.0.0.2

Operating system(s):

AIX, Linux, Solaris, Windows

Reference #:

1614354

Modified date:

2013-10-07

Translate my page

Machine Translation

Content navigation