1. 修改接口文件
修改testlink下的lib/bugtracking/int_ bugtracking.php文件
$g_bugInterfaceOn = TRUE;(出現(xiàn)小蟲子)
2. 編輯testlink下的config.inc.php
找到$g_interface_bugs='NO';改成$g_interface_bugs='MANTIS';
3. 在mantis上設(shè)置匿名登錄權(quán)限
Mantis的匿名用戶具備對所有的項目都可以瀏覽的權(quán)限。
注:這個dummy用戶需要administrator在后臺添加,注冊不了的
修改mantis的config_inc.php文件,增加如下代碼:
# --- 登錄設(shè)置-------------
$g_allow_anonymous_login = ON;
$g_anonymous_account = 'dummy'; #testlink訪問mantis需要匿名訪問打開
$g_show_realname = ON;#顯示真名
$g_allow_anonymous_login = ON;# 允許用戶匿名登錄
$g_anonymous_account = 'dummy';#匿名登錄的用戶名
4. 在TestLink里配置mantis的界面參數(shù)。
編輯testlink下cfg/mantis.cfg.php,
(可到mantis中的config_inc.php文件中查閱)如下所示:
/** The DB host to use when connecting to the mantis db */
define('BUG_TRACK_DB_HOST', 'localhost');
/** The name of the database that contains the mantis tables */
define('BUG_TRACK_DB_NAME', 'bugtracker');
/** The DB type being used by mantis
values: mysql,mssql,postgres
*/
define('BUG_TRACK_DB_TYPE', 'mysql');
/** The DB type being used by mantis */
define('BUG_TRACK_DB_USER', 'root');
/** The DB password to use for connecting to the mantis db */
define('BUG_TRACK_DB_PASS', '82479444');
/** link to the bugtracking system, for viewing bugs */
define('BUG_TRACK_HREF', "http://localhost/mantis/view.php?id=");
/** link to the bugtracking system, for entering new bugs */
define('BUG_TRACK_ENTER_BUG_HREF'," http://localhost/mantis/");