【评论】 【打印】 【字体:大 中 小】 本文链接:http://blog./lym51/52586.html 复制链接 testlink关联mantis
第一步:编辑config.inc.php 找到$g_interface_bugs='NO';改成$g_interface_bugs='MANTIS'; 第二步:在mantis上设置匿名登录权限(不需要对此进行配置) l 匿名登录的设置需要打开。 l Mantis的匿名用户具备对所有的项目都可以浏览的权限。 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'; 注:这个dummy用户需要administrator在后台添加,注册不了的 第三步:在TestLink里配置mantis的界面参数。 你必须编辑TL_ABS_PATH/cfg/mantis.cfg.php,如下所示: define('BUG_TRACK_DB_HOST', 'localhost'); 说明:安装bugzilla的服务器地址 define('BUG_TRACK_DB_NAME', 'bugtracker'); 说明:bugzilla的数据库名称 define('BUG_TRACK_DB_TYPE', 'mysql'); 说明:数据库的类型 define('BUG_TRACK_DB_USER', 'root'); 说明:访问bugzilla数据库的帐户 define('BUG_TRACK_DB_PASS', 'admin'); 说明:访问bugzilla数据库的密码 define('BUG_TRACK_HREF', "http://168.68.73.29/mantis/view.php?id="); define('BUG_TRACK_ENTER_BUG_HREF'," http://168.68.73.29/mantis/"); 邮箱配置 打开Testlink配置文件config.inc.php或custom_config.inc.php (在Testlink安装目录下),找到下面的位置。 蓝色文字:对需要修改的地方的解释说明。 // ---------------------------------------------------------------------------- // 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 = 'mailserver'; # SMTP server MUST BE configured (SMTP服务器地址,必须配置) # Configure using custom_config.inc.php $g_tl_admin_email = '123@123.com'; # for problem/error notification (管理员账户的邮件地址,主要接收发生的一些问题,或错误,等信息) $g_from_email = '123@123.com'; # email sender(发送邮件的邮件地址) $g_return_path_email = '123@123.com';(具体用处未知,和sender保持一致即可) # Urgent = 1, Not Urgent = 5, Disable = 0 $g_mail_priority = 5; (发送邮件的优先级,设为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 = '123'; # user (用于发送邮件的账户的用户名) $g_smtp_password = '123456'; # password (用于发送邮件的账户的密码) |
|