Exemplo n.º 1
0
    default:
        break;
}
$out = null;
$gui->show_details = 0;
$gui->operationType = 'standard';
$gui->hasItems = 0;
switch ($args->level) {
    case 'testcase':
        $out = processTestCase($db, $args, $keywordsFilter, $tplan_mgr);
        break;
    case 'testsuite':
        $out = processTestSuite($db, $args, $keywordsFilter, $tplan_mgr, $tcase_mgr);
        break;
    case 'testplan':
        $itemSet = processTestPlan($db, $args, $keywordsFilter, $tplan_mgr);
        $gui->testcases = $itemSet['items'];
        $gui->user_feedback = $itemSet['msg'];
        $gui->instructions = lang_get('update2latest');
        $gui->buttonAction = "doBulkUpdateToLatest";
        $gui->operationType = 'bulk';
        if (!is_null($gui->testcases)) {
            $gui->hasItems = 1;
            $gui->show_details = 1;
        }
        break;
    default:
        // show instructions
        redirect($_SESSION['basehref'] . "/lib/general/staticPage.php?key=planUpdateTC");
        break;
}
    default:
        break;
}
$out = null;
$gui->show_details = 0;
$gui->operationType = 'standard';
$gui->hasItems = 0;
switch ($args->level) {
    case 'testcase':
        $out = processTestCase($db, $args, $keywordsFilter, $tplan_mgr, $tree_mgr);
        break;
    case 'testsuite':
        $out = processTestSuite($db, $args, $keywordsFilter, $tplan_mgr, $tcase_mgr);
        break;
    case 'testplan':
        $itemSet = processTestPlan($db, $args, $tplan_mgr);
        $gui->testcases = $itemSet['items'];
        $gui->user_feedback = $itemSet['msg'];
        $gui->instructions = lang_get('update2latest');
        $gui->buttonAction = "doBulkUpdateToLatest";
        $gui->operationType = 'bulk';
        if (!is_null($gui->testcases)) {
            $gui->hasItems = 1;
            $gui->show_details = 1;
        }
        break;
    default:
        // show instructions
        redirect($_SESSION['basehref'] . "/lib/general/staticPage.php?key=planUpdateTC");
        break;
}