本文整理汇总了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);