TestLink与Mantis的集成

Phoebe ·
更新时间:2024-09-21
· 996 次阅读

1. 修改接口文件

修改testlink下的lib/bugtracking/int_ bugtracking.php文件

$g_bugInterfaceOn = TRUE;(出现小虫子)

2. 编辑testlink下的config.inc.php

找到$g_interface_bugs='NO';改成$g_interface_bugs='MANTIS';

3. 在mantis上设置匿名登录权限

    Mantis的匿名用户具备对所有的项目都可以浏览的权限。

注:这个dummy用户需要administrator在后台添加,注册不了的

   修改mantis的config_inc.php文件,增加如下代码:

   # --- 登录设置-------------

  $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的界面参数。

编辑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/");



mantis testlink

需要 登录 后方可回复, 如果你还没有账号请 注册新账号