ISAITB / gitb

The Interoperability Test Bed is a service offered by the European Commission’s DIGIT for the conformance testing of IT systems. It is based on the GITB CEN Workshop Agreement and was originally forked from the GITB PoC software (available at https://github.com/srdc/gitb).
https://joinup.ec.europa.eu/solution/interoperability-test-bed/about
Other
17 stars 4 forks source link

[Question] Using a custom report template #58

Open EliottPaillard opened 1 month ago

EliottPaillard commented 1 month ago

Hello @costas80,

We're thinking about maybe use our own custom test session report template. We have already some tools from our side to convert an xml file in a PDF one and I was wondering if it would be possible to use them to allow users to download our report directly from ITB.

I believe ITB does not propose to use a custom converter yet. Do you think it is possible for ITB to offer this kind of things?

costas80 commented 1 month ago

Hi @EliottPaillard.

That sounds like a nice feature. Currently if you connect as a community (or Test Bed) admin you can configure report settings for a community. There are options here for customising the built-in PDF reports for a conformance statement/overview certificate but for other kinds of reports (conformance statement/overview report, test case report, test step report) we only provide the possibility to configure an XSLT to customise the report when produced in XML.

Based on what you suggest I would foresee the possibility to configure a REST service to which the XML report will be posted and that will expect a response with the PDF report to download for the user. Like that you will be able to use your converter implementation directly assuming you wrap it with a simple API.

If this sounds good (please confirm) I'll add it to the backlog for implementation.

EliottPaillard commented 1 month ago

Hey @costas80

Indeed it sounds good to me, we planned to work on this from our side soon. I'll keep you up-to-date

costas80 commented 1 month ago

Thanks for confirming @EliottPaillard. We will also plan development for this so I'll also let you know when it is available to use. In brief for the integration you should simply consider a REST endpoint that receives via HTTP POST the XML report as the request's body, and responds with the resulting PDF (sent as the response's body).