Testlink+Mantis集成环境配置

来源:互联网 发布:java枚举类型定义常量 编辑:程序博客网 时间:2024/05/16 17:14

安装包见U盘

一.安装XAMPP

安装并运行XAMPP ,然后启动Apache、MySQL服务

关于开启XAMPP的Apache服务器报错端口被占用的解决方法

Apache那行的Config->选第一个Apache(httpd.conf),打开找到出现80的地方,都改成8088(或其他未被占用的端口)

点击Apache那行的Config->选第二个Apache(httpd-ssl.conf),打开找到出现443的地方, 都改成4430(或其他未被占用的端口)

二.安装Testlink

将testlink的压缩文件,解压到xampp的htdocs文件下,重命名为testlink,访问http://localhost/testlink/index.php 即可出现testlink的安装界面

然后在接下来的界面填写:

Database Type:Mysql

Database host:localhost

Database name:testlink

Database adminlogin:root

Database adminpassword:空

TestLink DB login:my_db

TestLink DB password:my_db

安装成功,点击最后一行连接进入,默认管理员账户为admin,密码admin,使用其登录。

Testlink汉化问题:在界面中改(Simple Chinese)

 

三.安装Mantis

将mantis的压缩文件,解压到xampp的htdocs文件下,重命名为mantis,访问http://localhost/mantis/admin/install.php 即可出现mantis的安装界面:

①输入以下信息:

Type of Database:Mysql

Hostname(for Database Server):localhost

Username(for Database):root

Passwordfor Database):空

Database name(for Database):bugtracker

Admin username(to create database if required):root

Admin password:空

②点击按钮,生成数据库和表如下图所示。注意:这时已产生一个管理员帐号:administrator/root.


③点击Continue,进入到登录界面(如下图),这样Mantis的安装就完成了。最后用Administrator /root登录之后,新增项目和用户,就可以正常使用了。

Mantis汉化问题:

Mantis 1.2.15中在config_inc.php(C:\xampp\htdocs\mantis)中如下增加一行即可汉化完毕。

$g_default_language='chinese_simplified';//固定设为中文。

 

三.Testlink与Mantis集成

修改testlink的配置文件C:\xampp\htdocs\testlink\cfg\mantis.cfg.php

C:\xampp\htdocs\testlink\config.inc.php

mantis.cfg.php需要修改的配置项如下:

<?php

/**

* TestLink Open Source Project -http://testlink.sourceforge.net/

* $Id: mantis.cfg.php,v 1.7 2007/03/05 18:22:04franciscom Exp $

*

* Constants used throughout TestLink are defined withinthis file

* they should be changed for your environment

*

* 20051229 - scs - added DEFINE for the DB-Type

*/

//Set the bug tracking system Interface to MANTIS 1.2.15

//also tested with MANTIS 1.2.15.a3

 

/** 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 mantistables */

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 password to use for connecting to the mantisdb */

define('BUG_TRACK_DB_USER','root');

define('BUG_TRACK_DB_PASS','');

/* link of the web server for mantis*/

/* anonymous login into mantis has to be turned on, and amantis 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 -----------

         # Allowanonymous login

         $g_allow_anonymous_login = ON;

         $g_anonymous_account = 'dummy';

*/

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

?>

 

config.inc.php需要修改的配置项如下标黄部分: