Bugfree+ testlink的安裝筆記
首先下載XAMPP:
XAMPP Linux 1.6.8a:
http://jaist.dl.sourceforge.net/ ... linux-1.6.8a.tar.gz
相關Linux下安裝和配置XAMPP請參考官網:
http://www.apachefriends.org/zh_cn/xampp-linux.html
安裝之前首先確認你服務器的80端口有沒被占用
netstat -an|grep -w 80
如果被占用了請先關閉相關服務,XAMPP啟動要用到80端口.
安裝XAMPP:
[root@localhost ~]#wget -c http://jaist.dl.sourceforge.net/ ... linux-1.6.8a.tar.gz
[root@localhost ~]#tar xvfz xampp-linux-1.6.8a.tar.gz -C /opt
然后啟動(命令參數見XAMPP官網):
opt/lampp/lampp start
您應該能在屏幕上看到類似下面的提示信息:
Starting XAMPP 1.6.8a...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.
好了。Apache 和 MySQL 正在運行中
只需在您的瀏覽器中輸入下面的鏈接即可: http://localhost
看到一些示例程序的 XAMPP 開始頁面就表示XAMPP安裝成功了。
接下來我們要配置XAMPP的安全性。
配置XAMPP安全性:
[root@localhost ~]# /opt/lampp/lampp security
XAMPP: Quick security check...
XAMPP: Your XAMPP pages are NOT secured by a password.
XAMPP: Do you want to set a password? [yes] XAMPP: Do you want to set a password? [yes] yes
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Password protection active. Please use 'lampp' as user name!
XAMPP: MySQL is accessable via network.
XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] yes
XAMPP: Turned off.
XAMPP: Stopping MySQL...
XAMPP: Starting MySQL...
XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL pma password.
XAMPP: Setting phpMyAdmin's pma password to the new one.
XAMPP: MySQL has no root passwort set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Write the password somewhere down to make sure you won't forget it!!!
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL root password.
XAMPP: Change phpMyAdmin's authentication method.
XAMPP: The FTP password is still set to 'lampp'.
XAMPP: Do you want to change the password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Reload ProFTPD...
XAMPP: Done.
并設置 XAMPP 隨系統自動啟動
[root@localhost ~]# ln -s /opt/lampp/lampp /etc/rc.d/rc3.d/S99lampp
[root@localhost ~]# ln -s /opt/lampp/lampp /etc/rc.d/rc4.d/S99lampp
[root@localhost ~]# ln -s /opt/lampp/lampp /etc/rc.d/rc5.d/S99lampp
自此,XAMPP已經配置好了!下面我們來配置BugFree:
下載BugFree2:
[root@localhost ~]# wget -c http://www.bugfree.org.cn/download/bugfree2.tar.gz
解壓到Xampp下的htdocs文檔下:
[root@localhost ~]#tar xvfz bugfree2.tar.gz -C /opt/lampp/htdocs/
然后復制Include/Config.inc.Sample.php為Include/Config.inc.php,編輯并修改數據庫鏈接地址:
(復制命令CP和修改命令VI,這里就不多介紹了)
/* 3. Define the username and password of the BugFree database. */
$_CFG['DB']['User'] = 'root'; // 數據庫登錄用戶名
$_CFG['DB']['Password'] = 'password'; // 數據庫登錄用戶密碼
$_CFG['DB']['Host'] = 'localhost'; // 數據庫服務器地址
$_CFG['DB']['Database'] = 'bugfree'; // 指定BugFree數據庫名稱
$_CFG['DB']['TablePrefix'] = 'bf_'; // 數據庫表前綴,默認為bf_。除非有沖突,不建議修改或為空
$_CFG['DBCharset'] = 'UTF8'; // 數據庫編碼設置,保留默認值
然后設置文件目錄權限:
[root@localhost ~]# cd /opt/lampp/htdocs/bugfree
[root@localhost bugfree]# chmod 777 Data/TplCompile/
[root@localhost bugfree]# chmod 777 BugFile/
[root@localhost bugfree]# chmod 777 Include/Config.inc.php
全部配置好就可以訪問BugFree了:
http://localhost/bugfree/設置新的數據庫
安裝bugfree:
wget -c http://www.bugfree.org.cn/download/bugfree2.tar.gz
tar xvfz bugfree2.tar.gz -C /opt/lampp/htdocs/
在瀏覽器中輸入:http://localhost/bugfree
會提示錯誤,需要解決,我遇到的是數據庫方面的錯誤,需要配置就ok了。相應的去解決問題就ok了。
phpsql在線:
http://localhost/phpmyadmin/
可用PHPSQL操作Mysql數據或linux終端登錄mysql
[root@ASP-WEB root]# /opt/lampp/bin/mysql -u root -p
至此,全部安裝完成!XAMPP平臺真的是個好東西,省去了很多在Linux安裝的麻煩
配置testlink:
1.下載1.8版本的testlink
2.tar xvfz testlink_1.8.RC2.tar.gz -C /opt/lampp/htdocs/
3.在瀏覽器中輸入http://localhost/testlink/index.php
會提示有錯誤的,要解決錯誤,find -name init.php /opt/lampp,相應的去解決問題就ok了。
http://www.apachefriends.org/zh_cn/xampp-linux.html
$g_tl_admin_email = '[testlink_sysadmin_email_not_configured]'; # for problem/error notification
$g_from_email = '[from_email_not_configured]'; # email sender
$g_return_path_email = '[return_path_email_not_configured]';
$g_smtp_host = '[smtp_host_not_configured]'; # SMTP server MUST BE configured
http://www.leeyupeng.com/archives/309 李玉朋的blog
http://testlink.5d6d.com/forum-5-3.html testlink論壇
如果需要修改為中文則按以下步驟操作:
1)打開testlink下cfg文件夾下的config.inc.php文件,查找$g_default_language = 'en_GB';修改為$g_default_language = 'zh_CN';
2)下載utf8版本的strings.txt替換testlink\locale\zh_CN目錄下的strings.txt即可完成漢化
下載網址:http://testlink.5d6d.com/thread-1-1-1.html
3)進入testlink頁面,在菜單欄中的Personal中更改admin默認的語言,選擇“Chinese silmpified”
日期亂碼解決方式:
testlink里面日期會有亂碼,需要修改testlink下cfg文件夾下的const.inc.php文件,修改方法如下:
打開 const.inc.php文件
查找'zh_CN' => "%Y錕斤拷%m錕斤拷%d錕斤拷 %H時%M錕斤拷%S錕斤拷",修改為:'zh_CN' => "%Y-%m-%d %H:%M:%S"
http://sourceforge.net/project/s ... p;release_id=660529 testlink1.7.5下載地址
首先下載XAMPP:
XAMPP Linux 1.6.8a:
http://jaist.dl.sourceforge.net/ ... linux-1.6.8a.tar.gz
相關Linux下安裝和配置XAMPP請參考官網:
http://www.apachefriends.org/zh_cn/xampp-linux.html
安裝之前首先確認你服務器的80端口有沒被占用
netstat -an|grep -w 80
如果被占用了請先關閉相關服務,XAMPP啟動要用到80端口.
安裝XAMPP:
[root@localhost ~]#wget -c http://jaist.dl.sourceforge.net/ ... linux-1.6.8a.tar.gz
[root@localhost ~]#tar xvfz xampp-linux-1.6.8a.tar.gz -C /opt
然后啟動(命令參數見XAMPP官網):
opt/lampp/lampp start
您應該能在屏幕上看到類似下面的提示信息:
Starting XAMPP 1.6.8a...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.
好了。Apache 和 MySQL 正在運行中
只需在您的瀏覽器中輸入下面的鏈接即可: http://localhost
看到一些示例程序的 XAMPP 開始頁面就表示XAMPP安裝成功了。
接下來我們要配置XAMPP的安全性。
配置XAMPP安全性:
[root@localhost ~]# /opt/lampp/lampp security
XAMPP: Quick security check...
XAMPP: Your XAMPP pages are NOT secured by a password.
XAMPP: Do you want to set a password? [yes] XAMPP: Do you want to set a password? [yes] yes
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Password protection active. Please use 'lampp' as user name!
XAMPP: MySQL is accessable via network.
XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] yes
XAMPP: Turned off.
XAMPP: Stopping MySQL...
XAMPP: Starting MySQL...
XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL pma password.
XAMPP: Setting phpMyAdmin's pma password to the new one.
XAMPP: MySQL has no root passwort set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Write the password somewhere down to make sure you won't forget it!!!
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL root password.
XAMPP: Change phpMyAdmin's authentication method.
XAMPP: The FTP password is still set to 'lampp'.
XAMPP: Do you want to change the password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Reload ProFTPD...
XAMPP: Done.
并設置 XAMPP 隨系統自動啟動
[root@localhost ~]# ln -s /opt/lampp/lampp /etc/rc.d/rc3.d/S99lampp
[root@localhost ~]# ln -s /opt/lampp/lampp /etc/rc.d/rc4.d/S99lampp
[root@localhost ~]# ln -s /opt/lampp/lampp /etc/rc.d/rc5.d/S99lampp
自此,XAMPP已經配置好了!下面我們來配置BugFree:
下載BugFree2:
[root@localhost ~]# wget -c http://www.bugfree.org.cn/download/bugfree2.tar.gz
解壓到Xampp下的htdocs文檔下:
[root@localhost ~]#tar xvfz bugfree2.tar.gz -C /opt/lampp/htdocs/
然后復制Include/Config.inc.Sample.php為Include/Config.inc.php,編輯并修改數據庫鏈接地址:
(復制命令CP和修改命令VI,這里就不多介紹了)
/* 3. Define the username and password of the BugFree database. */
$_CFG['DB']['User'] = 'root'; // 數據庫登錄用戶名
$_CFG['DB']['Password'] = 'password'; // 數據庫登錄用戶密碼
$_CFG['DB']['Host'] = 'localhost'; // 數據庫服務器地址
$_CFG['DB']['Database'] = 'bugfree'; // 指定BugFree數據庫名稱
$_CFG['DB']['TablePrefix'] = 'bf_'; // 數據庫表前綴,默認為bf_。除非有沖突,不建議修改或為空
$_CFG['DBCharset'] = 'UTF8'; // 數據庫編碼設置,保留默認值
然后設置文件目錄權限:
[root@localhost ~]# cd /opt/lampp/htdocs/bugfree
[root@localhost bugfree]# chmod 777 Data/TplCompile/
[root@localhost bugfree]# chmod 777 BugFile/
[root@localhost bugfree]# chmod 777 Include/Config.inc.php
全部配置好就可以訪問BugFree了:
http://localhost/bugfree/設置新的數據庫
安裝bugfree:
wget -c http://www.bugfree.org.cn/download/bugfree2.tar.gz
tar xvfz bugfree2.tar.gz -C /opt/lampp/htdocs/
在瀏覽器中輸入:http://localhost/bugfree
會提示錯誤,需要解決,我遇到的是數據庫方面的錯誤,需要配置就ok了。相應的去解決問題就ok了。
phpsql在線:
http://localhost/phpmyadmin/
可用PHPSQL操作Mysql數據或linux終端登錄mysql
[root@ASP-WEB root]# /opt/lampp/bin/mysql -u root -p
至此,全部安裝完成!XAMPP平臺真的是個好東西,省去了很多在Linux安裝的麻煩
配置testlink:
1.下載1.8版本的testlink
2.tar xvfz testlink_1.8.RC2.tar.gz -C /opt/lampp/htdocs/
3.在瀏覽器中輸入http://localhost/testlink/index.php
會提示有錯誤的,要解決錯誤,find -name init.php /opt/lampp,相應的去解決問題就ok了。
http://www.apachefriends.org/zh_cn/xampp-linux.html
$g_tl_admin_email = '[testlink_sysadmin_email_not_configured]'; # for problem/error notification
$g_from_email = '[from_email_not_configured]'; # email sender
$g_return_path_email = '[return_path_email_not_configured]';
$g_smtp_host = '[smtp_host_not_configured]'; # SMTP server MUST BE configured
http://www.leeyupeng.com/archives/309 李玉朋的blog
http://testlink.5d6d.com/forum-5-3.html testlink論壇
如果需要修改為中文則按以下步驟操作:
1)打開testlink下cfg文件夾下的config.inc.php文件,查找$g_default_language = 'en_GB';修改為$g_default_language = 'zh_CN';
2)下載utf8版本的strings.txt替換testlink\locale\zh_CN目錄下的strings.txt即可完成漢化
下載網址:http://testlink.5d6d.com/thread-1-1-1.html
3)進入testlink頁面,在菜單欄中的Personal中更改admin默認的語言,選擇“Chinese silmpified”
日期亂碼解決方式:
testlink里面日期會有亂碼,需要修改testlink下cfg文件夾下的const.inc.php文件,修改方法如下:
打開 const.inc.php文件
查找'zh_CN' => "%Y錕斤拷%m錕斤拷%d錕斤拷 %H時%M錕斤拷%S錕斤拷",修改為:'zh_CN' => "%Y-%m-%d %H:%M:%S"
http://sourceforge.net/project/s ... p;release_id=660529 testlink1.7.5下載地址
TestLink 1.7與 Bugfree的整合
TestLink 1.7與 Bugfree的整合
bugfree.cfg.php要放到cfg目錄下
int_bugfree.php要放到 lib\bugtracking目錄下
注意:
1、由于我Bugfree數據庫用的是GB2312,所以在getBugSummaryString函數里我用return iconv("gb2312","utf-8",$summary);把編碼轉換成utf8。如果你的bugfree用得是utf8那么你直接 return $summary;即可。
如果你剛好需要,也可以發郵件給我yfeng.lee@gamil.com,接口文件:
整合辦法按李玉鵬的《TestLink的安裝和及與BugFree的整合》一樣,但是接口文件需要換成最新的。
引用:
TestLink提供了與bugzilla、mantis等工具整合的功能。
我按照TL的接口規則寫了與BugFree整合的程序。
與BugFree整合部分:
1. 修改lib/bugtracking/int_bugtracking.php,將其中的:
$configFiles = array('BUGZILLA' => 'bugzilla.cfg.php',
'MANTIS' => 'mantis.cfg.php',
'JIRA' => 'jira.cfg.php',
);
增加一個值,改為:
$interfaceFiles = array('BUGZILLA' => 'int_bugzilla.php',
'MANTIS' => 'int_mantis.php',
'JIRA' => 'int_jira.php',
'BUGFREE' => 'int_bugfree.php',
);
2. 增加文件:lib/bugtracking/int_bugfree.php、cfg/bugfree.cfg.php(詳見附件TLBugFree)
3. 修改config.inc.php,將define(’TL_INTERFACE_BUGS’, ‘NO’);改為define(’TL_INTERFACE_BUGS’, ‘BUGFREE’);
這樣就將TL與BugFree整合在一起了。在執行測試用例的時候,會發現界面中多了一個問題報告的部分,如圖:
將每次執行失敗后的BugID輸入進去即可,多個bug用”,”格開(如圖中的“2,34”)。點擊“保存結果”后,就可以看到bug的狀態和標題了(如圖中的2:Active - 測試bug)。
在前一陣的使用中,我發現TL的中文本地化文件locale/zh_CN/strings.txt里有些索引不正確,結果導致界面中出現一些硬生生的英文,我就做了相應的修改。
另外TL的css文件主要還是面向西方字符的顯示,所以在顯示中文的時候,有些地方可能不是很美觀,如字體偏小等。針對這種情況,我也對一些css文件進行了修改。
這些修改都放到了附件TLBugFree里,有興趣的同學可以拿去試試。
我在執行測試的界面下仍然沒有問題報告相關內容
按照李的那篇文章,我做了如下修改:
1、int_bugtracking.php中:
原來的
$configFiles = array(
'BUGZILLA' => 'bugzilla.cfg.php',
'MANTIS' => 'mantis.cfg.php',
'JIRA' => 'jira.cfg.php',
'TRACKPLUS' => 'trackplus.cfg.php',
);
//This holds the interface defintion file names for the bugtracking interfaces
//located in the lib/bugtracking diectory
$interfaceFiles = array(
'BUGZILLA' => 'int_bugzilla.php',
'MANTIS' => 'int_mantis.php',
'JIRA' => 'int_jira.php',
'TRACKPLUS' => 'trackplus.cfg.php',
);
改成了
$interfaceFiles = array(
'BUGZILLA' => 'int_bugzilla.php',
'MANTIS' => 'int_mantis.php',
'JIRA' => 'int_jira.php',
'TRACKPLUS' => 'trackplus.cfg.php',
'BUGFREE' => 'int_bugfree.php',
);
其他都注釋掉;
2、copy樓主提供的兩個新文件到相應目錄
3、修改config.inc.php,我的這文件里沒有define(’TL_INTERFACE_BUGS’, ‘NO’);
我將
$g_interface_bugs='NO';
改成了
$g_interface_bugs='BUGFREE';
在laolee和小刀的幫助下搞定了,原來是下載的bugfree.cfg.php沒有按我的實際情況配置。配置好之后就OK了。
另外,我的int_bugtracking.php中的相應內容最終為:
$configFiles = array(
'BUGZILLA' => 'bugzilla.cfg.php',
'MANTIS' => 'mantis.cfg.php',
'JIRA' => 'jira.cfg.php',
'TRACKPLUS' => 'trackplus.cfg.php',
'BUGFREE' => 'bugfree.cfg.php',
);
//This holds the interface defintion file names for the bugtracking interfaces
//located in the lib/bugtracking diectory
$interfaceFiles = array(
'BUGZILLA' => 'int_bugzilla.php',
'MANTIS' => 'int_mantis.php',
'JIRA' => 'int_jira.php',
'TRACKPLUS' => 'trackplus.cfg.php',
'BUGFREE' => 'int_bugfree.php',
);
bugfree.cfg.php要放到cfg目錄下
int_bugfree.php要放到 lib\bugtracking目錄下
注意:
1、由于我Bugfree數據庫用的是GB2312,所以在getBugSummaryString函數里我用return iconv("gb2312","utf-8",$summary);把編碼轉換成utf8。如果你的bugfree用得是utf8那么你直接 return $summary;即可。
如果你剛好需要,也可以發郵件給我yfeng.lee@gamil.com,接口文件:
整合辦法按李玉鵬的《TestLink的安裝和及與BugFree的整合》一樣,但是接口文件需要換成最新的。
引用:
TestLink提供了與bugzilla、mantis等工具整合的功能。
我按照TL的接口規則寫了與BugFree整合的程序。
與BugFree整合部分:
1. 修改lib/bugtracking/int_bugtracking.php,將其中的:
$configFiles = array('BUGZILLA' => 'bugzilla.cfg.php',
'MANTIS' => 'mantis.cfg.php',
'JIRA' => 'jira.cfg.php',
);
增加一個值,改為:
$interfaceFiles = array('BUGZILLA' => 'int_bugzilla.php',
'MANTIS' => 'int_mantis.php',
'JIRA' => 'int_jira.php',
'BUGFREE' => 'int_bugfree.php',
);
2. 增加文件:lib/bugtracking/int_bugfree.php、cfg/bugfree.cfg.php(詳見附件TLBugFree)
3. 修改config.inc.php,將define(’TL_INTERFACE_BUGS’, ‘NO’);改為define(’TL_INTERFACE_BUGS’, ‘BUGFREE’);
這樣就將TL與BugFree整合在一起了。在執行測試用例的時候,會發現界面中多了一個問題報告的部分,如圖:
將每次執行失敗后的BugID輸入進去即可,多個bug用”,”格開(如圖中的“2,34”)。點擊“保存結果”后,就可以看到bug的狀態和標題了(如圖中的2:Active - 測試bug)。
在前一陣的使用中,我發現TL的中文本地化文件locale/zh_CN/strings.txt里有些索引不正確,結果導致界面中出現一些硬生生的英文,我就做了相應的修改。
另外TL的css文件主要還是面向西方字符的顯示,所以在顯示中文的時候,有些地方可能不是很美觀,如字體偏小等。針對這種情況,我也對一些css文件進行了修改。
這些修改都放到了附件TLBugFree里,有興趣的同學可以拿去試試。
我在執行測試的界面下仍然沒有問題報告相關內容
按照李的那篇文章,我做了如下修改:
1、int_bugtracking.php中:
原來的
$configFiles = array(
'BUGZILLA' => 'bugzilla.cfg.php',
'MANTIS' => 'mantis.cfg.php',
'JIRA' => 'jira.cfg.php',
'TRACKPLUS' => 'trackplus.cfg.php',
);
//This holds the interface defintion file names for the bugtracking interfaces
//located in the lib/bugtracking diectory
$interfaceFiles = array(
'BUGZILLA' => 'int_bugzilla.php',
'MANTIS' => 'int_mantis.php',
'JIRA' => 'int_jira.php',
'TRACKPLUS' => 'trackplus.cfg.php',
);
改成了
$interfaceFiles = array(
'BUGZILLA' => 'int_bugzilla.php',
'MANTIS' => 'int_mantis.php',
'JIRA' => 'int_jira.php',
'TRACKPLUS' => 'trackplus.cfg.php',
'BUGFREE' => 'int_bugfree.php',
);
其他都注釋掉;
2、copy樓主提供的兩個新文件到相應目錄
3、修改config.inc.php,我的這文件里沒有define(’TL_INTERFACE_BUGS’, ‘NO’);
我將
$g_interface_bugs='NO';
改成了
$g_interface_bugs='BUGFREE';
在laolee和小刀的幫助下搞定了,原來是下載的bugfree.cfg.php沒有按我的實際情況配置。配置好之后就OK了。
另外,我的int_bugtracking.php中的相應內容最終為:
$configFiles = array(
'BUGZILLA' => 'bugzilla.cfg.php',
'MANTIS' => 'mantis.cfg.php',
'JIRA' => 'jira.cfg.php',
'TRACKPLUS' => 'trackplus.cfg.php',
'BUGFREE' => 'bugfree.cfg.php',
);
//This holds the interface defintion file names for the bugtracking interfaces
//located in the lib/bugtracking diectory
$interfaceFiles = array(
'BUGZILLA' => 'int_bugzilla.php',
'MANTIS' => 'int_mantis.php',
'JIRA' => 'int_jira.php',
'TRACKPLUS' => 'trackplus.cfg.php',
'BUGFREE' => 'int_bugfree.php',
);
延伸閱讀
文章來源于領測軟件測試網 http://www.anti-gravitydesign.com/