本文整理匯總了PHP中testcase::buildCFLocationMap方法的典型用法代碼示例。如果您正苦於以下問題:PHP testcase::buildCFLocationMap方法的具體用法?PHP testcase::buildCFLocationMap怎麽用?PHP testcase::buildCFLocationMap使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類testcase
的用法示例。
在下文中一共展示了testcase::buildCFLocationMap方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: processTestCase
function processTestCase($tcase, &$guiObj, &$argsObj, $linked_tcversions, &$mgrPool)
{
// IMPORTANT due to platform feature
// every element on linked_tcversions will be an array.
$cf_filters = array('show_on_execution' => 1);
$guiObj->design_time_cfields = '';
$guiObj->testplan_design_time_cfields = '';
$tcase_id = isset($tcase['tcase_id']) ? $tcase['tcase_id'] : $argsObj->id;
$items_to_exec[$tcase_id] = $linked_tcversions[$tcase_id][0]['tcversion_id'];
$tcversion_id = isset($tcase['tcversion_id']) ? $tcase['tcversion_id'] : $items_to_exec[$tcase_id];
$link_id = $linked_tcversions[$tcase_id][0]['feature_id'];
$guiObj->tcAttachments[$tcase_id] = $mgrPool->tcase->getAttachmentInfos($tcase_id);
$tsuiteID = $mgrPool->tcase->getTestSuiteID($tcase_id);
// $guiObj->tSuiteAttachments[$tsuiteID] = $mgrPool->tsuite->getAttachmentInfos($tsuiteID);
$dummy = $mgrPool->tsuite->getAttachmentInfos($tsuiteID);
new dBug($dummy);
// --------------------------------------------------
$attach = new stdClass();
$attach->itemID = $tsuiteID;
$attach->dbTable = $mgrPool->tsuite->getAttachmentTableName();
$attach->infoSet = null;
$attach->gui = null;
list($attach->infoSet, $attach->gui) = $mgrPool->tsuite->buildAttachSetup($attach->itemID);
$attach->gui->display = $attach->gui->downloadOnly = true;
$attach->enabled = $attach->gui->enabled;
$guiObj->tSuiteAttachments[$tsuiteID] = $attach;
new dBug($attach);
// -----------------------------------------------------------------
$locationFilters = testcase::buildCFLocationMap();
foreach ($locationFilters as $locationKey => $filterValue) {
$finalFilters = $cf_filters + $filterValue;
$guiObj->design_time_cfields[$tcase_id][$locationKey] = $mgrPool->tcase->html_table_of_custom_field_values($tcase_id, 'design', $finalFilters, null, null, $argsObj->tproject_id, null, $tcversion_id);
$guiObj->testplan_design_time_cfields[$tcase_id] = $mgrPool->tcase->html_table_of_custom_field_values($tcversion_id, 'testplan_design', $cf_filters, null, null, $argsObj->tproject_id, null, $link_id);
}
if ($guiObj->grants->execute) {
$guiObj->execution_time_cfields[$tcase_id] = $mgrPool->tcase->html_table_of_custom_field_inputs($tcase_id, null, 'execution', "_{$tcase_id}", null, null, $argsObj->tproject_id);
}
return array($tcase_id, $tcversion_id);
}
示例2: testlinkInitPage
* and have inside view about return type .
*
* rev :
*
*/
require_once '../../../config.inc.php';
require_once 'common.php';
require_once 'tree.class.php';
// require_once('dBug.php');
testlinkInitPage($db);
echo "<pre> testcase - static methods - get_execution_types()";
echo "</pre>";
new dBug(testcase::get_execution_types());
echo "<pre> testcase - static methods - buildCFLocationMap()";
echo "</pre>";
new dBug(testcase::buildCFLocationMap());
echo "<pre> testcase - access to class const - testcase::EXECUTION_TYPE_MANUAL";
echo "</pre>";
echo testcase::EXECUTION_TYPE_MANUAL . '<br>';
echo "<pre> testcase - constructor - testcase(&\$db)";
echo "</pre>";
$tcase_mgr = new testcase($db);
// new dBug($tcase_mgr);
$items = array(1628, 1626, 1616, 392, 531);
$va = $tcase_mgr->get_last_active_version($items);
new dBug($va);
$va = $tcase_mgr->get_last_active_version($items[0]);
new dBug($va);
$options = array('access_key' => 'id', 'max_field' => 'version');
$va = $tcase_mgr->get_last_active_version($items, $options);
new dBug($options);