本文整理匯總了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;