Beispiel #1
0
    case 'reorder_testsuites_alpha':
        reorderTestSuitesDictionary($args, $tree_mgr, $args->testsuiteID);
        $gui = initializeGui($tsuite_mgr, $args->testsuiteID, $args, $l18n);
        $gui->refreshTree = true;
        $tsuite_mgr->show($smarty, $gui, $template_dir, $args->testsuiteID, null, null);
        break;
    case 'reorder_testproject_testsuites_alpha':
        reorderTestSuitesDictionary($args, $tree_mgr, $args->tprojectID);
        $gui = initializeGui($tproject_mgr, $args->tprojectID, $args, $l18n);
        $gui->refreshTree = true;
        $tproject_mgr->show($smarty, $gui, $template_dir, $args->tprojectID, null, null);
        break;
    case 'doBulkSet':
        $args->refreshTree = true;
        doBulkSet($db, $args, $args->tcaseSet, $tcase_mgr);
        moveTestCasesViewer($db, $smarty, $tproject_mgr, $tree_mgr, $args);
        break;
    default:
        trigger_error("containerEdit.php - No correct GET/POST data", E_USER_ERROR);
        break;
}
if ($the_tpl) {
    $smarty->assign('refreshTree', $refreshTree && $args->refreshTree);
    $smarty->display($template_dir . $the_tpl);
}
/**
 *
 *
 */
function getValuesFromPost($akeys2get)
{
         if ($gui->midAirCollision = $op['reason'] == 'midAirCollision') {
             $foe = new tlUser($op['more']['updater_id']);
             $foe->readFromDB($db);
             $gui->midAirCollisionMsg['main'] = sprintf(lang_get('collision_detected_some_one_else'), $op['more']['modification_ts'], $foe->login, $foe->emailAddress);
             $gui->midAirCollisionMsg['details'] = sprintf(lang_get('collision_detected_choices'), $foe->login);
         }
         renderTestSuiteForManagement($smarty, $args, $gui, $tsuite_mgr, $keywordSet, $userInput);
     }
     break;
 case 'do_move_tcase_set':
     moveTestCases($smarty, $template_dir, $tsuite_mgr, $tree_mgr, $args);
     break;
 case 'do_copy_tcase_set':
     $op = copyTestCases($smarty, $template_dir, $tsuite_mgr, $tcase_mgr, $args);
     $refreshTree = $op['refreshTree'];
     moveTestCasesViewer($db, $smarty, $tproject_mgr, $tree_mgr, $args, $op['userfeedback']);
     break;
 case 'delete_testcases':
     $args->refreshTree = false;
     $assign_gui = false;
     deleteTestCasesViewer($db, $smarty, $tproject_mgr, $tree_mgr, $tsuite_mgr, $tcase_mgr, $args);
     break;
 case 'do_delete_testcases':
     $args->refreshTree = true;
     $assign_gui = false;
     doDeleteTestCases($db, $args->tcaseSet, $tcase_mgr);
     deleteTestCasesViewer($db, $smarty, $tproject_mgr, $tree_mgr, $tsuite_mgr, $tcase_mgr, $args, lang_get('all_testcases_have_been_deleted'));
     break;
 case 'reorder_testcases':
     reorderTestCasesByCriteria($args, $tsuite_mgr, $tree_mgr, $sortCriteria);
     $gui->refreshTree = true;