当前位置: 首页>>代码示例>>PHP>>正文


PHP testcase::buildCFLocationMap方法代码示例

本文整理汇总了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);
}
开发者ID:moraesmv,项目名称:testlink-code,代码行数:39,代码来源:execSetResults.php

示例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);
开发者ID:moraesmv,项目名称:testlink-code,代码行数:31,代码来源:testcase.class.test.php


注:本文中的testcase::buildCFLocationMap方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。