Testlink設置
阿新 • • 發佈:2018-11-23
ica system 數據 spl 1.2 side stl define uri
1. Testlink配置修改
1.1. config.inc.php
1.1.1. 日誌路徑配置
/** * @var string Path to store logs - *for security reasons (see http://itsecuritysolutions.org/2012-08-13-TestLink-1.9.3-multiple-vulnerabilities/) *put it out of reach via web or configure access denied. */ //$tlCfg->log_path = ‘/var/testlink/logs/‘; /* unix example */=> $tlCfg->log_path = ‘D:\Program Files\EasyPHP-12.1\www\testlink\logs\\‘;
1.1.2. 上傳文件路徑配置
/** * TL_REPOSITORY_TYPE_FS: the where the filesystem repository should be located * We recommend to change the directory for security reason. * (see http://itsecuritysolutions.org/2012-08-13-TestLink-1.9.3-multiple-vulnerabilities/) * Put it out of reach via web or configure access denied. * **/ //$g_repositoryPath = ‘/var/testlink/upload_area/‘; /* unix example */ =》 $g_repositoryPath = ‘D:\Program Files\EasyPHP-12.1\www\testlink\upload_area\\‘;
1.1.3. 配置檢查警告模式修改
There are security warnings for your consideration. See details on file: D:\Program Files\EasyPHP-12.1\www\testlink\logsconfig_check.txt. To disable any reference to these checkings, set $tlCfg->config_check_warning_mode = ‘SILENT‘; /** * @var string 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‘; =》 $tlCfg->config_check_warning_mode = ‘SILENT‘;
1.1.4. 語言設置
/** @var string 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‘; =》 $tlCfg->default_language = ‘zh_CN‘;
1.2. Testlink數據庫配置
testlink\config_db.inc.php <?php // Automatically Generated by TestLink Installer define(‘DB_TYPE‘, ‘mysql‘); define(‘DB_USER‘, ‘testlink‘); define(‘DB_PASS‘, ‘testlink‘); define(‘DB_HOST‘, ‘localhost‘); define(‘DB_NAME‘, ‘testlink‘); define(‘DB_TABLE_PREFIX‘, ‘tt‘); ?>
1.3. Testlink和mantis集成 (這個我沒有驗證,因為bug系統公司用的不是mantis)
1、首頁-Issue Tracker Management
配置內容如下:
Type:mantis (Interface: db) Configuration: <!-- Template mantisdbInterface --> <issuetracker> <dbhost>localhost</dbhost> <dbname>bugtracker</dbname> <dbtype>mysql</dbtype> <dbuser>root</dbuser> <dbpassword></dbpassword> <uriview>http://192.168.134.120/mantis/view.php?id=</uriview> <uricreate>http://192.168.134.120/mantis/</uricreate> </issuetracker>
2、測試項目管理配置Issue Tracker,選擇剛才配置::mantis (Interface: db)
Testlink設置