//$opt = array('write_button_only_if_linked' => 1);
        $opt = array('write_button_only_if_linked' => 1, 'user_assignments_per_build' => $args->build_id);
        $my_out = gen_spec_view($db, 'testplan', $args->tplan_id, $tsuite_data['id'], $tsuite_data['name'], $linked_items, null, $filters, $opt);
        // index 0 contains data for the parent test suite of this test case,
        // other elements are not needed.
        $out = array();
        $out['spec_view'][0] = $my_out['spec_view'][0];
        $out['num_tc'] = 1;
        break;
    case 'testsuite':
        // BUGID 3026
        // BUGID 3516
        $tcaseFilter = isset($args->testcases_to_show) ? $args->testcases_to_show : null;
        // 3406
        $opt = array('user_assignments_per_build' => $args->build_id);
        $out = keywordFilteredSpecView($db, $args, $keywordsFilter, $tplan_mgr, $tcase_mgr, $tcaseFilter, $opt);
        break;
    default:
        show_instructions('tc_exec_assignment');
        break;
}
$gui->items = $out['spec_view'];
// useful to avoid error messages on smarty template.
$gui->items_qty = is_null($gui->items) ? 0 : count($gui->items);
$gui->has_tc = $out['num_tc'] > 0 ? 1 : 0;
$gui->support_array = array_keys($gui->items);
if ($_SESSION['testprojectOptions']->testPriorityEnabled) {
    $urgencyCfg = config_get('urgency');
    $gui->priority_labels = init_labels($urgencyCfg["code_label"]);
}
$smarty = new TLSmarty();
Example #2
0
function processTestSuite(&$dbHandler, &$argsObj, $keywordsFilter, &$tplanMgr, &$tcaseMgr)
{
    $out = keywordFilteredSpecView($dbHandler, $argsObj, $keywordsFilter, $tplanMgr, $tcaseMgr);
    return $out;
}