windows下apache+testlink集成mantis成功
Posted on 2008-04-15 15:27 walkingpig 閱讀(2364) 評(píng)論(0) 編輯 收藏 所屬分類: 服務(wù)器TestLink中集成Mantis bug 管理系統(tǒng)
相信大家在選擇測(cè)試管理工具的時(shí)候,除了Free這個(gè)重要因素之外,是否也想讓其功能更全呢?如果功能不夠全,那么就想著是否能集成其他系統(tǒng)的功能進(jìn)而完善呢?下面要說(shuō)的就是一個(gè)集成功能的運(yùn)用,希望對(duì)大家有幫助。
簡(jiǎn)述
在TestLink和bug 管理系統(tǒng)集成必須具備以下特點(diǎn):
1. 在TestLink和bug 管理系統(tǒng)之間所有的信息交流都是在數(shù)據(jù)庫(kù)中完成。
2. TestLink(現(xiàn)在版本)既不能發(fā)信息給bug 管理系統(tǒng),也不能從bug 管理系統(tǒng)接收信息,只是單純的調(diào)用。
在配置完成之后運(yùn)行,TestLink用戶的使用步驟如下:
1. 當(dāng)執(zhí)行某個(gè)測(cè)試失敗。
2. 用戶點(diǎn)擊鏈接打開bug 管理系統(tǒng),將issue提交。
3. 當(dāng)issue提交完畢之后,用戶必須將bug 管理系統(tǒng)的issue ID記錄到TestLink。
4. 用戶返回到TestLink的測(cè)試執(zhí)行頁(yè)面,將issue ID記錄到Bug問題的地方。
5. 在用戶保存執(zhí)行結(jié)果之后,Testlink將顯示從Bug 管理系統(tǒng)獲取的數(shù)據(jù)。
環(huán)境要求示例:
l TestLink和Mantis安裝在同一臺(tái)服務(wù)器上
l Mantis的鏈接:http://168.68.73.29/mantis/
l TestLink的鏈接:http://168.68.73.29/TestLink/
l Mantis數(shù)據(jù)庫(kù)名字:mantis
l Mysql登錄名字:mantis_user
l 登錄密碼:Mantis_passwd
第一步:編輯config.inc.php
找到$g_interface_bugs='NO';
改成$g_interface_bugs='MANTIS';
第二步:在mantis上設(shè)置匿名登錄權(quán)限
l 匿名登錄的設(shè)置需要打開。
l Mantis的匿名用戶具備對(duì)所有的項(xiàng)目都可以瀏覽的權(quán)限。
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';
注:這個(gè)dummy用戶需要administrator在后臺(tái)添加,注冊(cè)不了的
第三步:在TestLink里配置mantis的界面參數(shù)。
你必須編輯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/");
測(cè)試配置:
首先在TestLink里面執(zhí)行一條測(cè)試用例,執(zhí)行之后,如果發(fā)現(xiàn)問題,則點(diǎn)擊“Create New Bug”,則打開mantis頁(yè)面,將發(fā)現(xiàn)的問題報(bào)告至mantis上,報(bào)告成功之后,回到TestLink,將Issue ID填寫到“Bug/Problem Report”的文本框里,然后點(diǎn)擊“Save Result”,這樣,Testlink就能把Mantis上的issue數(shù)據(jù)顯示在執(zhí)行測(cè)試用例頁(yè)面下方了。
此外,你還可以TestLink的bug報(bào)表功能,點(diǎn)擊“Total Bugs For Each Test Case”,則在右邊的頁(yè)面里顯示該項(xiàng)目所有測(cè)試用例下的bug列表。
相信大家在選擇測(cè)試管理工具的時(shí)候,除了Free這個(gè)重要因素之外,是否也想讓其功能更全呢?如果功能不夠全,那么就想著是否能集成其他系統(tǒng)的功能進(jìn)而完善呢?下面要說(shuō)的就是一個(gè)集成功能的運(yùn)用,希望對(duì)大家有幫助。
簡(jiǎn)述
在TestLink和bug 管理系統(tǒng)集成必須具備以下特點(diǎn):
1. 在TestLink和bug 管理系統(tǒng)之間所有的信息交流都是在數(shù)據(jù)庫(kù)中完成。
2. TestLink(現(xiàn)在版本)既不能發(fā)信息給bug 管理系統(tǒng),也不能從bug 管理系統(tǒng)接收信息,只是單純的調(diào)用。
在配置完成之后運(yùn)行,TestLink用戶的使用步驟如下:
1. 當(dāng)執(zhí)行某個(gè)測(cè)試失敗。
2. 用戶點(diǎn)擊鏈接打開bug 管理系統(tǒng),將issue提交。
3. 當(dāng)issue提交完畢之后,用戶必須將bug 管理系統(tǒng)的issue ID記錄到TestLink。
4. 用戶返回到TestLink的測(cè)試執(zhí)行頁(yè)面,將issue ID記錄到Bug問題的地方。
5. 在用戶保存執(zhí)行結(jié)果之后,Testlink將顯示從Bug 管理系統(tǒng)獲取的數(shù)據(jù)。
環(huán)境要求示例:
l TestLink和Mantis安裝在同一臺(tái)服務(wù)器上
l Mantis的鏈接:http://168.68.73.29/mantis/
l TestLink的鏈接:http://168.68.73.29/TestLink/
l Mantis數(shù)據(jù)庫(kù)名字:mantis
l Mysql登錄名字:mantis_user
l 登錄密碼:Mantis_passwd
第一步:編輯config.inc.php
找到$g_interface_bugs='NO';
改成$g_interface_bugs='MANTIS';
第二步:在mantis上設(shè)置匿名登錄權(quán)限
l 匿名登錄的設(shè)置需要打開。
l Mantis的匿名用戶具備對(duì)所有的項(xiàng)目都可以瀏覽的權(quán)限。
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';
注:這個(gè)dummy用戶需要administrator在后臺(tái)添加,注冊(cè)不了的
第三步:在TestLink里配置mantis的界面參數(shù)。
你必須編輯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/");
測(cè)試配置:
首先在TestLink里面執(zhí)行一條測(cè)試用例,執(zhí)行之后,如果發(fā)現(xiàn)問題,則點(diǎn)擊“Create New Bug”,則打開mantis頁(yè)面,將發(fā)現(xiàn)的問題報(bào)告至mantis上,報(bào)告成功之后,回到TestLink,將Issue ID填寫到“Bug/Problem Report”的文本框里,然后點(diǎn)擊“Save Result”,這樣,Testlink就能把Mantis上的issue數(shù)據(jù)顯示在執(zhí)行測(cè)試用例頁(yè)面下方了。
此外,你還可以TestLink的bug報(bào)表功能,點(diǎn)擊“Total Bugs For Each Test Case”,則在右邊的頁(yè)面里顯示該項(xiàng)目所有測(cè)試用例下的bug列表。