Page 1 of 1
move Estimated time
Posted: Sat Jul 09, 2011 8:45 am
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.
Re: move Estimated time
Posted: Sat Jul 09, 2011 10:15 am
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
Re: move Estimated time
Posted: Sat Jul 09, 2011 11:35 am
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 ?
Re: move Estimated time
Posted: Sat Jul 09, 2011 5:32 pm
by fman
developer guide will be useless in this situation, because is not aimed to this kind of needs
Re: move Estimated time
Posted: Sun Jul 10, 2011 3:28 pm
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);
}