Example #1
0
/**
 * compose html text for metrics (meantime estimated time only)
 * 
 * @return string html
 */
function buildTestPlanMetrics($statistics)
{
    $output = '<h1 class="doclevel">' . lang_get('title_nav_results') . "</h1>\n";
    $output .= renderTestDuration($statistics);
    return $output;
}
/**
 * compose html text for metrics (meantime estimated time only)
 * 
 * @return string html
 */
function buildTestPlanMetrics($statistics, $platform_id = 0)
{
    static $lbl;
    if (!$lbl) {
        $lbl = lang_get('execution_time_metrics');
    }
    $output = '';
    $dummy = renderTestDuration($statistics, $platform_id);
    if ($dummy != '') {
        $output = '<h1 class="doclevel">' . $lbl . "</h1>\n" . $dummy;
    }
    return $output;
}