case DOC_TEST_PLAN_EXECUTION: case DOC_TEST_PLAN_EXECUTION_ON_BUILD: $tocPrefix++; $env = new stdClass(); $env->base_href = $_SESSION['basehref']; $env->item_type = $doc_info->content_range; $env->tocPrefix = $tocPrefix; $env->user_id = $args->user_id; $env->testCounter = 1; $env->reportType = $doc_info->type; if ($showPlatforms) { $printingOptions['showPlatformNotes'] = true; $docText .= renderPlatformHeading($tocPrefix, $platforms[$platform_id], $printingOptions); } $actionContext['level'] = 0; $docText .= renderTestPlanForPrinting($db, $tree2work, $printingOptions, $env, $actionContext); if ($printingOptions['metrics']) { $docText .= buildTestPlanMetrics($doc_data->statistics, $platform_id); } break; } } } } $docText .= renderEOF(); // Needed for platform feature if ($printingOptions['toc']) { $printingOptions['tocCode'] .= '</div>'; $topText .= $printingOptions['tocCode']; } $docText = $topText . $docText;
case DOC_TEST_SPEC: $docText .= renderSimpleChapter(lang_get('scope'), $doc_info->tproject_scope); // 3459 - added platform ID $docText .= renderTestSpecTreeForPrinting($db, $tree, $doc_info->content_range, $printingOptions, null, 0, 1, $args->user_id, 0, null, $args->tproject_id, $platform_id); break; case DOC_TEST_PLAN: if ($printingOptions['testplan']) { $docText .= renderSimpleChapter(lang_get('scope'), $doc_info->testplan_scope); } case DOC_TEST_REPORT: $tocPrefix++; if ($showPlatforms) { $docText .= renderPlatformHeading($tocPrefix, $platform_id, $platforms[$platform_id], $printingOptions); } // 3459 - added platform ID $docText .= renderTestPlanForPrinting($db, $tree, $doc_info->content_range, $printingOptions, $tocPrefix, 0, 1, $args->user_id, $args->tplan_id, $args->tproject_id, $platform_id); if ($doc_info->type == DOC_TEST_REPORT && $printingOptions['metrics']) { $docText .= buildTestPlanMetrics($doc_data->statistics); } break; } } } } $docText .= renderEOF(); // Needed for platform feature if ($printingOptions['toc']) { $printingOptions['tocCode'] .= '</div>'; $topText .= $printingOptions['tocCode']; } $docText = $topText . $docText;