exec_cfg->enable_tree_testcases_colouring * $tlCfg->exec_cfg->enable_tree_counters_colouring * * 20090126 - franciscom - show_config_check_warning -> config_check_warning_mode * 20090103 - franciscom - $tlCfg->req_cfg->coverageStatusAlgorithm * 20090103 - franciscom - BUGID 651 - $tlCfg->testcase_cfg->can_remove_executed * 20090101 - franciscom - changes in regex used to validate an email address * 20081228 - franciscom - gui->layoutMainPageLeft,gui->layoutMainPageRight * 20081217 - franciscom - exec_cfg->simple_tester_roles * 20081213 - franciscom - more remove of old $g_* config parameters. * 20081122 - franciscom - removed some old $g_* config parameters. * 20081115 - franciscom - $tlCfg->testcase_cfg->search * 20081104 - franciscom - Added FOGBUGZ as BTS type * 20081103 - franciscom - Added GFORGE as BTS type * 20081006 - franciscom - config for rounding via nifty corners * 20080925 - franciscom - refactoring of urgencyImportance config * $tlCfg->req_cfg->child_requirements_mgmt * * 20080805 - franciscom - api configuration refactoring * 20080805 - franciscom - BUGID 1660 - extjs tree is default * 20080525 - franciscom - added spectreemenu_type (temporary solution) * 20080504 - franciscom - removed gui->enable_custom_fields * 20080419 - havlatm - documentation update; minor refactorization * 20080326 - franciscom - restored configuration parameters removed without reasons. * * 20080423 - havlatm - added $tlCfg as standard configuration holder * 20080322 - franciscom - $g_exec_cfg->edit_notes * 20080308 - franciscom - changed initial values for email settings * 20080304 - franciscom - $g_exec_cfg->show_testsuite_contents * 20080208 - franciscom - added contribution seapine BTS (BUGID 1371) * 20071112 - franciscom - config changes due to upgrade of Smarty * 20071106 - franciscom - BUGID 1165 - $g_testcase_template * * 20071104 - franciscom - $g_exec_cfg->enable_test_automation * $g_gui->tprojects_combo_order_by (BUGID 498) * 20071006 - franciscom - $g_use_ext_js_library * 20070930 - franciscom - BUGID 1086 - configure order by in attachment * 20070910 - franciscom - removed MAIN_PAGE_METRICS_ENABLED * 20070505 - franciscom - following mantis bug tracking style, if file * custom_config.inc.php exists, il will be included * allowing users to customize TL configurations * managed using global variables, without need * of changing this file. * * 20070429 - franciscom - added contribution by Seweryn Plywaczyk * text area custom field * * 20070415 - franciscom - added config for drag and drop feature * 20070301 - franciscom - * BUGID 695 - $g_user_self_signup (fawel contribute) * **/ // ---------------------------------------------------------------------------- /** [INITIALIZATION] - DO NOT CHANGE THE SECTION */ /** @global array Global configuration class */ $tlCfg = new stdClass(); $tlCfg->api = new stdClass(); $tlCfg->document_generator = new stdClass(); $tlCfg->exec_cfg = new stdClass(); $tlCfg->gui = new stdClass(); $tlCfg->testcase_cfg = new stdClass(); $tlCfg->req_cfg = new stdClass(); $tlCfg->validation_cfg = new stdClass(); /** Include database access definition (generated automatically by TL installer) */ @include_once('config_db.inc.php'); /** The root dir for the testlink installation with trailing slash */ define('TL_ABS_PATH', dirname(__FILE__) . DIRECTORY_SEPARATOR); /** Include constants and magic numbers (users should not change it)*/ require_once(TL_ABS_PATH . 'cfg' . DIRECTORY_SEPARATOR . 'const.inc.php'); // ---------------------------------------------------------------------------- /** [LOCALIZATION] */ /** Default localization for users */ // The value must be available in $g_locales (see cfg/const.inc.php). // Note: An attempt will be done to establish the default locale // automatically using $_SERVER['HTTP_ACCEPT_LANGUAGE'] $tlCfg->default_language = 'en_GB'; /** * Charset 'UTF-8' is only officially supported charset (Require MySQL version >= 4.1) * 'ISO-8859-1' or another Charset could be set for backward compatability by experienced * users. However we have not resources to support such patches. **/ $tlCfg->charset = 'UTF-8'; // BUGID 1133 - needed by email_api $TLS_charset = 'utf-8'; /** characters used to surround a description in the user interface (for example role)*/ $tlCfg->gui_separator_open = '['; $tlCfg->gui_separator_close = ']'; /** Title separators are used when componing an title using several strings */ $tlCfg->gui_title_separator_1 = ' : '; // object : name (Test Specification : My best product) $tlCfg->gui_title_separator_2 = ' - '; // parent - child // used to create full external id in this way: // testCasePrefix . g_testcase_cfg->glue_character . external_id // CAN NOT BE EMPTY $tlCfg->testcase_cfg->glue_character = '-'; // ---------------------------------------------------------------------------- /** [SERVER ENVIRONMENT] */ /** Error reporting - do we want php errors to show up for users */ error_reporting(E_ALL); /** Set the session timeout for inactivity (in minutes). * Default is 60 minutes */ $tlCfg->sessionInactivityTimeout = 60; /** Set the session timeout value (in minutes). * This will prevent sessions timing out after very short periods of time * Warning: your server could block this settings **/ //ini_set('session.cache_expire',900); /** * Set the session garbage collection timeout value (in seconds) * The default session garbage collection in php is set to 1440 seconds (24 minutes) * If you want sessions to last longer this must be set to a higher value. * You may need to set this in your global php.ini if the settings don't take effect. */ //ini_set('session.gc_maxlifetime', 54000); // ---------------------------------------------------------------------------- /** [LOGGING] */ /** Default level of logging (NONE, ERROR, INFO, DEBUG, EXTENDED) */ $tlCfg->log_level = 'ERROR'; /** show smarty debug window */ $tlCfg->smarty_debug = false; /** Path to store logs */ $tlCfg->log_path = TL_ABS_PATH . 'logs' . DIRECTORY_SEPARATOR ; /** * How to warning user when security weak points exists. * * 'SCREEN': messages will displayed on login screen, and tl desktop (default) * 'FILE': a file with a list is created but users are not notified via GUI * user will receive a message on screen. * 'SILENT': same that FILE, but user will not receive message on screen. */ $tlCfg->config_check_warning_mode = 'FILE'; /** * Configure if individual logging data stores are enabled of disabled * Possibile values to identify loggers: 'db','file' * $g_loggerCfg=null; all loggers enabled (default) * $g_loggerCfg['db']['enable']=true/false; * $g_loggerCfg['file']['enable']=true/false; */ $g_loggerCfg = null; /** All events older this value [days] are removed from the db, during login */ $g_removeEventsOlderThan = 30; // ---------------------------------------------------------------------------- /** [Bug Tracking systems] */ /** * TestLink uses bugtracking systems to check if displayed bugs resolved, verified, * and closed bugs. If they are it will strike through them * * @var STRING g_interface_bugs = [ * 'NO' : no bug tracking system integration (DEFAULT) * 'BUGZILLA' : edit configuration in TL_ABS_PATH/cfg/bugzilla.cfg.php * 'MANTIS' : edit configuration in TL_ABS_PATH/cfg/mantis.cfg.php * 'JIRA' : edit configuration in TL_ABS_PATH/cfg/jira.cfg.php * 'TRACKPLUS' : edit configuration in TL_ABS_PATH/cfg/trackplus.cfg.php * 'EVENTUM' : edit configuration in TL_ABS_PATH/cfg/eventum.cfg.php * 'SEAPINE' : edit configuration in TL_ABS_PATH/cfg/seapine.cfg.php * 'GFORGE' : edit configuration in TL_ABS_PATH/cfg/gforge.cfg.php * 'FOGBUGZ' : edit configuration in TL_ABS_PATH/cfg/fogbugz.cfg.php * ] */ $g_interface_bugs = 'NO'; // ---------------------------------------------------------------------------- /** [SMTP] */ // Developer Note: // these config variable names has been choosed to maintain compatibility // with code taken from Mantis. // // SMTP server Configuration ("localhost" is enough in the most cases) $g_smtp_host = '[smtp_host_not_configured]'; # SMTP server MUST BE configured # Configure using custom_config.inc.php $g_tl_admin_email = '[testlink_sysadmin_email_not_configured]'; # for problem/error notification $g_from_email = '[from_email_not_configured]'; # email sender $g_return_path_email = '[return_path_email_not_configured]'; # Urgent = 1, Not Urgent = 5, Disable = 0 $g_mail_priority = 5; # Taken from mantis for phpmailer config define ("SMTP_SEND",2); $g_phpMailer_method = SMTP_SEND; // Configure only if SMTP server requires authentication $g_smtp_username = ''; # user $g_smtp_password = ''; # password // ---------------------------------------------------------------------------- /** [User Authentication] */ /** * Login authentication method: * 'MD5' => use password stored on db * 'LDAP' => use password from LDAP Server */ $tlCfg->authentication['method'] = 'MD5'; /** LDAP authentication credentials */ $tlCfg->authentication['ldap_server'] = 'localhost'; $tlCfg->authentication['ldap_port'] = '389'; $tlCfg->authentication['ldap_version'] = '3'; // could be '2' in some cases $tlCfg->authentication['ldap_root_dn'] = 'dc=mycompany,dc=com'; $tlCfg->authentication['ldap_organization'] = ''; // e.g. '(organizationname=*Traffic)' $tlCfg->authentication['ldap_uid_field'] = 'uid'; // Use 'sAMAccountName' for Active Directory $tlCfg->authentication['ldap_bind_dn'] = ''; // Left empty for anonymous LDAP binding $tlCfg->authentication['ldap_bind_passwd'] = ''; // Left empty for anonymous LDAP binding /** Enable/disable Users to create accounts on login page */ $tlCfg->user_self_signup = TRUE; /** Validating new user login names */ $tlCfg->validation_cfg->user_login_valid_regex='/^[\w \-]+$/'; /** Validating user email addresses */ /* added final i - to allow also Upper Case - info taken from PHP Manual and Mantis */ // $tlCfg->validation_cfg->user_email_valid_regex = "/^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`" . // "{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i"; // /* Taken from Ext-js VTypes.js */ $tlCfg->validation_cfg->user_email_valid_regex = "/^([\w]+)(.[\w]+)*@([\w-]+\.){1,5}([A-Za-z]){2,4}$/"; // -------------------------------------------------------------------------------------- /** [API] */ /** XML-RPC API availability (disabled by default) */ $tlCfg->api->enabled = FALSE; // used to display API ID info in the *View pages $tlCfg->api->id_format = "[ID: %s ]"; // -------------------------------------------------------------------------------------- /** [GUI LAYOUT] */ /** GUI themes (base for CSS and images)- modify if you create own one */ $tlCfg->theme_dir = 'gui/themes/default/'; /** Dir for compiled templates */ $tlCfg->temp_dir = TL_ABS_PATH . 'gui' . DIRECTORY_SEPARATOR . 'templates_c' . DIRECTORY_SEPARATOR; /** Company logo (used by navigation bar and login page page) */ //$tlCfg->company_logo = 'TestLink'; $tlCfg->company_logo = 'company_logo.png'; /** Login page could show an informational text */ $tlCfg->login_info = ''; // Empty by default /** Image for main menu item bullet (just filename) */ $tlCfg->bullet_image = 'slide_gripper.gif'; // = [arrow_org.gif, slide_gripper.gif] /** Availability of Test Project specific background colour */ // 'background' -> standard behaviour for 1.6.x you can have a different // background colour for every test project. // 'none' -> new behaviour no background color change // $tlCfg->gui->testproject_coloring = 'background'; // Francisco, do not change it! $tlCfg->gui->testproject_coloring = 'none'; // I'm sorry default is not coloring using coloring is a pain // and useless // @TODO Ok, then merge these two attributes into one /** default background color */ $tlCfg->gui->background_color = '#9BD'; // Enable/disable rounded corners via javascript $tlCfg->gui->round_corners=new stdClass(); $tlCfg->gui->round_corners->exec_history=ENABLED; $tlCfg->gui->round_corners->tc_title=ENABLED; $tlCfg->gui->round_corners->tc_spec=ENABLED; /** Display name definition (used to build a human readable display name for users) */ // '%first% %last%' -> John Cook // '%last%, %first%' -> John Cook // '%first% %last% %login%' -> John Cook [ux555] $tlCfg->username_format = '%login%'; /** Configure the frame frmWorkArea navigator width */ $tlCfg->frame_workarea_default_width = "30%"; /** true => icon edit will be added into as indication an edit features */ $tlCfg->gui->show_icon_edit=false; /** Order to use when building a testproject combobox (value must be SQL compliant)*/ // 'ORDER BY name' // 'ORDER_BY nodes_hierarchy.id DESC' -> similar effect to order last created firts $tlCfg->gui->tprojects_combo_order_by='ORDER BY nodes_hierarchy.id DESC'; // used to round percentages on metricsDashboard.php $tlCfg->dashboard_precision = 2; /** Choose what kind of webeditor you want to use in every TL area. * */ $tlCfg->gui->text_editor = array(); // This configuration will be used if no element with search key (area) is found // on this structure. // Every element is a mp with this configuration keys: // // 'type': // 'fckeditor' // 'tinymce' // 'none' -> use plain text area input field // // 'toolbar': only applicable for type = 'fckeditor' // name of ToolbarSet (See: http://docs.fckeditor.net/ for more information about ToolbarSets) // // 'configFile': only applicable for type = 'fckeditor' // (See: http://docs.fckeditor.net/ for more information about CustomConfigurationsPath) // // 'height': the height in px for FCKEditor // 'width': the width in px for FCKEditor // 'cols': the number of cols for tinymce and none // 'rows': the number of rows for tinymce and none // Hint: After doing configuration changes, clean you Browser's cookies and cache // $tlCfg->gui->text_editor['all'] = array( 'type' => 'fckeditor', 'toolbar' => 'tl_default', 'configFile' => 'cfg/tl_fckeditor_config.js', ); // Copy this to custom_config.inc.php if you want use 'tinymce' as default. // $tlCfg->gui->text_editor['all'] = array( 'type' => 'tinymce'); // // Copy this to custom_config.inc.php if you want use 'nome' as default. // $tlCfg->gui->text_editor['all'] = array( 'type' => 'none'); // Suggested for BETTER Performance with lot of testcases $tlCfg->gui->text_editor['execution'] = array( 'type' => 'none'); // Enable and configure this if you want to have different // webeditor type in different TL areas // You can not define new areas without making changes to php code // // $tlCfg->gui->text_editor['execution'] = array( 'type' => 'none'); // BETTER Performance with 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 Toolbar - modify which icons will be available in html edit pages * refer to fckeditor configuration file **/ // $tlCfg->fckeditor_default_toolbar = 'tl_default'; /* User can choose order of menu areas */ $tlCfg->gui->layoutMainPageLeft = array( 'testProject' => 1, 'userAdministration' => 2 , 'requirements' => 3, 'testSpecification' => 4); $tlCfg->gui->layoutMainPageRight = array( 'testPlan' => 1, 'testExecution' => 2 , 'testPlanContents' => 3); // ---------------------------------------------------------------------------- /** [GUI: TREE] */ /** * TREE MENU - Configure using of external tree menu component: * [EXTJS, LAYERSMENU, DTREE, JTREE] */ $tlCfg->treemenu_type = 'EXTJS'; /** Default ordering value for new Test Suites and Test Cases to separate them */ $tlCfg->treemenu_default_testsuite_order = 1; $tlCfg->treemenu_default_testcase_order = 100; /** show/hide testcase id on tree menu */ $tlCfg->treemenu_show_testcase_id = TRUE; // ---------------------------------------------------------------------------- /** [GUI: Javascript libraries] */ /** ENABLED -> use EXT JS library; DISABLED - simple html */ $g_use_ext_js_library = ENABLED; // May be in future another table sort engine will be better // kryogenix.org -> Stuart Langridge sortTable // '' (empty string) -> disable table sorting feature $g_sort_table_engine='kryogenix.org'; // ---------------------------------------------------------------------------- /** [GENERATED DOCUMENTATION] */ /** * Texts and settings for printed documents * Leave text values empty if you would like to disable it. */ $tlCfg->document_generator->company_name = 'Testlink Community [configure using $tlCfg->company->name]'; /** Image is expected in directory /gui/themes//images/ */ $tlCfg->document_generator->company_copyright = '2009 (c) Testlink Community'; $tlCfg->document_generator->confidential_msg = ''; /** CSS used in printed html documents */ $tlCfg->document_generator->css_template = $tlCfg->theme_dir . 'css/tl_documents.css'; /** Misc settings */ $tlCfg->document_generator->tc_version_enabled = FALSE; // ---------------------------------------------------------------------------- /** [Test Executions] */ // ENABLED -> enable XML-RPC calls to external test automation server // new buttons will be displayed on execution pages // DISABLED -> disable $tlCfg->exec_cfg->enable_test_automation = DISABLED; // 1 -> user can edit execution notes, on old executions (Attention: user must have test case execution right) // DISABLED -> no edit allowed [STANDARD BEHAVIOUR] $tlCfg->exec_cfg->edit_notes = DISABLED; // ASCending -> last execution at bottom // DESCending -> last execution on top [STANDARD BEHAVIOUR] $tlCfg->exec_cfg->history_order = 'DESC'; // TRUE -> the whole execution history for the choosen build will be showed // FALSE -> just last execution for the choosen build will be showed [STANDARD BEHAVIOUR] $tlCfg->exec_cfg->history_on = FALSE; // TRUE -> test case VERY LAST (i.e. in any build) execution status will be displayed // FALSE -> only last result on current build. [STANDARD BEHAVIOUR] $tlCfg->exec_cfg->show_last_exec_any_build = FALSE; // TRUE -> History for all builds will be shown // FALSE -> Only history of the current build will be shown [STANDARD BEHAVIOUR] $tlCfg->exec_cfg->show_history_all_builds = FALSE; // different models for the attachments management on execution page // $att_model_m1 -> shows upload button and title // $att_model_m2 -> hides upload button and title $tlCfg->exec_cfg->att_model = $att_model_m2; //defined in const.inc.php // ENABLED -> User can delete an execution result // DISABLED -> User can not. [STANDARD BEHAVIOUR] $tlCfg->exec_cfg->can_delete_execution = DISABLED; // ENABLED -> test cases will be coloured according to test case status $tlCfg->exec_cfg->enable_tree_testcases_colouring = ENABLED; // ENABLED -> test case counters will be coloured according to test case status $tlCfg->exec_cfg->enable_tree_counters_colouring = ENABLED; // 20080303 - franciscom // This can help to avoid performance problems. // Controls what happens on right frame when user clicks on a testsuite on tree. // ENABLED -> show all test cases presents on test suite and children test suite. // DISABLED -> nothing happens, to execute a test case you need to click on test case $tlCfg->exec_cfg->show_testsuite_contents = DISABLED; // ENABLED -> enable testcase counters by status on tree $tlCfg->exec_cfg->enable_tree_testcase_counters = ENABLED; // Define list of roles that are affected by: // $tlCfg->exec_cfg->view_mode and $tlCfg->exec_cfg->exec_mode // User must reconfigure if define other simple tester roles // // In addition (till code changes) also roles that verify this condition: // $effective_role->hasRight('testplan_execute') and !$effective_role->hasRight('testplan_planning') // Will be affected by: // $tlCfg->exec_cfg->view_mode and $tlCfg->exec_cfg->exec_mode // $tlCfg->exec_cfg->simple_tester_roles=array(TL_ROLES_TESTER); // Filter Test cases a user with tester role can VIEW depending on // test execution assignment. // all: all test cases. // assigned_to_me: test cases assigned to logged user. // assigned_to_me_or_free: test cases assigned to logged user or not assigned $tlCfg->exec_cfg->view_mode->tester='assigned_to_me'; // Filter Test cases a user with tester role can EXECUTE depending on // test execution assignment. // all: all test cases. // assigned_to_me: test cases assigned to logged user. // assigned_to_me_or_free: test cases assigned to logged user or not assigned $tlCfg->exec_cfg->exec_mode->tester='assigned_to_me'; /** User filter in Test Execution navigator - default value */ // logged_user -> combo will be set to logged user // none -> no filter applied by default $tlCfg->exec_cfg->user_filter_default='none'; // ---------------------------------------------------------------------------- /** [Test Specification] */ // 'horizontal' -> step and results on the same row // 'vertical' -> steps on one row, results in the row bellow $g_spec_cfg->steps_results_layout = 'vertical'; // ENABLED -> User will see a test suite filter while creating test specification // DISABLED -> no filter available $g_spec_cfg->show_tsuite_filter = ENABLED; // ENABLED -> every time user do some operation on test specification // tree is updated on screen. // DISABLED -> tree will not be updated, user can update it manually. $g_spec_cfg->automatic_tree_refresh = ENABLED; // ENABLED -> user can edit executed tc versions // DISABLED -> editing of executed tc versions is blocked. [STANDARD BEHAVIOUR] $tlCfg->testcase_cfg->can_edit_executed = DISABLED; // ENABLED -> user can removed from a testplan executed tc versions. [STANDARD BEHAVIOUR] // DISABLED -> user can NOT remove from a testplan executed tc versions. $tlCfg->testcase_cfg->can_remove_executed = ENABLED; // To avoid perfomance problems on search test case feature, // we can decide when to inform user that results can not be displayed // due to too many results. $tlCfg->testcase_cfg->search=new stdClass(); $tlCfg->testcase_cfg->search->max_qty_for_display=200; /** text template for a new Test Case summary, steps and expected_results */ // object members has SAME NAME that FCK editor objects. // the logic present on tcEdit.php is dependent of this rule. // every text object contains an object with following members: type and value // // Possible values for type member: // none: template will not be used, default will be a clean editor screen. // string: value of value member is assigned to FCK object // string_id: value member is used in a lang_get() call, and return value // is assigned to FCK object. Configure string_id on custom_strings.txt // file: value member is used as file name. // file is readed and it's contains assigned to FCK object // // any other value for type, results on '' assigned to FCK object $g_testcase_template->summary->type = 'none'; $g_testcase_template->summary->value = ''; $g_testcase_template->steps->type = 'none'; $g_testcase_template->steps->value = ''; $g_testcase_template->expected_results->type = 'none'; $g_testcase_template->expected_results->value = ''; /** text template for a new Test Suite description */ $g_testsuite_template->details->type = 'none'; $g_testsuite_template->details->value = ''; // ---------------------------------------------------------------------------- /** [ATTACHMENTS] */ /** Attachment feature availability */ $g_attachments->enabled = TRUE; /** the type of the repository can be database or filesystem * TL_REPOSITORY_TYPE_DB => database * TL_REPOSITORY_TYPE_FS => filesystem **/ $g_repositoryType = TL_REPOSITORY_TYPE_FS; /** * TL_REPOSITORY_TYPE_FS: the where the filesystem repository should be located * We recommend to change the directory for security reason. **/ $g_repositoryPath = TL_ABS_PATH . "upload_area" . DIRECTORY_SEPARATOR; /** * compression used within the repository * TL_REPOSITORY_COMPRESSIONTYPE_NONE => no compression * TL_REPOSITORY_COMPRESSIONTYPE_GZIP => gzip compression */ $g_repositoryCompressionType = TL_REPOSITORY_COMPRESSIONTYPE_NONE; // the maximum allowed file size for each repository entry, default 1MB. // Also check your PHP settings (default is usually 2MBs) $tlCfg->repository_max_filesize = 1; //MB // TRUE -> when you upload a file you can give no title $g_attachments->allow_empty_title = TRUE; // $g_attachments->allow_empty_title == TRUE, you can ask the system // to do something // // 'none' -> just write on db an empty title // 'use_filename' -> use filename as title //$g_attachments->action_on_save_empty_title='use_filename'; // $g_attachments->action_on_save_empty_title = 'none'; // Remember that title is used as link description for download // then if title is empty, what the system has to do when displaying ? // 'show_icon' -> the $g_attachments->access_icon will be used. // 'show_label' -> the value of $g_attachments->access_string will be used . $g_attachments->action_on_display_empty_title = 'show_icon'; // martin: @TODO use an image file only $g_attachments->access_icon = ''; $g_attachments->access_string = "[*]"; // Set display order of uploaded files - BUGID 1086 $g_attachments->order_by = " ORDER BY date_added DESC "; // ---------------------------------------------------------------------------- /** [Requirements] */ // true : you want req_doc_id UNIQUE IN THE WHOLE DB (system_wide) // false: you want req_doc_id UNIQUE INSIDE a SRS $tlCfg->req_cfg->reqdoc_id->is_system_wide = FALSE; /** * Test Case generation from Requirements - use_req_spec_as_testsuite_name * FALSE => test cases are created and assigned to a test suite * with name $tlCfg->req_cfg->default_testsuite_name * TRUE => REQuirement Specification Title is used as testsuite name */ $tlCfg->req_cfg->use_req_spec_as_testsuite_name = TRUE; $tlCfg->req_cfg->default_testsuite_name = "Auto-created Test cases"; $tlCfg->req_cfg->testsuite_details = "Test Cases in the Test Suite are generated from Requirements. " . "A refinement of test scenario is highly recommended."; $tlCfg->req_cfg->testcase_summary_prefix = "The Test Case was generated from the assigned requirement.
"; // ENABLED: allow N level depth tree // DISABLED: just one level $tlCfg->req_cfg->child_requirements_mgmt = DISABLED; // 20090111 - franciscom // Order of test cases status in this array, is used to undestand // to what status set requirement in the requirements report. // Standard algorithm, present in getReqCoverage(), is: // // // if at least one of Test Cases linked to Requirement has status FAILED // Requirement Coverage Status = FAILED // else if at least one of Test Cases linked to Requirement has status BLOCKED // Requirement Coverage Status = BLOCKED // else if ALL Test Cases linked to Requirement has status NOT RUN // Requirement Coverage Status = NOT RUN // else if ALL Test Cases linked to Requirement has status PASSED // Requirement Coverage Status = PASSED // else // Requirement Coverage Status = Partially Passed // // This logic is implemented using following config parameter $tlCfg->req_cfg->coverageStatusAlgorithm['checkOrder']=array('atLeastOne','all'); $tlCfg->req_cfg->coverageStatusAlgorithm['checkType']['atLeastOne']=array('failed','blocked'); $tlCfg->req_cfg->coverageStatusAlgorithm['checkType']['all']=array('not_run','passed'); // Configure here what status has to get requirement when check of type 'all' fails like // in following situation (BUGID 2171) // If particular requirement has assigned more than one test cases, and: // - at least one of assigned test cases was not yet executed // - the rest of assigned test cases was executed and passed // then on the "Requirements based report" this particular requirement is not shown at all (in any section). // // $tlCfg->req_cfg->coverageStatusAlgorithm['checkFail']['all']='partially_passed'; // $tlCfg->req_cfg->coverageStatusAlgorithm['displayOrder']=array('passed','failed', // 'blocked','not_run','partially_passed'); $tlCfg->req_cfg->coverageStatusAlgorithm['checkFail']['all']='failed'; $tlCfg->req_cfg->coverageStatusAlgorithm['displayOrder']=array('passed','failed','blocked','not_run'); // ---------------------------------------------------------------------------- /** [MISC FUNCTIONALITY] */ /** Maximum uploadfile size to importing stuff in TL */ // Also check your PHP settings (default is usually 2MBs) $tlCfg->import_max_size = '204800'; // in bytes /** Maximum line size of the imported file */ $tlCfg->import_max_row = '10000'; // in chars /** Set the default role used for new users */ // - created from the login page. // - created using user management features $tlCfg->default_roleid = TL_ROLES_GUEST; /** * Check unique titles of Test Project, Test Suite and Test Case * ENABLED => Check [STANDARD BEHAVIOUR] * DISABLED => don't check **/ $tlCfg->check_names_for_duplicates = ENABLED; /** * Action for duplication check (only if check_names_for_duplicates=ENABLED) * 'allow_repeat' => allow the name to be repeated (backward compatibility) * 'generate_new' => generate a new name using $g_prefix_name_for_copy * 'block' => return with an error **/ $tlCfg->action_on_duplicate_name = 'generate_new'; /** * String checking and conversions * Allow automatically convert www URLs and email adresses into clickable links * used by function string_display_links() for example by custom fields. * Valid values = ENABLED/DISABLED. **/ $tlCfg->html_make_links = ENABLED; /** * Define the valid html tags for "content driven" single-line and multi-line fields. * Do NOT include tags with parameters (eg. ), img and href. * It's used by function string_display_links() for example by custom fields. */ $tlCfg->html_valid_tags = 'p, li, ul, ol, br, pre, i, b, u, em'; $tlCfg->html_valid_tags_single_line = 'i, b, u, em'; /** * Defines the threshold values for filtering TC by a priority according to the formula * ui => (urgency*importance) * LOW => all Tc's with ui < LOW_Threshold * HIGH => all Tc's with ui >= HIGH_Threshold * MEDIUM => all Tc's with ui >= LOW_Threshold AND ui < HIGH_Threshold */ $tlCfg->urgencyImportance = new stdClass(); $tlCfg->urgencyImportance->threshold['low'] = 3; $tlCfg->urgencyImportance->threshold['high'] = 6; // ----- End of Config ------------------------------------------------------------------ // -------------------------------------------------------------------------------------- // DO NOT CHANGE NOTHING BELOW // -------------------------------------------------------------------------------------- // havlatm: @TODO move the next code out of config - configCheck.php -> included via common.php /** Functions for check request status */ require_once('configCheck.php'); /** root of testlink directory location seen through the web server */ // @TODO: basehref should be defined by installation script or stored from login in $_SESSION /* 20070106 - franciscom - this statement it's not 100% right better use $_SESSION['basehref'] in the scripts. */ define('TL_BASE_HREF', get_home_url()); clearstatcache(); if ( file_exists( TL_ABS_PATH . 'custom_config.inc.php' ) ) require_once( TL_ABS_PATH . 'custom_config.inc.php' ); /** Support for localization */ // @TODO schlundus, move the code out of config and do it only once and not always in any include! // @TODO schlundus, a better parsing function should be include $serverLanguage = false; if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { @list($code) = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']); @list($a,$b) = explode("-",$code); if ($a && $b) { $a = strtolower($a); $b = strtoupper($a); $serverLanguage = $a."_".$b; } } if(false !== $serverLanguage) { if (array_key_exists($serverLanguage,$g_locales)) $tlCfg->default_language = $serverLanguage; } define ('TL_DEFAULT_LOCALE', $tlCfg->default_language); require_once(TL_ABS_PATH .'cfg'.DIRECTORY_SEPARATOR.'userRightMatrix.php'); // Reverted execution status is used for two applications. // 1. To map code to CSS, Please if you add an status you need to add a corresponding CSS Class // in the CSS files (see the gui directory) // 2. to decode from code to some more human oriented to use in code // /** Revered list of Test Case execution results */ $tlCfg->results['code_status'] = array_flip($tlCfg->results['status_code']); // -------------------------------------------------------------------------------------- /** Converted and derived variables (Users should not modify this section) */ define('REFRESH_SPEC_TREE',$g_spec_cfg->automatic_tree_refresh ? 'yes' : 'no'); define('TL_SORT_TABLE_ENGINE',$g_sort_table_engine); define("TL_REPOSITORY_MAXFILESIZE", 1024*1024*$tlCfg->repository_max_filesize); define('TL_XMLEXPORT_HEADER', "charset . "\"?>\n"); define('TL_THEME_BASE_DIR', $tlCfg->theme_dir); define('TL_THEME_IMG_DIR', $tlCfg->theme_dir . 'images/'); define('TL_THEME_CSS_DIR', $tlCfg->theme_dir . 'css/'); define('TL_TESTLINK_CSS', TL_THEME_CSS_DIR . TL_CSS_MAIN); define('TL_PRINT_CSS', TL_THEME_CSS_DIR . TL_CSS_PRINT); define('TL_TREEMENU_CSS', TL_THEME_CSS_DIR . TL_CSS_TREEMENU); // -------------------------------------------------------------------------------------- // when a role is deleted, a new role must be assigned to all users // having role to be deleted // A right choice seems to be using $g_default_roleid. // You can change this adding a config line in custom_config.inc.php // @TODO martin: remove - use directly $tlCfg->default_roleid; $g_role_replace_for_deleted_roles=$tlCfg->default_roleid; /** BUGID 0000086: Using "|" in the testsuite name causes malformed URLs regexp used to check for chars not allowed in: test project, test suite and testcase names. @TODO martin: encode harm characters @see http://cz.php.net/urlencode (and remove the parameter) */ $g_ereg_forbidden = "[|]"; /** @TODO martin: remove from configuration and use a number in brackets after name ("My Test Title(2)") * Used when creating a Test Suite using copy and you have choose $g_action_on_duplicate_name = 'generate_new' if the name exist. */ $g_prefix_name_for_copy = strftime("%Y%m%d-%H:%M:%S", time()); // TRUE -> you can create multiple time the same keyword // for the same product (term used on TL < 1.7) / test project (term used on TL>= 1.7) // FALSE -> [STANDARD BEHAIVOUR] // @TODO havlatm: remove the possibility duplicate it (have no sense) $g_allow_duplicate_keywords = FALSE; /** * martin: @TODO remove - $g_action_on_duplicate_name is enough to define behaviour * Check unique titles of Test Project, Test Suite and Test Case * TRUE => Check [STANDARD BEHAVIOUR] * FALSE => don't check **/ // $g_check_names_for_duplicates = TRUE; /** * @TODO remove from TL - unfinished refactorization; * use $tlCfg instead of old variables and constants */ define('TL_IMPORT_LIMIT', $tlCfg->import_max_size); define('TL_IMPORT_ROW_MAX', $tlCfg->import_max_row); define('TL_ITEM_BULLET_IMG', TL_THEME_IMG_DIR . $tlCfg->bullet_image); define('TL_TREE_KIND', $tlCfg->treemenu_type); define('USE_EXT_JS_LIBRARY', $g_use_ext_js_library); define('TL_TPL_CHARSET', $tlCfg->charset); define('TITLE_SEP',$tlCfg->gui_title_separator_1); define('TITLE_SEP_TYPE2',$tlCfg->gui_title_separator_2); define('TITLE_SEP_TYPE3',$tlCfg->gui_title_separator_2); // obsolete: use type 1,2 define('TL_FRMWORKAREA_LEFT_FRAME_WIDTH', $tlCfg->frame_workarea_default_width); define('TL_TEMP_PATH', $tlCfg->temp_dir); // $g_log_level=$tlCfg->log_level; $tlCfg->document_generator->company_logo = $tlCfg->company_logo; $tlCfg->gui->title_separator_1 = $tlCfg->gui_title_separator_1; $tlCfg->gui->title_separator_2 = $tlCfg->gui_title_separator_2; $tlCfg->gui->role_separator_open = $tlCfg->gui_separator_open; $tlCfg->gui->role_separator_close = $tlCfg->gui_separator_close; // ----- END OF FILE -------------------------------------------------------------------- ?>