本文整理汇总了PHP中testcase::get_import_file_types方法的典型用法代码示例。如果您正苦于以下问题:PHP testcase::get_import_file_types方法的具体用法?PHP testcase::get_import_file_types怎么用?PHP testcase::get_import_file_types使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类testcase
的用法示例。
在下文中一共展示了testcase::get_import_file_types方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: importTestCaseDataFromXML
$gui->file_check = array('status_ok' => 0, 'msg' => lang_get('please_choose_file_to_import'));
$args->importType = null;
}
}
}
if ($args->useRecursion) {
$obj_mgr = new testsuite($db);
$gui->actionOptions = array('update_last_version' => lang_get('update_last_testcase_version'), 'generate_new' => lang_get('generate_new_testcase'), 'create_new_version' => lang_get('create_new_testcase_version'));
$gui->hitOptions = array('name' => lang_get('same_name'), 'internalID' => lang_get('same_internalID'), 'externalID' => lang_get('same_externalID'));
} else {
$obj_mgr = new testcase($db);
$gui->actionOptions = array('update_last_version' => lang_get('update_last_testcase_version'), 'generate_new' => lang_get('generate_new_testcase'), 'create_new_version' => lang_get('create_new_testcase_version'));
$gui->hitOptions = array('name' => lang_get('same_name'), 'internalID' => lang_get('same_internalID'), 'externalID' => lang_get('same_externalID'));
}
$gui->testprojectName = $_SESSION['testprojectName'];
$gui->importTypes = $obj_mgr->get_import_file_types();
$gui->action_on_duplicated_name = $args->action_on_duplicated_name;
$smarty = new TLSmarty();
$smarty->assign('gui', $gui);
$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
// --------------------------------------------------------------------------------------
/*
function: importTestCaseDataFromXML
args :
returns:
*/
function importTestCaseDataFromXML(&$db, $fileName, $parentID, $tproject_id, $userID, $options = null)
{
tLog('importTestCaseDataFromXML called for file: ' . $fileName);
$xmlTCs = null;
$resultMap = null;