Page 1 of 1

Using default Test Reports as a template for a custom report

Posted: Fri Jul 11, 2014 7:49 pm
by don_l1
We are current running TestLink version 1.9.11. I am interested in using two of the test reports that come with the TL distribution as a template for creating additional reports. Specifically, I am looking to modify the reports with the name "Test Plan Report" and "Test Plan" - these are the first two reports in the default report list. I am having a challenge locating the proper files that I would need to edit or use as a starting point for a custom report. Can anyone tell me which .PHP and .TPL files correspond to these reports and where I can find them in the source tree? I am most interested in the HTML output of these two reports. Thanks for your help.

Don

Re: Using default Test Reports as a template for a custom re

Posted: Sun Jul 13, 2014 10:14 am
by fman
If you login to testlink and access the reports, you can get the link to lauch the feature:

example for Test Report
../testlink/lib/results/printDocOptions.php?type=testreport&format=0&tplan_id=156

normally code for reports is present on files on [TestLink InstallDIR]\lib\results\ and/or [TestLink InstallDIR]\lib\functions\

do not forget to share your development with community.
Best path to follow
1. create a ticket on mantis detailing what your new feature is going to add to TestLink
2. share the code using a social coding platform like github or gitorious, or provide a zip file with all changed/new files (ATTACH it to the TICKET you have created)