学习phpnow+testlink+mantis时的心得

上一篇 / 下一篇  2012-04-10 15:50:50

一.PHPnow-1.5.3(PHP + MySQL 环境)安装:

将包解压后执行 Setup.cmd,根据提示进行,记得Mysql所设置的用户名密码,也可以载安装完成之后找到\PHPnow-1.5.3\MySQL-5.0.77目录下的my.ini文件,载其中添加用户名和启用密码,如下:

# The following options will be passed to all MySQL clients
[client]
user=root
password = 123456
port = 3306
socket = /tmp/mysql.sock

输入:http://localhost/index.php测试数据库连接

将网站部署到htdocs文件下

二.TestLink所需的环境配好以后,接着安装TestLink

我使用的是TestLink 1.8.0 BETA2

安装如下:

将testlink_beta2.zip解压到上面所说的也就是服务器的默认目录htdocs文件下,我解压后叫tl(为了方便),用ie进入install文件家执行其中的index.php,如图

两种安装方法:

1.     自动:按照提示一步一步的来就行

2.     手动:在mysql下建立一个名为testlink的库:

命令是:create database testlink;

然后将\install\sql\mysql目录下的两个文件导入到数据库中:

命令是:

Source C:\PHPnow-1.5.3\htdocs\tl\install\sql\mysql\testlink_create_tables.sql

Source C:\PHPnow-1.5.3\htdocs\tl\install\sql\mysql\ testlink_create_default_data.sql

在解压后的目录中添加一个文件:config_db.inc.php内容如下:

<?php

// Automatically Generated by TestLink Installer

define('DB_TYPE', 'mysql'); //所使用的数据库类型

define('DB_USER', 'admin'); //默认的用户名

define('DB_PASS', 'admin'); //默认的密码

define('DB_HOST', 'localhost');

define('DB_NAME', 'testlink'); //数据库名称

?>

登陆到testlink中:用户名密码:admin

登陆后可以在个人账号中修改语言:

三.与缺陷管理工具mantis关联

首先安装mantis,我的版本是mantis 1.0.8

安装步骤如下:

将mantis 1.0.8.zip解压到上面所说的也就是服务器的默认目录htdocs文件下,我解压完叫mantis,进入到:http://localhost/mantis/admin/install.php中,填好相应信息,

我安装的时候出现好多的sql建表语句,提示错误,将语句在mysql中执行即可

接下来修改配置文件:

可以在config_defaults_inc.php中修改数据库的相应信息,也可以新建一个文件config_inc.php内容如下:

<?php

       $g_hostname = 'localhost';

       $g_db_type = 'mysql';

       $g_database_name = 'bugtracker';

       $g_db_username = 'root';

       $g_db_password = '123456';

?>

如果没有config_inc.php文件则用config_defaults_inc.php文件中的相应信息,这里我只添加了数据库的信息,邮件设置未设置。

登陆时默认用户名密码是:administrator,root

四.整合mantis和testlink

修改tl/cfg下的mantis.cfg.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 password to use for connecting to the mantis db */
define('BUG_TRACK_DB_USER', 'root');
define('BUG_TRACK_DB_PASS', '123456');

修改tl文件夹下的config.inc.php文件,查找$g_interface_bugs = ‘no’;

为$g_interface_bugs = 'MANTIS';

整合后执行用例时会出现一列bug管理

点击蜘蛛图片会弹出管理页面,添加bug号关联

TAG: TestLink testlink

 

评分:0

我来说两句

日历

« 2024-03-28  
     12
3456789
10111213141516
17181920212223
24252627282930
31      

数据统计

  • 访问量: 169734
  • 日志数: 53
  • 建立时间: 2009-02-16
  • 更新时间: 2016-01-26

RSS订阅

Open Toolbar