LittleCloud's Java World

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

          windows下apache+testlink集成mantis成功

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

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

          簡述

          在TestLink和bug 管理系統集成必須具備以下特點:
          1.       在TestLink和bug 管理系統之間所有的信息交流都是在數據庫中完成。
          2.       TestLink(現在版本)既不能發信息給bug 管理系統,也不能從bug 管理系統接收信息,只是單純的調用。
          在配置完成之后運行,TestLink用戶的使用步驟如下:
          1.       當執行某個測試失敗。
          2.       用戶點擊鏈接打開bug 管理系統,將issue提交。
          3.       當issue提交完畢之后,用戶必須將bug 管理系統的issue ID記錄到TestLink。
          4.       用戶返回到TestLink的測試執行頁面,將issue ID記錄到Bug問題的地方。
          5.       在用戶保存執行結果之后,Testlink將顯示從Bug 管理系統獲取的數據。

          環境要求示例:
          l       TestLink和Mantis安裝在同一臺服務器上
          l       Mantis的鏈接:http://168.68.73.29/mantis/
          l       TestLink的鏈接:http://168.68.73.29/TestLink/
          l       Mantis數據庫名字:mantis
          l       Mysql登錄名字:mantis_user
          l       登錄密碼:Mantis_passwd
          第一步:編輯config.inc.php
          找到$g_interface_bugs='NO';
          改成$g_interface_bugs='MANTIS';

          第二步:在mantis上設置匿名登錄權限
          l       匿名登錄的設置需要打開。
          l       Mantis的匿名用戶具備對所有的項目都可以瀏覽的權限。
          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的界面參數。
          你必須編輯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里面執行一條測試用例,執行之后,如果發現問題,則點擊“Create New Bug”,則打開mantis頁面,將發現的問題報告至mantis上,報告成功之后,回到TestLink,將Issue ID填寫到“Bug/Problem Report”的文本框里,然后點擊“Save Result”,這樣,Testlink就能把Mantis上的issue數據顯示在執行測試用例頁面下方了。

          此外,你還可以TestLink的bug報表功能,點擊“Total Bugs For Each Test Case”,則在右邊的頁面里顯示該項目所有測試用例下的bug列表。
          主站蜘蛛池模板: 都江堰市| 利川市| 荔浦县| 大兴区| 徐水县| 秭归县| 包头市| 莱州市| 山西省| 祁阳县| 威宁| 娄烦县| 澜沧| 双城市| 梨树县| 南皮县| 宁阳县| 从江县| 合水县| 金阳县| 汉寿县| 陆河县| 鄢陵县| 白城市| 仲巴县| 静宁县| 寻乌县| 杂多县| 成武县| 奉新县| 兰坪| 光泽县| 太原市| 马山县| 栾城县| 东明县| 峨眉山市| 马公市| 泰兴市| 怀宁县| 广水市|