相信大家在選擇測試管理工具的時(shí)候,除了Free這個(gè)重要因素之外,是否也想讓其功能更全呢?如果功能不夠全,那么就想著(zhù)是否能集成其他系統的功能進(jìn)而完善呢?下面要說(shuō)的就是一個(gè)集成功能的運用,希望對大家有幫助。
簡(jiǎn)述
在TestLink和bug 管理系統集成必須具備以下特點(diǎn):
1. 在TestLink和bug 管理系統之間所有的信息交流都是在數據庫中完成。
2. TestLink(現在版本)既不能發(fā)信息給bug 管理系統,也不能從bug 管理系統接收信息,只是單純的調用。
在配置完成之后運行,TestLink用戶(hù)的使用步驟如下:
1. 當執行某個(gè)測試失敗。
2. 用戶(hù)點(diǎn)擊鏈接打開(kāi)bug 管理系統,將issue提交。
3. 當issue提交完畢之后,用戶(hù)必須將bug 管理系統的issue ID記錄到TestLink。
4. 用戶(hù)返回到TestLink的測試執行頁(yè)面,將issue ID記錄到Bug問(wèn)題的地方。
5. 在用戶(hù)保存執行結果之后,Testlink將顯示從Bug 管理系統獲取的數據。
環(huán)境要求示例:
l TestLink和Mantis安裝在同一臺服務(wù)器上
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 匿名登錄的設置需要打開(kāi)。
l Mantis的匿名用戶(hù)具備對所有的項目都可以瀏覽的權限。
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里面執行一條測試用例,執行之后,如果發(fā)現問(wèn)題,則點(diǎn)擊“Create New Bug”,則打開(kāi)mantis頁(yè)面,將發(fā)現的問(wèn)題報告至mantis上,報告成功之后,回到TestLink,將Issue ID填寫(xiě)到“Bug/Problem Report”的文本框里,然后點(diǎn)擊“Save Result”,這樣,Testlink就能把Mantis上的issue數據顯示在執行測試用例頁(yè)面下方了。
此外,你還可以TestLink的bug報表功能,點(diǎn)擊“Total Bugs For Each Test Case”,則在右邊的頁(yè)面里顯示該項目所有測試用例下的bug列表。
上面的敘述很簡(jiǎn)單吧,如果你對這兩個(gè)工具都感興趣,何不試試,看是否能滿(mǎn)足你實(shí)際的工作需求呢?。??
[圖貼不上來(lái),sigh??!]
聯(lián)系客服