//$chronos[] = $tstart; $tnow = end($chronos);reset($chronos);
// Memory metrics
//$mem['usage'][] = memory_get_usage(true); $mem['peak'][] = memory_get_peak_usage(true);
$templateCfg = templateConfiguration();
$tplan_mgr = new testplan($db);
$args = init_args($tplan_mgr);
$gui = initializeGui($db, $args);
// create it here, in order to be able to get tlImages
$smarty = new TLSmarty();
$msg_key = 'no_linked_tcversions';
if ($tplan_mgr->count_testcases($args->tplan_id) > 0) {
    $platformCache = null;
    $msg_key = 'all_testcases_have_tester';
    $cfg = config_get('results');
    $metricsMgr = new tlTestPlanMetrics($db);
    $metrics = $metricsMgr->getNotRunWoTesterAssigned($args->tplan_id, null, null, array('output' => 'array', 'ignoreBuild' => true));
    if (($gui->row_qty = count($metrics)) > 0) {
        $msg_key = '';
        $links = featureLinks($gui->labels, $smarty->getImages());
        $gui->pageTitle .= " - " . $gui->labels['match_count'] . ":" . $gui->row_qty;
        if ($args->show_platforms) {
            $platformCache = $tplan_mgr->getPlatforms($args->tplan_id, array('outputFormat' => 'mapAccessByID'));
        }
        // Collect all tcases id and get all test suite paths
        $targetSet = array();
        foreach ($metrics as &$item) {
            $targetSet[] = $item['tcase_id'];
        }
        $tree_mgr = new tree($db);
        $path_info = $tree_mgr->get_full_path_verbose($targetSet);
        unset($tree_mgr);