Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006583TestLinkReportspublic2014-09-17 14:562014-09-27 16:42
ReporterJRE 
Assigned Tofman 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version1.9.11 (2014 Q2 - bug fixing) 
Fixed in Version1.9.12 (2014 Q3) 
Summary0006583: Testcases incrementally indented in table of contents of reports
DescriptionTest reports allow for table of contents generation.

The generated table of contents is a tree view with both testsuites and testcases. However, if a suite has multiple testcases, the testcases will be incrementally indented instead of displayed on the same level.

Current behaviour:

Platform (OK)
  Testsuite (OK)
    Subsuite (OK)
      Testcase 1 (OK)
        Testcase 2 (WRONG)
          Testcase 3 (WRONG)

Expected behaviour:
Platform (OK)
  Testsuite (OK)
    Subsuite (OK)
      Testcase 1 (OK)
      Testcase 2 (OK)
      Testcase 3 (OK)
Steps To ReproduceGo to a project and testplan that has more than 1 testcase in a suite.
Go to 'Test Reports'
Select 'Test Report'
Check 'Table of Contents'
Select a test suite to generate a report
Inspect the Table of Contents
Additional InformationI edited lib/functions/print.inc.php, function renderTestSpecTreeForPrinting

Changed:
if (isset($current['node_type_id']) && $id_descr[$current['node_type_id']] == 'testsuite')
{
    $env->testCounter++;
}
$context['level']++;
$code .= renderTestSpecTreeForPrinting($db,$current,$options,$env,$context);

Moved '$context['level']++;' up in the function to:
case 'testsuite':
    $context['level']++;
    $env->tocPrefix .= (!is_null($env->tocPrefix) ? "." : '') . $env->testCounter;
    $code .= renderTestSuiteNodeForPrinting($db,$node,$env,$options,$context);
    break;
TagsNo tags attached.
Database (MySQL,Postgres,etc)Postgres
Browser
PHP Version
TestCaseID
QA Team - Task Workflow StatusREADY FOR TESTING
Attached Files

- Relationships

-  Notes
(0021612)
fman (administrator)
2014-09-17 17:56

Fixdx o 1,9,12
(0021701)
fman (administrator)
2014-09-27 16:42

Release done

- Issue History
Date Modified Username Field Change
2014-09-17 14:56 JRE New Issue
2014-09-17 17:56 fman Note Added: 0021612
2014-09-17 22:22 fman QA Team - Task Workflow Status => READY FOR TESTING
2014-09-17 22:22 fman Status new => resolved
2014-09-17 22:22 fman Fixed in Version => 1.9.12 (2014 Q3)
2014-09-17 22:22 fman Resolution open => fixed
2014-09-17 22:22 fman Assigned To => fman
2014-09-27 16:42 fman Note Added: 0021701
2014-09-27 16:42 fman Status resolved => closed



Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker