本文整理匯總了PHP中testplan::get_estimated_execution_time方法的典型用法代碼示例。如果您正苦於以下問題:PHP testplan::get_estimated_execution_time方法的具體用法?PHP testplan::get_estimated_execution_time怎麽用?PHP testplan::get_estimated_execution_time使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類testplan
的用法示例。
在下文中一共展示了testplan::get_estimated_execution_time方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
}
// switch($doc_info->content_range)
// Create list of execution id, that will be used to compute execution time if
// CF_EXEC_TIME custom field exists and is linked to current testproject
$doc_data->statistics = null;
if ($printingOptions['metrics']) {
$executed_qty = 0;
if ($tp_tcs) {
foreach ($tp_tcs as $tcase_id => $info) {
if ($info['exec_status'] != $status_descr_code['not_run']) {
$execid_filter[] = $info['exec_id'];
$executed_qty++;
}
}
}
$timeEstimatedDuration = $tplan_mgr->get_estimated_execution_time($args->tplan_id, $tcase_filter);
if ($timeEstimatedDuration != "0") {
$doc_data->statistics['estimated_execution']['minutes'] = $timeEstimatedDuration;
$doc_data->statistics['estimated_execution']['tcase_qty'] = count($tp_tcs);
}
if ($executed_qty > 0) {
$doc_data->statistics['real_execution']['minutes'] = $tplan_mgr->get_execution_time($args->tplan_id, $execid_filter);
$doc_data->statistics['real_execution']['tcase_qty'] = $executed_qty;
}
}
// if ($printingOptions['metrics'])
break;
}
// ----- rendering logic -----
$topText = renderHTMLHeader($doc_info->type . ' ' . $doc_info->title, $_SESSION['basehref']);
$topText .= renderFirstPage($doc_info);