标题: testlink和mantis的整合问题 [打印本页] 作者: moluowangzi 时间: 2009-6-6 16:42 标题: testlink和mantis的整合问题 已经安装上了mantis和testlink,但是2个工具不在一台机器上
mantis在192.168.1.109上,testlink在192.168.1.8上
想把2个整合起来,红色部分为修改
修改testlink中的config.inc.php文件:
/**
* @var STRING TL_INTERFACE_BUGS = ['NO', 'BUGZILLA','MANTIS','JIRA']
* 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
*/
define('TL_INTERFACE_BUGS', 'MANTIS');
require_once(TL_ABS_PATH . 'lib/bugtracking/int_bugtracking.php');
修改testlink中的mantis.cfg.php文件:
<?php
/**
* TestLink Open Source Project - http://testlink.sourceforge.net/
* $Id: mantis.cfg.php,v 1.3 2005/08/25 17:40:56 schlundus Exp $
*
* Constants used throughout TestLink are defined within this file
* they should be changed for your environment
*/
//Set the bug tracking system Interface to MANTIS 0.19.1
//also tested with MANTIS 1.0.0.a3
/** The DB host to use when connecting to the mantis db */
define('BUG_TRACK_DB_HOST', '192.168.1.109');
/** The name of the database that contains the mantis tables */
define('BUG_TRACK_DB_NAME', 'mantis');
/** 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', 'sqlpass');
/* link of the web server for mantis*/
/* anonymous login into mantis has to be turned on, and a mantis user has to created with viewer rights to all public projects
/* Change the following in your mantis config_inc.php (replace dummy with your created user)
# --- anonymous login -----------
# Allow anonymous login
$g_allow_anonymous_login = ON;
$g_anonymous_account = 'dummy';
*/
define('BUG_TRACK_HREF', "http://192.168.1.109/mantis/view.php?id=");
/** link to the bugtracking system, for entering new bugs */
define('BUG_TRACK_ENTER_BUG_HREF',"http://192.168.1.109/mantis/");
?>
修改完成,登录到testlink
但是在用例的执行页面没有bug相关的图标或东西出现,可能是什么原因呢?作者: moluowangzi 时间: 2009-6-6 18:06
自己顶!
搞定了!
原来是mantis的数据库没有开启远程连接。作者: goodspeedzq 时间: 2010-3-1 18:15
你好,我也碰到了同样问题,请问这个mantis的数据库要开启远程连接怎么操作?作者: moluowangzi 时间: 2010-3-24 13:00
登录服务器,执行下面命令:
GRANT ALL PRIVILEGES ON *.* TO 'username'@'hostname';
username是登录的用户名,hostname是从那儿登录的机器地址。这样就设置了远程链接的方式。