Exemplo n.º 1
0
 case 'delete_testsuite':
     $refreshTree = deleteTestSuite($smarty, $args, $tsuite_mgr, $tree_mgr, $tcase_mgr, $level);
     break;
 case 'move_testsuite_viewer':
     moveTestSuiteViewer($smarty, $tproject_mgr, $args);
     break;
 case 'move_testcases_viewer':
 case 'testcases_table_view':
     moveTestCasesViewer($db, $smarty, $tproject_mgr, $tree_mgr, $args);
     break;
 case 'reorder_testsuites':
     $ret = reorderTestSuiteViewer($smarty, $tree_mgr, $args);
     $level = is_null($ret) ? $level : $ret;
     break;
 case 'do_move':
     moveTestSuite($smarty, $template_dir, $tproject_mgr, $args);
     break;
 case 'do_copy':
     copyTestSuite($smarty, $template_dir, $tsuite_mgr, $args, $l18n);
     break;
 case 'update_testsuite':
     if ($name_ok) {
         $msg = updateTestSuite($tsuite_mgr, $args, $c_data, $_REQUEST);
     }
     $gui = initializeGui($tsuite_mgr, $args->testsuiteID, $args, $l18n);
     $tsuite_mgr->show($smarty, $gui, $template_dir, $args->testsuiteID, null, $msg);
     break;
 case 'add_testsuite':
     $messages = null;
     $op['status'] = 0;
     if ($name_ok) {
Exemplo n.º 2
0
     $refreshTree = deleteTestSuite($smarty, $args, $tsuite_mgr, $tree_mgr, $tcase_mgr, $level);
     $gui->refreshTree = $refreshTree;
     $smarty->assign('gui', $gui);
     break;
 case 'move_testsuite_viewer':
     moveTestSuiteViewer($smarty, $tproject_mgr, $args);
     break;
 case 'move_testcases_viewer':
     moveTestCasesViewer($db, $smarty, $tproject_mgr, $tree_mgr, $args);
     break;
 case 'reorder_testsuites':
     $ret = reorderTestSuiteViewer($smarty, $tree_mgr, $args);
     $level = is_null($ret) ? $level : $ret;
     break;
 case 'do_move':
     moveTestSuite($smarty, $tproject_mgr, $args, $gui);
     break;
 case 'do_copy':
     copyTestSuite($smarty, $tsuite_mgr, $args, $gui);
     break;
 case 'update_testsuite':
     if ($args->nameIsOK) {
         $op = updateTestSuite($tsuite_mgr, $args, $_REQUEST);
     }
     if ($op['status_ok']) {
         $gui->id = $args->testsuiteID;
         $gui->page_title = lang_get('container_title_testsuite');
         $gui->refreshTree = $args->refreshTree;
         $identity = new stdClass();
         $identity->id = $args->testsuiteID;
         $identity->tproject_id = $args->tproject_id;