question

vani avatar image
vani asked cwhitty answered

Not able to create a new report format in iTest

Hi, I am very new to iTest. I wanted to create a new report format in iTest (which would be same as HTML only the "Parameters" won't be visible in the reports). I created a custom format with all files same as HTML format (and only commenting out the Parameters part) but when I save my Test Reports using "Save Test Report As" option and selecting the new format, the reports get saved with 0 (zero) file size.

 

I also tried by using all the same files as HTML format and only a different name for my report format but still the reports are of zero size.

 

Please advice.

iTestresults and reporting
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

cwhitty avatar image
cwhitty answered

Customizing iTest test reports is now MUCH better! iTest and Velocity both use a template engine called freemarker to synthesize completely customized HTML or XML reports. iTest includes a sample template called "CUSTOM HTML" and Velocity supplies its sample as the default print template. By looking at the template, it's quite easy to see how report from the data model is applied to the template. For details on the data model, see the document at: Spirent-APT-ReportDataModel.pdf

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

PaulD avatar image
PaulD answered PaulD posted

If you don't get the XSL changes correct, then it is likely that your transformation will throw an exception and you may end up with what you see here.  The Error Log may have additional information -- but probably will just say that there was an XSL error.

 

If you post your changes, we may be able to spot the mistake.  

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

AdamB avatar image
AdamB answered AdamB posted

Can you attach a zipped copy of the reports folder that you have created?

 

Thanks,

Adam

1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

vani avatar image vani commented ·

Hi, I have attached the zipped copy of the reports folder that I had created.

 

The changes made are in the "summary.xslt" file where I have commented the parameter rendering. I have created this folder under "resources\reports11\test_report_templates\Custom_HTML" in my workspace where the other report templates are located.

 

<!-- <xsl:template name = "render_parameter">
    <xsl:param name = "session"/>
    <xsl:param name = "name"/>
    <xsl:param name = "description"/>
    <xsl:param name = "value"/>
    <xsl:param name = "source"/>
    <tr valign="top">
      <td>
        <xsl:value-of select="$session"/>
        <br/>
      </td>
      <td>
        <xsl:value-of select="$name"/>
        <br/>
      </td>
      <td>
        <xsl:value-of select="$description"/>
        <br/>
      </td>
      <td>
        <xsl:value-of select="$value"/>
        <br/>
      </td>
      <td>
        <xsl:value-of select="$source"/>
        <br/>
      </td>
    </tr>
  </xsl:template> -->

0 Likes 0 ·
Custom_HTML.zip (7.8 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.