????4???????????
???????????????????????????????????????????Ч??
????$tlCfg->document_generator->company_name = 'Your Company';
????$tlCfg->document_generator->company_copyright = '2008 (c) TestLink Community';
????$tlCfg->document_generator->confidential_msg = 'GPL';
????????????????????????壬????????CSS????????????
????$tlCfg->document_generator->css_template = $tlCfg->theme_dir .'css/tl_documents.css';
?????????????汾????????????????????У????????????????
????$tlCfg->document_generator->tc_version_enabled = FALSE;
????5??????Email
????Testlink??????????????????????????????????????????????
????SMTP???????????????Email???‘localhost’?????????????????
????$g_smtp_host = 'localhost';
?????????????????Email?????????????Ρ?
????$g_tl_admin_email = 'your.name@your_company.com'; # for problem/error notification
????$g_from_email = 'no_replay@testlink.test_team'; # email sender (showed to recipient)
????$g_return_path_email = 'your.name@your_company.com';
???????????????????Email?????????5???????
????# Urgent = 1?? Not Urgent = 5?? Disable = 0
????$g_mail_priority = 5;
???????SMTP?????????????????relayemali???????case????????
????$g_smtp_username = '';
????$g_smtp_password = '';
????6????????
????Testlink??????????????? ‘MD5′ – ???洢???????????е??????’LDAP’ – ???????????????????
????$tlCfg->authentication['method']= 'MD5';??????????????‘’??‘md5’??’ldap’??
???????ldap???????????:
????$tlCfg->authentication['ldap_server'] = 'localhost';
????$tlCfg->authentication['ldap_port'] = '389';
????$tlCfg->authentication['ldap_version'] = '3';
????$tlCfg->authentication['ldap_root_dn'] = 'dc=mycompany??dc=com';
????$tlCfg->authentication['ldap_organization'] = ''; // e.g.
????'(organizationname=*Traffic)'
????$tlCfg->authentication['ldap_uid_field'] = 'uid';
????$tlCfg->authentication['ldap_bind_dn'] = '';
????$tlCfg->authentication['ldap_bind_passwd'] = '';
???????????????
????Testlink???????????????????????????????????“New User”?????????????????????????裬????????????????????????false???????????????Ч????????????п????????
????$tlCfg->user_self_signup = TRUE;
?????????????????????Σ???????????$TLS_valid_user_name_format???????????????????У???????????????????????
????$tlCfg->validation_cfg->user_login_valid_regex='/^[w -]+$/';
??????????????????????Ч?????email?????
????$tlCfg->validation_cfg->user_email_valid_regex = "/^([w]+)(.[w]+)*@([w-]+.){1??5}([A-Za-z]){2??4}$/";
???????????????????????ü???????
????$tlCfg->show_config_check_warning = FALSE;
????True??????????????testlink??????
????False????????е?????????????????????????????
????7??GUI ????
????7.1?????β??
??????????У?’EXTJS’?? ‘LAYERSMENU’??'DTREE’?? ‘JTREE’??EXTJS??????????????????????????к????????????????????????
????$tlCfg->treemenu_type = 'EXTJS';
???????????????test case??test suite?????????????????“0”?????????????????????????????????????ID??????????test suite?????????????????test suite ??test case????Щ???????>=0.
????$tlCfg->treemenu_default_testsuite_order = 1;
????$tlCfg->treemenu_default_testcase_order = 100;
?????????β?????????????test case ?????
????$tlCfg->treemenu_show_testcase_id = TRUE;
?????????????β???????????????test case??
????$tlCfg->exec_cfg->enable_tree_testcase_counters = ENABLED;
????7.2??GUI ????
????gui/themes/default/.——????????????css?????????
?????????????????????????????????????????????
????$tlCfg->theme_dir = 'gui/themes/your_theme/';
????????????д???????CSS????????testlink????
????testlink.css (???????)
????tl_print.css (?????????????)
????tl_documents.css (?????????????????????)
????tl_treemenu.css (???β????????????)
??????Щ????????????????????const.inc.php????У????????????????
????????????????????logo?????????????gui/themes/default/images/????
????$tlCfg->company_logo = ‘company_logo.png’;
??????????logo???????????е?GUI???????????С?
??????????????????????????html?????????????????
????$tlCfg->login_info = 'Please?? contact administrator G. B. Shaw if you have any question.';
???????????????????????????????arrow_org.gif and slide_gripper.gif??
????$tlCfg->bullet_image = 'slide_gripper.gif';
???????test project?????????
????$tlCfg->gui->testproject_coloring = 'background';
????????棬??test project??????????????????????“none”????б????????????????????????????????
????$tlCfg->gui->background_color = '#9BD';
?????????????????????????login????????????????
????$tlCfg->username_format = '%login%';
????Examples:
????'%first% %last%' -> John Cook
????'%last%?? %first%' -> Cook?? John
????'%first% %last% %login%' -> John Cook [ux555]
???????????????????????????
????$tlCfg->frame_workarea_default_width = "30%";
????Test project??????????????????????????????????????SQL?????
????$tlCfg->gui->tprojects_combo_order_by='ORDER BY nodes_hierarchy.id DESC';
????Examples:
????'ORDER BY name'
????'ORDER_BY nodes_hierarchy.id DESC' -> similar effect to order last created first
????????????????????????????????????
????$tlCfg->gui->layoutMainPageLeft = array( 'testProject' => 1??
????'userAdministration' => 2 ?? 'requirements' => 3?? 'testSpecification' => 4);
????$tlCfg->gui->layoutMainPageRight = array( 'testPlan' => 1?? 'testExecution' => 2 ??'testPlanContents' => 3);
????????????????????????????
????$tlCfg->dashboard_precision = 2;
?????????ЩGUI??????Ч???????????????Ч?????????????????
????$tlCfg->gui->round_corners->exec_history = ENABLED;
????$tlCfg->gui->round_corners->tc_title = ENABLED;
????$tlCfg->gui->round_corners->tc_spec = ENABLED;
????7.3????????
???????????????Javascript??????????????????????????????????????鶨??
????$tlCfg->gui->text_editor = array();
????FCKeditor?????????????????????????????????????????????????????
????$tlCfg->gui->text_editor['all'] = array(
????'type' => 'fckeditor'??
????'toolbar' => 'tl_default'??
????'configFile' => 'cfg/tl_fckeditor_config.js'??
????);
??????????????????д???????????????????????????y?????á????????????????ù????????
???????’type’ = ‘fckeditor’?? ‘tinymce’ ????’none’ -> ???????????????
??????????????????????е?????????
????$tlCfg->gui->text_editor['all'] = array( 'type' => 'none');
????FCKeditor????????????????????????????????Ч???????????о?????
????????testlink????????????‘tl_default’??????幤??????‘tl_default’??????/cfg/tl_fckeditor_config.js????С????????????????????????????????????????templates?? styles?? spell checker?????
???????‘configFile’???type = ‘fckeditor’???????Ч?????磬??????????????Щ??ζ?????
????'height': FCKEditor???
????'width':  FCKEditor???
????'cols':    tinymce and none????????
????'rows':   tinymce and none????????
?????????????????????????????????cookies?????
????// $tlCfg->gui->text_editor['execution'] = array( 'type' => 'none'); // BETTER
????Performance with a lot of testcases
????//
????// This configuration is useful only if default type is set to 'fckeditor'
????// $tlCfg->gui->text_editor['design'] = array('toolbar' => 'tl_mini');
????//
????// $tlCfg->gui->text_editor['testplan'] = array( 'type' => 'none');
????// $tlCfg->gui->text_editor['build'] = array( 'type' => 'fckeditor'??'toolbar' =>
????'tl_mini');
????// $tlCfg->gui->text_editor['testproject'] = array( 'type' => 'tinymce');
????// $tlCfg->gui->text_editor['role'] = array( 'type' => 'tinymce');
????// $tlCfg->gui->text_editor['requirement'] = array( 'type' => 'none');
????// $tlCfg->gui->text_editor['requirement_spec'] = array( 'type' => 'none');
??????????棺??????fckeditor???iframe?????????iframe???????fckeditor????????????????Щ????????????
??????fckeditor?д??????
??????????????FCKEditor 2.3.2????????汾?????Ч???
??????FCKEditor/fckconfig.js?????????php????????