本文整理匯總了PHP中testplan::getStatusForReports方法的典型用法代碼示例。如果您正苦於以下問題:PHP testplan::getStatusForReports方法的具體用法?PHP testplan::getStatusForReports怎麽用?PHP testplan::getStatusForReports使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類testplan
的用法示例。
在下文中一共展示了testplan::getStatusForReports方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
// }
//
// new dBug($buildResults);
//
// new dBug($options);
// new dBug($myRBB);
//
// $results = $re->getAggregateBuildResults();
// new dBug($results);
$colDefinition = null;
$results = null;
if ($gui->do_report['status_ok']) {
$results = $re->getAggregateBuildResults();
if ($results != null) {
// BUGID 0003123: General Test Plan Metrics - order of columns with test case exec results
$code_verbose = $tplan_mgr->getStatusForReports();
$resultsCfg = config_get('results');
$labels = $resultsCfg['status_label'];
foreach ($code_verbose as $status_verbose) {
$l18n_label = isset($labels[$status_verbose]) ? lang_get($labels[$status_verbose]) : lang_get($status_verbose);
$colDefinition[$status_verbose]['qty'] = $l18n_label;
$colDefinition[$status_verbose]['percentage'] = '[%]';
}
}
}
/* MILESTONE & PRIORITY REPORT */
$planMetrics = $tplan_mgr->getStatusTotals($args->tplan_id);
$filters = null;
$options = array('output' => 'map', 'only_executed' => true, 'execution_details' => 'add_build');
$execResults = $tplan_mgr->get_linked_tcversions($args->tplan_id, $filters, $options);
$options = array('output' => 'mapOfArray', 'only_executed' => true, 'execution_details' => 'add_build');