TestLink和Bugzilla的配置

来源:互联网 发布:电脑 双肩包 女 知乎 编辑:程序博客网 时间:2024/06/03 11:19

TestLink和Bugzilla的配置

分类: Test/QA2009-06-20 20:42 1048人阅读 评论(2) 收藏 举报

上周在自己的Windows 7上配上了TestLink和Bugzilla,之前,发现网上有好多讨论Bugzilla的配置问题,主要是perl模块和Email配置,其实很简单,只不过大部分人对Perl和CGI很陌生。关键是Bugzilla两个文件的配置一个是localconfig文件主要配置数据库参数,一个是data/params主要用来配置web server和smtp server。当然这两个工具都少不了apache的简单配置,有时间我会把所有配置文件的详细配置参数贴上来。

 

其实遇到困难除了依靠网络,主要还是自己的耐心分析。

 

今天把TestLink 和 Bugzilla整合的配置贴上来,希望对其他人有些帮助,也为了做一个记录。

我把安装分为三个大部分:TestLink安装配置、Bugzilla安装配置、整合TestLink&Bugzilla。

 

 

1. Set up & configure TestLink

1)Set up & Configure MySQL

2)Set up Apache Server

3)Set up PHP engine

4) Modify C:/Windows/php.ini

doc_root = "D:/Apache2.2/htdocs"

extension_dir = "D:/PHP/ext"

cgi.force_redirect = 0

extension=php_gd2.dll

extension=php_mysql.dll

extension=php_mysqli.dll

mysql.default_port = 3305

mysql.default_host = localhost

mysql.default_user = root

mysql.default_password = jiapu123

mysqli.default_port = 3305

mysqli.default_host = localhost

mysqli.default_pw = jiapu123

(Copy all *.dll files to C:/Windows from D:/PHP)

5) Modify D:/Apache2.2/conf/httpd.conf

LoadModule php5_module "D:/PHP/php5apache2_2.dll"

AddType application/x-httpd-php .php

6) Copy testlink to D:/Apache2.2/htdocs/

8) Run testlink install script

http://localhost:80/testlink/install/index.php

7) Modify D:/Apache2.2/htdocs/testlink/config.inc.php

//$tlCfg->config_check_warning_mode = 'FILE';

$tlCfg->config_check_warning_mode = 'SILENT';

 

2.  Set up & configure bugzilla.

1)  Set up & configure DataBase(MySQL has already set up);

2)  Set up & configure Web Server(Apache has already set up);

3)  Set up ActivePerl;

4)  Download bugzilla and copy to D:/Apache2.2/htdocs;

5)  Run checksetup.pl in command line using:

D:/Apache2.2/htdocs/bugzilla>perl checksetup.pl

Then you will be given some notes, such as:

* NOTE: You must run any commands listed below as Administrator.

COMMANDS:

    ppm install Chart

   ppm install XML-Twig

    ppm install MIME-tools

   ppm install PatchReader

    ppm install perl-ldap

    ppm install Authen-SASL

        ppm install RadiusPerl

       ppm install HTML-Scrubber

       ppm install Email-MIME-Attachment-Stripper

       ppm install Email-Reply

       ppm install DBD-mysql

6)  Run checksetup.pl again to create admin user to bugzilla;

7)  Configure localconfig(mainly is DataBase) for buzilla:

$webservergroup = 'daemon';

$db_driver = 'mysql';

$db_host = 'localhost';

$db_name = 'bugzilla';

$db_user = 'jiapu';

$db_pass = 'jiapu';

$db_port = 3305;

$db_check = 1;

$index_html = 1;

8)  Run checksetup.pl the third time to finish setting up bugzilla;

9)  Configure D:/Apache2.2/conf/httpd.conf for bugzilla, such as: webserver and perl module

LoadModule cgi_module modules/mod_cgi.so

Group daemon

Options Indexes FollowSymLinks ExecCGI

AllowOverride All

ScriptInterpreterSource Registry-Strict

