Customize test case report

Wortner
Messages : 3
Inscription : lun. sept. 19, 2016 12:46 pm

Customize test case report

Message par Wortner »

Hello,
I need help customizing test case report in Squash TM. I would like to know how it's generated so far I have not been able to even find the template for it, not to mention how it is generated. Any hint is really appreciated. I also found some test case plugin(squash-tm-report-requirements-and-testcases), but there is only some docx template inside, I'm completely lost.

Is there any documentation for this task? Actually the customization should be really easy, just to show pictures in test steps, maybe it can be just enabled.

Thanks beforehand for any response.

M.W.
mdelobeau
Messages : 256
Inscription : lun. avr. 18, 2016 8:53 am

Customize test case report

Message par mdelobeau »

Hello,

I'm not really sure if you want to customize existing reports or create your own reports.
Either way, here are some tips that could help you.

[b]1. [u]Creating reports[/u][/b]

You can use the following technologies :

[b]DocXTemplater[/b]

+ not generated on the server
+ it generates .docx files that can be easily edited by the user

- only .docx format

[b]JasperReports[/b]

+ several file formats
+ suited to reports (iReport)
+ common technology

- generated on the server
- it's not necessarily possible to edit .doc files generated


[b]Plugin :[/b]

Requirements and Test Case reports : [url=https://bitbucket.org/nx/squash-tm-repo ... -testcases]https://bitbucket.org/nx/squash-tm-repo ... -testcases[/url]

Depending on the sources branches :

version 2+ : DocXTemplater
version [1.7, 2.0) : JasperReports

We recommend to take a look at Requirements report first.

For the reports forms, you can look at the sources and API (in org.squashtest.tm.api.report, maven artifact is core.report.api)


[b]2. [u]Editing existing reports[/u][/b]

For the .docx reports (requirements report and test case report)
In the 'plugins' directory (in the install directory of Squash TM), the plugins are named report.books.testcases-X.X.X.RELEASE.jar et report.books.requirements-X.X.X.RELEASE.jar
In these files, there are the templates (.docx format). You can edit this document and replace in the jar file.
We would advise you :
- to keep the original template so you can replace the customize one in the jar file if necessary
- if you upgrade Squash TM, the customized template will be erased so don't forget to save it before

Regards,

Marion - Squash Team
jan
Messages : 2
Inscription : mer. mars 20, 2019 1:10 pm

Customize test case report

Message par jan »

I try to customize the requirement/testcase templates too.
But i cant find them.

I use the H2 Database.

Where can I find the templates in .docx format?

I want to use the export function from SquashTM.

-------

EDIT:

I found the .docx templates to customize the reports for requirements or testcase report.

Look in your squashtm/plugin folder.
There you find several .jar files. (like report.books.requirements-xxxx.RELEASE.jar)
Copy this file to your local drive and rename it to report.books.requirements-xxxx.RELEASE.zip
Now you can unzip this file and get some folders, but also a .docx template!
Customize this template and put it back in the zip archive.
Last step - rename from .zip to .jar!
Thats it!
Répondre

Revenir à « Pilotage / Management »