本文整理匯總了PHP中testcase::buildDirectWebLink方法的典型用法代碼示例。如果您正苦於以下問題:PHP testcase::buildDirectWebLink方法的具體用法?PHP testcase::buildDirectWebLink怎麽用?PHP testcase::buildDirectWebLink使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類testcase
的用法示例。
在下文中一共展示了testcase::buildDirectWebLink方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: initializeEnv
$gui->viewerArgs['display_testproject'] = 1;
$gui->viewerArgs['display_parent_testsuite'] = 1;
$args->id = $item_mgr->getInternalID($args->targetTestCase);
if (!($get_path_info = $args->id > 0)) {
$gui->warning_msg = $args->id == 0 ? lang_get('testcase_does_not_exists') : lang_get('prefix_does_not_exists');
}
// TICKET 5265: test case search displays only the first version of all test cases
$args->tcversion_id = testcase::ALL_VERSIONS;
}
if ($args->id > 0) {
if ($get_path_info || $args->show_path) {
$gui->path_info = $item_mgr->tree_manager->get_full_path_verbose($args->id);
}
$platform_mgr = new tlPlatform($db, $args->tproject_id);
$gui->platforms = $platform_mgr->getAllAsMap();
$gui->direct_link = $item_mgr->buildDirectWebLink($_SESSION['basehref'], $args->id);
}
$gui->id = $args->id;
$identity->version_id = $args->tcversion_id;
$item_mgr->show($smarty, $gui, $identity, $grants);
break;
default:
tLog('Argument "edit" has invalid value: ' . $args->feature, 'ERROR');
trigger_error($_SESSION['currentUser']->login . '> Argument "edit" has invalid value.', E_USER_ERROR);
break;
}
/**
*
*
*/
function initializeEnv($dbHandler)