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 閱讀(2363) 評論(0)  編輯  收藏 所屬分類: 服務(wù)器
          TestLink中集成Mantis bug 管理系統(tǒng)

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

          簡述

          在TestLink和bug 管理系統(tǒng)集成必須具備以下特點:
          1.       在TestLink和bug 管理系統(tǒng)之間所有的信息交流都是在數(shù)據(jù)庫中完成。
          2.       TestLink(現(xiàn)在版本)既不能發(fā)信息給bug 管理系統(tǒng),也不能從bug 管理系統(tǒng)接收信息,只是單純的調(diào)用。
          在配置完成之后運行,TestLink用戶的使用步驟如下:
          1.       當(dāng)執(zhí)行某個測試失敗。
          2.       用戶點擊鏈接打開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安裝在同一臺服務(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的匿名用戶具備對所有的項目都可以瀏覽的權(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';

          注:這個dummy用戶需要administrator在后臺添加,注冊不了的

          第三步:在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)問題,則點擊“Create New Bug”,則打開mantis頁面,將發(fā)現(xiàn)的問題報告至mantis上,報告成功之后,回到TestLink,將Issue ID填寫到“Bug/Problem Report”的文本框里,然后點擊“Save Result”,這樣,Testlink就能把Mantis上的issue數(shù)據(jù)顯示在執(zhí)行測試用例頁面下方了。

          此外,你還可以TestLink的bug報表功能,點擊“Total Bugs For Each Test Case”,則在右邊的頁面里顯示該項目所有測試用例下的bug列表。
          主站蜘蛛池模板: 敖汉旗| 洪江市| 县级市| 库伦旗| 金堂县| 剑川县| 安图县| 庐江县| 泰兴市| 宜城市| 辉县市| 辽中县| 游戏| 皋兰县| 什邡市| 青浦区| 天镇县| 丘北县| 探索| 万宁市| 呼图壁县| 兴文县| 香港| 平阳县| 兰坪| 侯马市| 太康县| 洛扎县| 霍林郭勒市| 独山县| 察雅县| 泽普县| 巴青县| 千阳县| 芒康县| 泸州市| 明溪县| 伊川县| 岢岚县| 通辽市| 区。|