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


PHP testplan::get_build_resultsummary方法代码示例

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


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

示例1: htmlspecialchars

             $doc_info->title = htmlspecialchars(isset($tInfo['name']) ? $args->tproject_name . $tlCfg->gui_title_separator_2 . $tInfo['name'] : $args->tproject_name);
             break;
     }
     break;
 case DOC_TEST_PLAN_DESIGN:
     $printingOptions['metrics'] = true;
     // FORCE
 // FORCE
 case DOC_TEST_PLAN_EXECUTION:
 case DOC_TEST_PLAN_EXECUTION_ON_BUILD:
     $tplan_mgr = new testplan($db);
     $tplan_info = $tplan_mgr->get_by_id($args->tplan_id);
     if ($args->build_id > 0) {
         //add by guomf for report custome
         $tempa = $tplan_mgr->get_build_testresult($args->build_id);
         $tempb = $tplan_mgr->get_build_resultsummary($args->build_id);
         $doc_info->testresult = htmlspecialchars($tempa['value']);
         $doc_info->resultsummary = htmlspecialchars_decode($tempb['value']);
         //htmlspecialchars($tempb['value']);
         $xx = $tplan_mgr->get_builds($args->tplan_id, null, null, array('buildID' => $args->build_id));
         $doc_info->build_name = htmlspecialchars($xx[$args->build_id]['name']);
     }
     $doc_info->testplan_name = htmlspecialchars($tplan_info['name']);
     $doc_info->testplan_scope = $tplan_info['notes'];
     $doc_info->title = $doc_info->testplan_name;
     // Changed to get ALL platform attributes.
     $getOpt = array('outputFormat' => 'mapAccessByID', 'addIfNull' => true);
     //modify by guomf for print result on special build
     $platforms = $tplan_mgr->getPlatforms($args->tplan_id, $getOpt);
     //$platforms = $tplan_mgr->getPlatformsHasExecuted($args->tplan_id,$args->build_id,$getOpt);
     $platformIDSet = array_keys($platforms);
开发者ID:mokal,项目名称:DCN_TestLink,代码行数:31,代码来源:printDocument.php


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