tesklink1.9.8 optimizes Chinese package, tesklink1.9.8 fixes some bugs; Testlink configuration (update)

The Chinese package of tesklink 1.9.8 is not fully optimized, and some English cannot be converted into Chinese. The attachment is the package that has been processed and optimized, which basically realizes all Chinese conversion processing; the specific optimization is to add the following Chinese to String.txt:

 

// -----------------------------------new add-------------------------------

$TLS_req_type_low = 'Business Process';

 

// reqMgrSystemView.tpl

$TLS_th_reqmgrsystem = 'Requirement Management System';

$TLS_th_reqmgrsystem_type = 'type';

$TLS_th_reqmgrsystem_env = 'Environment';

$TLS_warning_empty_reqmgrsystem_name = "Requirement management system name cannot be empty!";

$TLS_warning_empty_reqmgrsystem_type = "Requirement management system type cannot be empty!";

$TLS_reqmgrsystem_show_cfg_example = 'Show configuration example';

$TLS_reqmgrsystem_cfg_example = 'Configuration example';

$TLS_reqmgrsystem_check_ok = "Connection succeeded";

$TLS_reqmgrsystem_check_ko = "Connection failed, please check configuration";

$TLS_check_reqmgrsystem_connection = "Check Configuration";

$TLS_reqmgrsystem_management = "Requirements Management System-Management";

 

// issueTrackerView.tpl

$TLS_th_issuetracker = 'Issue Tracker';

$TLS_th_issuetracker_type = 'type';

$TLS_th_issuetracker_env = 'Environment';

$TLS_warning_empty_issuetracker_name = "Issue tracker name cannot be empty!";

$TLS_warning_empty_issuetracker_type = "Issue tracker type cannot be empty!";

$TLS_any_bracketed = "[任意]";

 

// ----- lib/testcases/tcCreatedPerUser.php -----

$TLS_testcases_created_per_user = 'Test items: %s - test cases created by each user';

 

// issueTrackerEdit.tpl

$TLS_issuetracker_show_cfg_example = 'Show configuration example';

$TLS_issuetracker_cfg_example = 'Configuration example';

$TLS_used_on_testproject = 'Used for test project';

 

$TLS_desc_issuetrackers_management = "Issue Trackers";

$TLS_config= "配置";

 

//end

 

===========================================

tesklink 1.9.8 config.inc.php file optimization processing, the attachment is the repaired file, you can directly replace the original file when using.

Specific modifications: 1. Mailbox configuration, etc.

 

\testlink\lib\testcases\tcImport.php Modify the bug (when importing an xml case, if there is an associated requirement number in the case, an error will be reported)

              $reqMgr->assign_to_tcase($cachedReqSpec[$value['req_spec_title']]['req'][$value['doc_id']],$tcaseId,1);

 // $reqMgr->assign_to_tcase($cachedReqSpec[$value['req_spec_title']]['req'][$value['doc_id']],$tcaseId); $tcaseId s table is int type, passed here Input is null (String), there is a bug, so set the default value to 1 (admin) to avoid errors

 

Graphical report Chinese garbled processing:

 1. Copy the simhei.ttf file under c:/windows/fonts/ (other files you can download by yourself, such as Microsoft Yahei, etc.) to the testlink/third_**/pcart/Fonts/ directory 
  2. Modify config.inc .php: reset the font in $tlCfg->charts_font_path = TL_ABS_PATH . "third_**/pchart/Fonts/tahoma.ttf";: 
  $tlCfg->charts_font_path = TL_ABS_PATH . "third_party/pcart/Fonts/ tahoma.ttf ";

        Just replace tahoma.ttf with your newly stored font.

 

 

=================================

Testlink configuration (updated)

The following contents are mainly solved by modifying the file config.inc.php, and the file directory is under the testlink file.

1. Change import test suite and test case file size

A. Open config.inc.php, find $tlCfg->import_file_max_size_bytes, and change the following data '409600' to the expected data value.

B. $tlCfg->import_max_row = '10000' is the size limit of one row of the import file.

2. Disable TestLink security warning output

A. Open config.inc.php and enter the LOGGING item;

B. Change 'FILE' in $tlCfg->config_check_warning_mode to 'SILENT';

3. Prohibit user registration

Open config.inc.php, find $tlCfg->user_self_signup, change true to false, and cancel the New User link in the login interface.

4. Solve the problem that the TestLink test case set displays garbled characters during execution

A) Go to ..\Testlink\lib\execute, edit the file execSetResults.php,

B) Find: $str .= htmlentities($elem) . '/';

Replace with: $str .= htmlentities($elem, ENT_QUOTES, 'UTF-8') . '/';

5. Solve the problem that the TestLink chart displays garbled characters in the result view

A) Copy the downloaded or extracted font SIMYOU.TTF from Windows to the font directory of Pchart in Testlink, the path is: ..\testlink\third_party\pcart\Fonts

Note: For downloaded fonts, you need to copy the font files to the c:/windows/fonts folder directory

B) Modify config.inc.php: put $tlCfg->charts_font_path = TL_ABS_PATH . "third_party/pcart/Fonts/tahoma.ttf";

Font reset in: $tlCfg->charts_font_path = "c:/windows/fonts/SIMYOU.TTF";

6. TestLink time zone issue

The difference between the TestLink server time and Beijing time is about 8 hours, which can be solved according to the following methods:

A) Set the value of date.timezone to PRC in php.ini (under C:\WINDOWS directory), and after setting it is: date.timezone=PRC;

B) At the same time, uncomment this line of code, that is, remove the preceding semicolon;

C) Restart the Apache server.

 

7. TestLink Backup

MySQL only backs up project and permission-related information. The uploaded data information, such as use cases, is not reflected in the database , but in the upload_area/nodes_hierarchyof the testlink directory, so the database and files need to be backed up synchronously during backup:

A) Use MySQL for database backup;

B)拷贝testlink/upload_area/nodes_hierarchy;

8. TestLink localization

修改config.inc.php文件,将:$tlCfg->default_language = 'en_GB';
改为$tlCfg->default_language = 'zh_CN';
 
=======================

3.3 修改localization 属性

将xampp\htdocs\testlink\config.inc.php文件中$tlCfg->default_language = 'en_GB'改为$tlCfg->default_language = 'zh_CN' 

3.4 testlink系统字段显示汉化 
xampp\htdocs\testlink\locale\zh_CN\strings.txt文件为汉化各字段文件,若testlink使用过程中,发现有字段仍为英文,在en_GB\strings.txt文件夹中根据系统显示名称查找到该字段,将其复制到zh_CN\strings.txt文件中,然后将字段的值改为中文即可。  

3.5 Testlink时区 
Testlink时区设置在xampp/php/php.ini文件中,默认时区为“date.timezone = Europe/Berlin”,此时testlink日志中记录日期与当前日期不相符,改为“date.timezone = Asia/Shanghai”,重启服务即可。 
Php支持的timezone可参照http://php.net/date.timezone 
四 上传文件大小 
testlink默认上传文件大小为40k,修改上传文件大小步骤如下: 1. 安装目录下xampp\htdocs\testlink\config.inc.php文件 
$tlCfg->import_file_max_size_bytes = '10485760'; $tlCfg->import_max_row = '1000000'; // in chars 
修改上述字段为你想要的大小,import_file_max_size_bytes单位为kb,import_max_row为上传文档行数控制 2. 安装目录下xampp\php\php.ini文件 
修改upload_max_filesize为upload_max_filesize = 8M 操作完上述步骤,重启apache即可。 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326146728&siteId=291194637