move Estimated time

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

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
wingking84
Advanced user
Posts: 22
Joined: Wed Jan 27, 2010 3:21 am

move Estimated time

Post by wingking84 »

in "Test Report",check "Metrics",at the bottom will see:
Reports and Metrics
Estimated time for executing 3 test cases (min):50

Time used for executing 3 test cases (hours):2
i want this display at the top.
what should i do ?
thank you.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: move Estimated time

Post by fman »

do a little bit of reverse engineering (not so complicated) and move lines at please you want but you will be very careful each time you will upgrade test link, to redo your changes
wingking84
Advanced user
Posts: 22
Joined: Wed Jan 27, 2010 3:21 am

Re: move Estimated time

Post by wingking84 »

i am not good at php,and i spent all my afternoon to find where is the key place,but failed.
is there a develop guide ?
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: move Estimated time

Post by fman »

developer guide will be useless in this situation, because is not aimed to this kind of needs
wingking84
Advanced user
Posts: 22
Joined: Wed Jan 27, 2010 3:21 am

Re: move Estimated time

Post by wingking84 »

the answer is :
in printDocument.php,move below code to line 274(below case DOC_TEST_REPORT:)
if (($doc_info->type == DOC_TEST_REPORT) && ($printingOptions['metrics']))
{
$docText .= buildTestPlanMetrics($doc_data->statistics,$platform_id);
}
Post Reply