LittleCloud's Java World

Live and learn.
posts - 18, comments - 29, trackbacks - 0, articles - 1
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

windows下apache+testlink集成mantis成功

Posted on 2008-04-15 15:27 walkingpig 阅读(2344) 评论(0)  编辑  收藏 所属分类: 服务器
TestLink中集成Mantis bug 管理系统

相信大家在选择测试管理工具的时候,除了Free这个重要因素之外,是否也想让其功能更全呢?如果功能不够全,那么就想着是否能集成其他系统的功能进而完善呢?下面要说的就是一个集成功能的运用,希望对大家有帮助。

简述

在TestLink和bug 管理系统集成必须具备以下特点:
1.       在TestLink和bug 管理系统之间所有的信息交流都是在数据库中完成。
2.       TestLink(现在版本)既不能发信息给bug 管理系统,也不能从bug 管理系统接收信息,只是单纯的调用。
在配置完成之后运行,TestLink用户的使用步骤如下:
1.       当执行某个测试失败。
2.       用户点击链接打开bug 管理系统,将issue提交。
3.       当issue提交完毕之后,用户必须将bug 管理系统的issue ID记录到TestLink。
4.       用户返回到TestLink的测试执行页面,将issue ID记录到Bug问题的地方。
5.       在用户保存执行结果之后,Testlink将显示从Bug 管理系统获取的数据。

环境要求示例:
l       TestLink和Mantis安装在同一台服务器上
l       Mantis的链接:http://168.68.73.29/mantis/
l       TestLink的链接:http://168.68.73.29/TestLink/
l       Mantis数据库名字:mantis
l       Mysql登录名字:mantis_user
l       登录密码:Mantis_passwd
第一步:编辑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,如下所示:
/** 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', 'manti');

/** 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', 'mantis_user');

/** The DB password to use for connecting to the mantis db */
define('BUG_TRACK_DB_PASS', 'mantis_passwd');

/** link to the bugtracking system, for viewing bugs */
define('BUG_TRACK_HREF', "http://168.68.73.29/mantis/view.php?id=");

/** link to the bugtracking system, for entering new bugs */
define('BUG_TRACK_ENTER_BUG_HREF'," http://168.68.73.29/mantis/");


测试配置:
首先在TestLink里面执行一条测试用例,执行之后,如果发现问题,则点击“Create New Bug”,则打开mantis页面,将发现的问题报告至mantis上,报告成功之后,回到TestLink,将Issue ID填写到“Bug/Problem Report”的文本框里,然后点击“Save Result”,这样,Testlink就能把Mantis上的issue数据显示在执行测试用例页面下方了。

此外,你还可以TestLink的bug报表功能,点击“Total Bugs For Each Test Case”,则在右边的页面里显示该项目所有测试用例下的bug列表。

只有注册用户登录后才能发表评论。


网站导航: