LittleCloud's Java World

          Live and learn.
          posts - 18, comments - 29, trackbacks - 0, articles - 1
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          windows下apache+testlink集成mantis成功

          Posted on 2008-04-15 15:27 walkingpig 閱讀(2369) 評論(0)  編輯  收藏 所屬分類: 服務(wù)器
          TestLink中集成Mantis bug 管理系統(tǒng)

          相信大家在選擇測試管理工具的時(shí)候,除了Free這個(gè)重要因素之外,是否也想讓其功能更全呢?如果功能不夠全,那么就想著是否能集成其他系統(tǒng)的功能進(jìn)而完善呢?下面要說的就是一個(gè)集成功能的運(yùn)用,希望對大家有幫助。

          簡述

          在TestLink和bug 管理系統(tǒng)集成必須具備以下特點(diǎn):
          1.       在TestLink和bug 管理系統(tǒng)之間所有的信息交流都是在數(shù)據(jù)庫中完成。
          2.       TestLink(現(xiàn)在版本)既不能發(fā)信息給bug 管理系統(tǒng),也不能從bug 管理系統(tǒng)接收信息,只是單純的調(diào)用。
          在配置完成之后運(yùn)行,TestLink用戶的使用步驟如下:
          1.       當(dāng)執(zhí)行某個(gè)測試失敗。
          2.       用戶點(diǎn)擊鏈接打開bug 管理系統(tǒng),將issue提交。
          3.       當(dāng)issue提交完畢之后,用戶必須將bug 管理系統(tǒng)的issue ID記錄到TestLink。
          4.       用戶返回到TestLink的測試執(zhí)行頁面,將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ù)庫名字: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的匿名用戶具備對所有的項(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)添加,注冊不了的

          第三步:在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/");


          測試配置:
          首先在TestLink里面執(zhí)行一條測試用例,執(zhí)行之后,如果發(fā)現(xiàn)問題,則點(diǎn)擊“Create New Bug”,則打開mantis頁面,將發(fā)現(xiàn)的問題報(bào)告至mantis上,報(bào)告成功之后,回到TestLink,將Issue ID填寫到“Bug/Problem Report”的文本框里,然后點(diǎn)擊“Save Result”,這樣,Testlink就能把Mantis上的issue數(shù)據(jù)顯示在執(zhí)行測試用例頁面下方了。

          此外,你還可以TestLink的bug報(bào)表功能,點(diǎn)擊“Total Bugs For Each Test Case”,則在右邊的頁面里顯示該項(xiàng)目所有測試用例下的bug列表。
          主站蜘蛛池模板: 鞍山市| 家居| 永仁县| 绥芬河市| 湛江市| 九台市| 曲靖市| 安义县| 武冈市| 旺苍县| 琼中| 卓资县| 太谷县| 崇阳县| 泾川县| 鸡泽县| 河北省| 棋牌| 宁乡县| 红安县| 平南县| 泗水县| 吴江市| 洛浦县| 汕头市| 闵行区| 都兰县| 拉萨市| 东乌珠穆沁旗| 固镇县| 肃宁县| 桐柏县| 遂宁市| 长岭县| 汝阳县| 吉隆县| 平利县| 武清区| 本溪| 南京市| 姜堰市|