本文整理匯總了PHP中testproject::getFreeTestCases方法的典型用法代碼示例。如果您正苦於以下問題:PHP testproject::getFreeTestCases方法的具體用法?PHP testproject::getFreeTestCases怎麽用?PHP testproject::getFreeTestCases使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類testproject
的用法示例。
在下文中一共展示了testproject::getFreeTestCases方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: templateConfiguration
*
*/
require_once "../../config.inc.php";
require_once "common.php";
require_once 'exttable.class.php';
testlinkInitPage($db, true, false, "checkRights");
$templateCfg = templateConfiguration();
$tcase_cfg = config_get('testcase_cfg');
$importance_levels = config_get('importance_levels');
$args = init_args();
$tproject_mgr = new testproject($db);
$msg_key = 'all_testcases_has_testplan';
$edit_label = lang_get('design');
$edit_img = TL_THEME_IMG_DIR . "edit_icon.png";
$gui = new stdClass();
$gui->freeTestCases = $tproject_mgr->getFreeTestCases($args->tproject_id);
$gui->path_info = null;
$gui->tableSet = null;
if (!is_null($gui->freeTestCases['items'])) {
if ($gui->freeTestCases['allfree']) {
// has no sense display all test cases => display just message.
$msg_key = 'all_testcases_are_free';
} else {
$msg_key = '';
$tcasePrefix = $tproject_mgr->getTestCasePrefix($args->tproject_id) . $tcase_cfg->glue_character;
$tcaseSet = array_keys($gui->freeTestCases['items']);
$options = array('output_format' => 'path_as_string');
$tsuites = $tproject_mgr->tree_manager->get_full_path_verbose($tcaseSet, $options);
$titleSeperator = config_get('gui_title_separator_1');
$columns = getColumnsDefinition();
// Extract the relevant data and build a matrix