當前位置: 首頁>>代碼示例>>PHP>>正文


PHP testplan::get_build_testresult方法代碼示例

本文整理匯總了PHP中testplan::get_build_testresult方法的典型用法代碼示例。如果您正苦於以下問題:PHP testplan::get_build_testresult方法的具體用法?PHP testplan::get_build_testresult怎麽用?PHP testplan::get_build_testresult使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在testplan的用法示例。


在下文中一共展示了testplan::get_build_testresult方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

             $treeForPlatform[0]['childNodes'] = array($tInfo);
             $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);
開發者ID:mokal,項目名稱:DCN_TestLink,代碼行數:31,代碼來源:printDocument.php


注:本文中的testplan::get_build_testresult方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。