Using default Test Reports as a template for a custom report

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
don_l1
TestLink user
Posts: 1
Joined: Sun Mar 30, 2014 10:19 am

Using default Test Reports as a template for a custom report

Post 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
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

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

Post 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)
Post Reply