星级酒店客房设计:如何在TestLink中集成Mantis bug 管理系统--西西的博客

来源:百度文库 编辑:偶看新闻 时间:2024/04/29 00:01:44

如何在TestLink中集成Mantis bug 管理系统

关键词: TestLink    Mantis                                          

 

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

简述

TestLinkbug 管理系统集成必须具备以下特点:

1.         TestLinkbug 管理系统之间所有的信息交流都是在数据库中完成。

2.         TestLink(现在版本)既不能发信息给bug 管理系统,也不能从bug 管理系统接收信息,只是单纯的调用。

在配置完成之后运行,TestLink用户的使用步骤如下:

1.         当执行某个测试失败。

2.         用户点击链接打开bug 管理系统,将issue提交。

3.         issue提交完毕之后,用户必须将bug 管理系统的issue ID记录到TestLink

4.         用户返回到TestLink的测试执行页面,将issue ID记录到Bug问题的地方。

5.         在用户保存执行结果之后,Testlink将显示从Bug 管理系统获取的数据。

 

环境要求示例:

l         TestLinkMantis安装在同一台服务器上

l         Mantis的链接:http://localhost:8008/mantis/

l         TestLink的链接:http://localhost:8008/TestLink/

l         Mantis数据库名字:mantis

l         Mysql登录名字:mantis_user

l         登录密码:Mantis_passwd

 

第一步:编辑config.inc.php

/**

 

* @var STRING TL_INTERFACE_BUGS = [‘NO‘, ‘BUGZILLA‘,‘MANTIS‘,‘JIRA‘]

 

* BUGZILLA: edit configuration in TL_ABS_PATH/cfg/bugzilla.cfg.php

 

* MANTIS  : edit configuration in TL_ABS_PATH/cfg/mantis.cfg.php

 

* JIRA    : edit configuration in TL_ABS_PATH/cfg/jira.cfg.php

 

*/

 

define(‘TL_INTERFACE_BUGS‘, ‘MANTIS‘);

 

require_once(TL_ABS_PATH . ‘lib/bugtracking/int_bugtracking.php‘);

 

 

第二步:在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‘;

 

第三步:在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 */

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://localhost:8008/mantis/view.php?id=");

/** link to the bugtracking system, for entering new bugs */

define(‘BUG_TRACK_ENTER_BUG_HREF‘," http://localhost:8008/mantis/");

 

测试配置:

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

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

上面的叙述很简单吧,如果你对这两个工具都感兴趣,何不试试,看是否能满足你实际的工作需求呢!!?

[图贴不上来,sigh!!]