예제 #1
0
    if ($map) {
        $tcase_mgr = new testcase($db);
        $tcase_set = array_keys($map);
        $options = array('output_format' => 'path_as_string');
        $gui->path_info = $tproject_mgr->tree_manager->get_full_path_verbose($tcase_set, $options);
        $gui->resultSet = $map;
    }
} else {
    if ($emptyTestProject) {
        $gui->warning_msg = lang_get('empty_testproject');
    } else {
        $gui->warning_msg = lang_get('no_records_found');
    }
}
$img = $smarty->getImages();
$table = buildExtTable($gui, $charset, $img['edit_icon'], $img['history_small']);
if (!is_null($table)) {
    $gui->tableSet[] = $table;
}
$smarty->assign('gui', $gui);
$smarty->display($templateCfg->template_dir . $tpl);
/**
 * 
 *
 */
function buildExtTable($gui, $charset, $edit_icon, $history_icon)
{
    $table = null;
    if (count($gui->resultSet) > 0) {
        $labels = array('test_suite' => lang_get('test_suite'), 'test_case' => lang_get('test_case'));
        $columns = array();
예제 #2
0
        }
    }
}
$smarty = new TLSmarty();
if ($gui->row_qty > 0) {
    if ($map) {
        $tcase_mgr = new testcase($db);
        $tcase_set = array_keys($map);
        $options = array('output_format' => 'path_as_string');
        $gui->path_info = $tproject_mgr->tree_manager->get_full_path_verbose($tcase_set, $options);
        $gui->resultSet = $map;
    }
} else {
    $gui->warning_msg = lang_get('no_records_found');
}
$table = buildExtTable($gui, $charset, $edit_icon, $edit_label);
if (!is_null($table)) {
    $gui->tableSet[] = $table;
}
$gui->pageTitle .= " - " . lang_get('match_count') . " : " . $gui->row_qty;
$smarty->assign('gui', $gui);
$smarty->display($templateCfg->template_dir . $tpl);
/**
 * 
 *
 */
function buildExtTable($gui, $charset, $edit_icon, $edit_label)
{
    $table = null;
    if (count($gui->resultSet) > 0) {
        $labels = array('test_suite' => lang_get('test_suite'), 'test_case' => lang_get('test_case'));
}
$smarty = new TLSmarty();
$gui->row_qty = count($itemSet);
if ($gui->row_qty > 0) {
    $gui->resultSet = $itemSet;
    if ($gui->row_qty <= $req_cfg->search->max_qty_for_display) {
        $req_set = array_keys($itemSet);
        $options = array('output_format' => 'path_as_string');
        $gui->path_info = $tproject_mgr->tree_manager->get_full_path_verbose($req_set, $options);
    } else {
        $gui->warning_msg = lang_get('too_wide_search_criteria');
    }
} else {
    $gui->warning_msg = lang_get('no_records_found');
}
$table = buildExtTable($gui, $charset);
if (!is_null($table)) {
    $gui->tableSet[] = $table;
}
$gui->pageTitle = $gui->main_descr . " - " . lang_get('match_count') . ": " . $gui->row_qty;
$smarty->assign('gui', $gui);
$smarty->display($templateCfg->template_dir . $tpl);
function buildExtTable($gui, $charset)
{
    $lbl = array('edit' => 'requirement_spec', 'rev' => 'revision_short', 'req_spec' => 'req_spec', 'revision_tag' => 'revision_tag', 'open_on_new_window' => 'open_on_new_window');
    $labels = init_labels($lbl);
    $edit_icon = TL_THEME_IMG_DIR . "edit_icon.png";
    $table = null;
    // $gui->resultSet -
    // key: reqspec_id
    // value: array of matches
예제 #4
0
            $logLevelVerbose = null;
            foreach ($args->logLevel as $code) {
                $logLevelVerbose[] = $gui->logLevels[$code];
            }
            $logLevelVerbose = implode(',', $logLevelVerbose);
            logAuditEvent(TLS("audit_events_with_level_deleted", $args->currentUser->login, $logLevelVerbose), "DELETE", null, "events");
        }
        break;
    case 'filter':
    default:
        $filters = getFilters($args);
        break;
}
$gui->events = $g_tlLogger->getEventsFor($args->logLevel, $args->object_id ? $args->object_id : null, $args->object_type ? $args->object_type : null, null, 500, $filters->startTime, $filters->endTime, $filters->users);
if (count($gui->events) > 0) {
    $table = buildExtTable($gui, $show_icon, $charset);
    if (!is_null($table)) {
        $gui->tableSet[] = $table;
    }
} else {
    $gui->warning_msg = lang_get("no_events");
}
$smarty = new TLSmarty();
$smarty->assign('gui', $gui);
$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
/**
 * 
 * @return object returns the arguments of the page
 */
function init_args()
{
예제 #5
0
        }
        $args->logLevel = null;
        $gui->selectedLogLevels = array();
        $gui->selectedTesters = array();
        $gui->startDate = null;
        $gui->endDate = null;
        break;
    case 'filter':
    default:
        $date_format_cfg = config_get('date_format');
        $filters = getFilters($args, $date_format_cfg);
        break;
}
$gui->events = $g_tlLogger->getEventsFor($args->logLevel, $args->object_id ? $args->object_id : null, $args->object_type ? $args->object_type : null, null, 500, $filters->startTime, $filters->endTime, $filters->users);
if (count($gui->events) > 0) {
    $table = buildExtTable($gui, $smarty->tpl_vars['tlImages'], $charset);
    if (!is_null($table)) {
        $gui->tableSet[] = $table;
    }
} else {
    $gui->warning_msg = lang_get("no_events");
}
$smarty->assign('gui', $gui);
$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
/**
 * 
 * @return object returns the arguments of the page
 */
function init_args()
{
    $iParams = array("startDate" => array("POST", tlInputParameter::STRING_N, 0, 10), "endDate" => array("POST", tlInputParameter::STRING_N, 0, 10), "doAction" => array("POST", tlInputParameter::STRING_N, 0, 100), "object_id" => array("REQUEST", tlInputParameter::INT_N), "object_type" => array("REQUEST", tlInputParameter::STRING_N, 0, 15), "logLevel" => array("POST", tlInputParameter::ARRAY_INT), "testers" => array("REQUEST", tlInputParameter::ARRAY_INT));
예제 #6
0
            $result[$exec_id] = $exec_info[0];
            // Collect custom fields values
            $result[$exec_id] += $cf_place_holder;
            foreach ($exec_info as $cfield_data) {
                $result[$exec_id]['cfields'][$cfield_data['name']] = $cfield_data['value'];
            }
        }
    }
    if (($gui->row_qty = count($cf_map)) > 0) {
        $gui->warning_msg = '';
        $gui->resultSet = $result;
    } else {
        $gui->warning_msg = lang_get('no_linked_tplan_cf');
    }
}
$table = buildExtTable($gui, $tcase_mgr, $tplan_mgr, $args->tplan_id, $glue_char, $charset, $labels, $edit_icon);
if (!is_null($table)) {
    $gui->tableSet[] = $table;
}
$smarty = new TLSmarty();
$smarty->assign('gui', $gui);
$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
/**
 * 
 *
 */
function buildExtTable($gui, $tcase_mgr, $tplan_mgr, $tplan_id, $gluechar, $charset, $labels, $edit_icon)
{
    $table = null;
    if (count($gui->resultSet) > 0) {
        $columns = array();
            $result[$exec_id] = $exec_info[0];
            // Collect custom fields values
            $result[$exec_id] += $cf_place_holder;
            foreach ($exec_info as $cfield_data) {
                $result[$exec_id]['cfields'][$cfield_data['name']] = $cfield_data['value'];
            }
        }
    }
    if (($gui->row_qty = count($cf_map)) > 0) {
        $gui->warning_msg = '';
        $gui->resultSet = $result;
    } else {
        $gui->warning_msg = lang_get('no_linked_tplan_cf');
    }
}
$table = buildExtTable($gui, $tcase_mgr, $tplan_mgr, $args->tplan_id, $labels, $imgSet['edit_icon']);
if (!is_null($table)) {
    $gui->tableSet[] = $table;
}
$smarty->assign('gui', $gui);
$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
/**
 * 
 *
 */
function buildExtTable($gui, $tcase_mgr, $tplan_mgr, $tplan_id, $labels, $edit_icon)
{
    $charset = config_get('charset');
    $title_sep = config_get('gui_title_separator_1');
    $table = null;
    if (count($gui->resultSet) > 0) {
예제 #8
0
            } else {
                $gui->warning_msg = lang_get('too_wide_search_criteria');
            }
        }
    }
}
if ($gui->row_qty > 0) {
    if (!is_null($gui->resultSet)) {
        $tcase_set = array_keys($gui->resultSet);
        $options = array('output_format' => 'path_as_string');
        $gui->path_info = $tproject_mgr->tree_manager->get_full_path_verbose($tcase_set, $options);
    }
} else {
    $gui->warning_msg = lang_get('no_records_found');
}
$table = buildExtTable($gui, $charset, $edit_icon, $history_icon);
if (!is_null($table)) {
    $gui->tableSet[] = $table;
}
$gui->pageTitle .= " - " . lang_get('match_count') . " : " . $gui->row_qty;
$smarty->assign('gui', $gui);
$smarty->display($templateCfg->template_dir . $tpl);
/**
 * 
 *
 */
function buildExtTable($gui, $charset, $edit_icon, $history_icon)
{
    $table = null;
    if (count($gui->resultSet) > 0) {
        $labels = array('test_suite' => lang_get('test_suite'), 'test_case' => lang_get('test_case'));