Table of Contents
This tutorial will show how to create reports for Klaros-Testmanagement. Please note that custom reports are only available in Klaros-Testmanagement Enterprise Edition. Basic knowledge in Java programming and XML might be helpful to understand this tutorial. An example of the resulting report can be found here. The complete code can be downloaded here, feel free to modify it to your needs.
The first step in this tutorial will describe how to set up a development environment to help with creating reports. We recommend using Eclipse as the development framework.
Create a project to contain your reports
Open Eclipse and right click into the Project Explorer
In the menu then select New -> Other.
In the dialog select Java Project as shown in the picture then click on Next.
In the next dialog enter a title for your project (e.g.
) and press Finish.
The Package Explorer in Eclipse should now show your new project.
Set up the Project
First, create a subfolder to hold your XML files. Right click on your
project and select New -> Folder. In the dialog enter
in the Folder name field and click on .
Add the Klaros-Testmanagement scripting library to your build path. Right click on our project and select Properties. In the dialog click on Java Build Path, select the Libraries tab and then click on Add External JARs....
In the following dialog navigate to your Klaros-Testmanagement installation folder. From there navigate to the webapps/klaros-web/WEB-INF/lib folder and select the klaros-model-x.y.z.jar and klaros-scripting-x.y.z.jar, then click the "open" button.
Finally click on thebutton in the Build Path dialog. You now have an additional entry in your project named Referenced Libraries.