DirectoryIndex index.html index.php index.cgi

ScriptAlias /cgi-bin/ "D:/Apache2.2/cgi-bin/"

AddHandler cgi-script .cgi

<Directory D:/Apache2.2/htdocs/bugzilla>

AddHandler cgi-script .cgi

Options +Indexes +ExecCGI

DirectoryIndex index.cgi

AllowOverride Limit

</Directory>

10) Modify Registration table, Create a new item:HKEY_CLASSES_ROOT/.cgi/Shell/ExecCGI/Command, Modify the default Value data: d:/Perl/bin/perl.exe –T

11) Configure SMTP server in params from the file:       D:/Apache2.2/htdocs/bugzilla/data/

'mail_delivery_method' => 'SMTP',

'mailfrom' => 'chxd99@163.com',

'maintainer' => 'jchen@jiapu.com',

'shadowdbhost' => 'localhost',

'shadowdbport' => '3305',

'smtp_password' => '******',

'smtp_username' => 'chxd99',

'smtpserver' => 'smtp.163.com',

'urlbase' => 'http://192.168.1.131/bugzilla/',

12) Restart apache, visit http://192.168.1.131/bugzilla/

3.  Combine Bugzilla with TestLink

1)  Configure config.inc.php in D:/Apache2.2/htdocs/testlink:

/** [Bug Tracking systems] */

$g_interface_bugs = 'BUGZILLA';

2)  Configure bugzilla.cfg.php in D:/Apache2.2/htdocs/testlink/cfg:

define('BUG_TRACK_DB_HOST', 'localhost');

define('BUG_TRACK_DB_NAME', 'bugzilla');

define('BUG_TRACK_DB_CHARSET', 'UTF-8');

define('BUG_TRACK_DB_TYPE','mysql');

define('BUG_TRACK_DB_USER', 'jiapu');

define('BUG_TRACK_DB_PASS', 'jiapu');

define('BUG_TRACK_HREF', "http://192.168.1.131/bugzilla/show_bug.cgi?id=");

define('BUG_TRACK_ENTER_BUG_HREF',"http://192.168.1.131/bugzilla/");

 

     至此就安装配置完毕,有人在论坛上问,怎么知道这两个工具整合到一起了?首先需要参照TestLink 和 Bugzilla的user's Guid,好好练习,当在TestLink中执行一个TestCase并且这个Case failed时,就可以链接到Bugzilla添加Bug了。

原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 3d模型加载错误,怎么办 橡皮树长得太高怎么办 金钻的叶子下垂怎么办 水养竹子烂根怎么办 散尾竹叶尖干枯怎么办 眼睛看不清东西视线模糊怎么办 棒球服领子松垮怎么办 裱水彩纸崩了怎么办 裱水彩纸皱起来怎么办 冬天皮肤的皴了怎么办 六个月宝宝皴脸怎么办 婴儿冬天脸裂了怎么办 手裂了怎么办 小妙招 幼儿园孩子不爱写作业怎么办 2岁宝淘气不听话怎么办 2岁宝宝太调皮怎么办 ae视频加载的慢怎么办 我想你了怎么办表情包 腰闪了不能弯腰怎么办 13岁驼背怎么办才能好 脸僵硬笑不出来怎么办 素描排线太乱了怎么办 4岁小儿不爱吃饭怎么办 僵尸农场下架了怎么办 乐视倒闭了手机怎么办 小孩笑起来嘴歪怎么办 小孩嘴歪了怎么办啊 头发长洗头掉发怎么办 头痒又掉头发怎么办 头皮痒而且掉发怎么办 掉一片头发头痒怎么办 头头发掉的厉害怎么办 掉发严重怎么办吃什么 18岁脱发严重该怎么办 高三学生掉头发怎么办 20岁一直掉头发怎么办 孩子掉头发很厉害怎么办 6岁掉头发正常怎么办 掉头发严重怎么办知乎 20岁有白头发怎么办 20岁掉头发很厉害怎么办