简单3步,轻松集成Testlink和MantisBT

软件环境:

创新互联建站服务项目包括舒城网站建设、舒城网站制作、舒城网页制作以及舒城网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,舒城网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到舒城省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!

  • testlink 1.9.12

  • MantisBT-1.2.18  

一、先来说一说集成的好处吧:

  • 在每个版本测试结束后,方便统计TC发现的bug的占比;

  • 在testlink中,通过查看用例执行历史,可以间接的了解bug修复情况;

  • testlink留存了用例与bug的关系,提供了可追溯性,间接的可以反映版本修复的质量;

二、再来说集成的步骤:

第一步:配置Mantis的mantisconfig_inc.php文件

在mantis中开启允许匿名登录

mantis的匿名用户对所有的项目都具有浏览权限

#  --- anonymous login -----------

#  Allow anonymous login

$g_allow_anonymous_login  = ON;

$g_anonymous_account  = 'dummy';

 

第二步:配置testlink的主目录下的/cfg/mantis.cfg.php文件

/**  The DB host to use when connecting to the mantis db */

define('BUG_TRACK_DB_HOST',  'calypso');

/**  The name of the database that contains the mantis tables */

define('BUG_TRACK_DB_NAME',  'mantis_bt');

/**  The DB type being used by mantis */

define('BUG_TRACK_DB_USER',  'mantis_bt_user');

/**  The DB password to use for connecting to the mantis db */

define('BUG_TRACK_DB_PASS',  'mantis_bt_password');

/**  link to the bugtracking system, for viewing bugs */

define('BUG_TRACK_HREF',  "http://calypso/mantis/view.php?id=");

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

define('BUG_TRACK_ENTER_BUG_HREF',"http://calypso/mantis/");

 

第三步:enable BTS集成

打开config.inc.php文件中

//

/**  [Bug Tracking systems] */

/**

*  TestLink uses bugtracking systems to check if displayed bugs resolved,  verified,

*  and closed bugs. If they are it will strike through them

*

* NO  : no bug tracking system integration

*  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

*  TRACKPLUS : edit configuration in TL_ABS_PATH/cfg/trackplus.cfg.php

*/

$g_interface_bugs='NO';

将“$g_interface_bugs='NO';  " copy到custom_config.inc.php文件中 ,并将'NO'修改为‘MANTIS’

$g_interface_bugs='MANTIS';

三、TestLink用户的使用步骤如下:  

  • 如果测试结果为失败;

  • 在mantis中提交bug,并记录bug ID;

  • 在testlink执行用例的结果页面,点击bug小图标;

  • 在弹出的页面,添加bug ID并保存。

  • 添加后可显示bug信息,点击后,可查看bug详细信息。

简单3步,轻松集成Testlink和MantisBT


本文题目:简单3步,轻松集成Testlink和MantisBT
路径分享:http://pwwzsj.com/article/jpceep.html