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) { $op = addTestSuite($tsuite_mgr, $args, $c_data, $_REQUEST); $messages = array('result_msg' => $op['messages']['msg'], 'user_feedback' => $op['messages']['user_feedback']); }
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; $tsuite_mgr->show($smarty, $gui, $identity); } else { // $userInput is used to maintain data filled by user if there is