http://luoxq.mypm.net
公 告
登 陆
日志日历
日 志
评 论
链 接
统 计
测试管理工具及bug跟踪

测试管理工具和bug跟踪工具:testlink, bugfree

可集成在一起对测试进行管理,是两款不错的开源软件。

--testlink安装
1.Apache2.0.59
2.php4.4.1
3.mysql5.0.45
参见《testlink安装.doc》

4.testlink1.6.2
将解压缩后的文件放到Apache服务器htdocs目录下
通过浏览器安装,http://ip:port/testlink/install
安装的引导界面很简明,一般这步不会有太大问题(有问题也主要是mysql版本问题)。
安装成功后删除install目录,修改admin的初始密码。

--testlink汉化
1.修改config.inc.php
第一处:

/** GUI CHARSET
* Chinese users must comment the next line and uncomment the second one
* @todo translate Chinese from gb2312 to UTF-8
**/
//define('TL_TPL_CHARSET', DB_SUPPORTS_UTF8 ? 'UTF-8' : 'ISO-8859-1');
define('TL_TPL_CHARSET', 'gb2312'); // Chinese charset

这样,TL就采用gb2312编码来表现和存储了。

第二处:

/** Set this to TRUE if your MySQL DB supports UTF8 (MySQL version >= 4.1) */
define('DB_SUPPORTS_UTF8', false);


第三处:
修改中文日期显示的格式。
修改$g_locales_date_format和$g_locales_timestamp_format两个数组中的zh_CN索引对应的值,
这里的编码都是类似”%Y锟斤拷%m锟斤拷%d锟斤拷”的乱码,我们需要改成“%Y年%m月%d日 %时:%分:%秒”的格式。

2.格式文件
locale\zh_CN\strings.txt
gui\css\testlink.css
gui\css\tl_doc_basic.css
gui\css\tl_treemenu.css

--配置发信功能。在注释:

# @author Francisco Mancardi - 20051106
# Contributed by wangyy, modified by Francisco Mancardi
# Taken from mantis
# for phpmailer config

后面的部分按照实际配好用户名、密码、smtp之类的信息就ok了。

--bugfree的安装
1.http://www.bugfree.org.cn/download下载rc2.0版
2.将bugfree解压后放到Apache服务器htdocs目录下
3.通过浏览器安装http://localhost:port/bugfree/install.php
  根据提示安装,安装成功后删除install.php

--testlink 与 bugfree 的整合
1.lib\bugtracking\int_bugtracking.php
$configFiles增加一行
'BUGFREE' => 'bugfree.cfg.php',
$interfaceFiles增加一行
'BUGFREE' => 'int_bugfree.php',

2.lib\bugtracking\int_bugfree.php

3.cfg\bugfree.php

4.config.inc.php
  将define(’TL_INTERFACE_BUGS’, ‘NO’);改为define(’TL_INTERFACE_BUGS’, ‘BUGFREE’);


5.gui\templates\navBar.tpl
<div style="text-align:right;"><a href="http://localhost:8098/bugfree" target="_blank" >缺陷跟踪系统</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a style="width:100%;padding-right:5px;" href="/blog/logout.php" target="_parent" accesskey="q">{lang_get s='link_logout'}</a></div>

--查看bugfree异常
PostActionFrame.tpl 改:width="200" height="100"
不能创建testcase
ALTER TABLE `bugfree_CaseInfo` CHANGE `ResultID` `ResultID` varchar(255) NOT NULL DEFAULT '';

具体配置如下附件:
/blog/UploadFiles/2008-4/45325752.zip

luoxq 发表于 2008/4/4 23:56:00 阅读全文 | 回复(1) | 引用通告 | 编辑 | 收藏该日志
Re:测试管理工具及bug跟踪
ok
luoxq发表评论于2011/1/16 17:50:00 个人主页 | 引用 | 返回 | 删除 | 回复

发表评论:

    昵称:
    密码:
    主页:
    标题: