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


PHP testcase::addExecIcons方法代码示例

本文整理汇总了PHP中testcase::addExecIcons方法的典型用法代码示例。如果您正苦于以下问题:PHP testcase::addExecIcons方法的具体用法?PHP testcase::addExecIcons怎么用?PHP testcase::addExecIcons使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在testcase的用法示例。


在下文中一共展示了testcase::addExecIcons方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getOtherExecutions

function getOtherExecutions(&$dbHandler, $tcase_id, $tcversion_id, $guiObj, $argsObj, &$tcaseMgr, $stdImages)
{
    $other_execs = null;
    if ($guiObj->history_on) {
        $filters['build_id'] = $argsObj->build_id;
        $filters['platform_id'] = $argsObj->platform_id;
        if ($guiObj->cfg->exec_cfg->show_history_all_builds) {
            $filters['build_id'] = ANY_BUILD;
        }
        if ($guiObj->cfg->exec_cfg->show_history_all_platforms) {
            $filters['platform_id'] = null;
        }
        $options = array('exec_id_order' => $guiObj->cfg->exec_cfg->history_order);
        $other_execs = $tcaseMgr->get_executions($tcase_id, $tcversion_id, $argsObj->tplan_id, $filters['build_id'], $filters['platform_id'], $options);
    } else {
        // Warning!!!:
        // we can't use the data we have got with previous call to get_last_execution()
        // because if user have asked to save results last execution data may be has changed
        $aux_map = $tcaseMgr->get_last_execution($tcase_id, $tcversion_id, $argsObj->tplan_id, $argsObj->build_id, $argsObj->platform_id);
        if (!is_null($aux_map)) {
            $other_execs = array();
            foreach ($aux_map as $key => $value) {
                $other_execs[$key] = array($value);
            }
        }
    }
    return !is_null($other_execs) ? testcase::addExecIcons($other_execs, $stdImages) : $other_execs;
}
开发者ID:moraesmv,项目名称:testlink-code,代码行数:28,代码来源:execSetResults.php

示例2: testlinkInitPage

 *
 * @filesource	execHistory.php
 *
**/
require_once '../../config.inc.php';
require_once 'common.php';
require_once "web_editor.php";
testlinkInitPage($db);
$templateCfg = templateConfiguration();
$smarty = new TLSmarty();
$tcase_mgr = new testcase($db);
$args = init_args();
$gui = initializeGui($args);
$gui->execSet = $tcase_mgr->getExecutionSet($args->tcase_id);
if (!is_null($gui->execSet)) {
    $gui->execSet = testcase::addExecIcons($gui->execSet, $smarty->tlImages);
}
$node['basic'] = $tcase_mgr->tree_manager->get_node_hierarchy_info($args->tcase_id);
$node['specific'] = $tcase_mgr->getExternalID($args->tcase_id);
$idCard = $node['specific'][0] . ' : ' . $node['basic']['name'];
$gui->warning_msg = !is_null($gui->execSet) ? '' : lang_get('tcase_never_executed');
$gui->user_is_admin = $_SESSION['currentUser']->globalRole->name == 'admin' ? true : false;
if (!is_null($gui->execSet)) {
    $gui->execPlatformSet = $tcase_mgr->getExecutedPlatforms($args->tcase_id);
    // get issue tracker config and object to manage TestLink - BTS integration
    $its = null;
    $tproject_mgr = new testproject($db);
    $info = $tproject_mgr->get_by_id($gui->tproject_id);
    if ($info['issue_tracker_enabled']) {
        $gui->bugs = getIssues($db, $gui->execSet, $gui->tproject_id);
    }
开发者ID:moraesmv,项目名称:testlink-code,代码行数:31,代码来源:execHistory.php


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