软件测试


网站首页 | 软件测试论坛 | 软件测试培训 | 软件测试博客 | 软件测试杂志 | 软件测试沙龙 | 软件测试下载 | 软件测试顾问
业界新闻 | 软件测试人才 | 软件测试技术 | 软件测试工具 | 行业软件测试 | 软件测试管理 | 软件质量专栏 | 软件开发专栏
当前位置:首页>>软件测试工具>>开源工具>>正文
win2000下安装bugzilla心得(四)
文章出处:51testing博客 作者:娟子 发布时间:2006-09-18

四、安装bugzilla

    其实这一步不叫安装的,将你下的bugzilla解压缩到一个文件夹里,我放到了c:\根目录下。进入到DOS环境,运行命令:perl checksetup.pl   它会检查你有没有将所有的Modules安装成功,安装不成功的Modules会提示no found.。出现以下界面证明已安装成功:

C:\>cd bugzilla
C:\bugzilla>perl checksetup.pl 
Checking perl modules ...
Checking for       AppConfig (v1.52)   ok: found v1.55
Checking for             CGI (v2.93)   ok: found v3.10
Checking for    Data::Dumper (any)     ok: found v2.121_04
Checking for    Date::Format (v2.21)   ok: found v2.22
Checking for             DBI (v1.38)   ok: found v1.48
Checking for      File::Spec (v0.84)   ok: found v3.05
Checking for      File::Temp (any)     ok: found v0.16
Checking for        Template (v2.08)   ok: found v2.13
Checking for      Text::Wrap (v2001.0131) ok: found v2001.09293
Checking for    Mail::Mailer (v1.65)   ok: found v1.67
Checking for        Storable (any)     ok: found v2.13
The following Perl modules are optional:
Checking for              GD (v1.20)   ok: found v2.16
Checking for     Chart::Base (v1.0)    ok: found v2.3
Checking for     XML::Parser (any)     ok: found v2.34
Checking for       GD::Graph (any)     ok: found v1.43
Checking for GD::Text::Align (any)     ok: found v1.18
Checking for     PatchReader (v0.9.4)  ok: found v0.9.5
Most ActivePerl modules are available at Apache's ppm repository.
A list of mirrors is available at
    http://www.apache.org/dyn/closer.cgi/perl/win32-bin/ppms/
You can add the repository with the following command:
    ppm rep add apache http://www.apache.org/dist/perl/win32-bin/ppms/
Checking user setup ...
This version of Bugzilla contains some variables that you may want
to change and adapt to your local settings. Please edit the file
'./localconfig' and rerun checksetup.pl
The following variables are new to localconfig since you last ran
checksetup.pl:   index_html cvsbin interdiffbin diffpath create_htaccess
webservergroup db_driver db_host db_pass db_sock db_check
C:\bugzilla>

2、接下来,在bugzilla的目录下打开localconfig文件,找到以下几行并修改蓝色字体的内:

#
# How to access the SQL database:
#
$db_host = "localhost";         # where is the database?
$db_port = 3306;                # which port to use
$db_name = "bugs";              # name of the MySQL database
$db_user = "bugs";              # user to attach to the MySQL database
#
# Enter your database password here. It's normally advisable to specify
# a password for your bugzilla database user.
# If you use apostrophe (') or a backslash (\) in your password, you'll
# need to escape it by preceding it with a \ character. (\') or (\\)
#
$db_pass = 'sockmonkey';

 

3、保存以后再次运行checksetup.pl。出现以下内容:别忘了记下输入的管理员的帐号和密码做为第一次登陆的用户和密码。

 

C:\bugzilla>perl checksetup.pl
Checking perl modules ...
Checking for       AppConfig (v1.52)   ok: found v1.55
Checking for             CGI (v2.93)   ok: found v3.10
Checking for    Data::Dumper (any)     ok: found v2.121_04
Checking for    Date::Format (v2.21)   ok: found v2.22
Checking for             DBI (v1.38)   ok: found v1.48
Checking for      File::Spec (v0.84)   ok: found v3.05
Checking for      File::Temp (any)     ok: found v0.16
Checking for        Template (v2.08)   ok: found v2.13
Checking for      Text::Wrap (v2001.0131) ok: found v2001.09293
Checking for    Mail::Mailer (v1.65)   ok: found v1.67
Checking for        Storable (any)     ok: found v2.13
The following Perl modules are optional:
Checking for              GD (v1.20)   ok: found v2.16
Checking for     Chart::Base (v1.0)    ok: found v2.3
Checking for     XML::Parser (any)     ok: found v2.34
Checking for       GD::Graph (any)     ok: found v1.43
Checking for GD::Text::Align (any)     ok: found v1.18
Checking for     PatchReader (v0.9.4)  ok: found v0.9.5
Most ActivePerl modules are available at Apache's ppm repository.
A list of mirrors is available at
    http://www.apache.org/dyn/closer.cgi/perl/win32-bin/ppms/
You can add the repository with the following command:
    ppm rep add apache http://www.apache.org/dist/perl/win32-bin/ppms/
Checking user setup ...
Creating data directory (./data) ...
Creating graphs directory...
Creating .htaccess...
Creating Bugzilla/.htaccess...
Creating ./data/.htaccess...
Creating ./template/.htaccess...
Creating ./data/webdot/.htaccess...
Precompiling templates ...
Checking for    MySQL Server (v3.23.41) ok: found v4.0.20a-debug
Creating table user_group_map ...
Creating table series_data ...
Creating table longdescs ...
Creating table dependencies ...
Creating table components ...
Creating table keywords ...
Creating table cc ...
Creating table duplicates ...
Creating table groups ...
Creating table flagtypes ...
Creating table profiles ...
Creating table products ...
Creating table bugs_activity ...
Creating table series_categories ...
Creating table keyworddefs ...
Creating table fielddefs ...
Creating table group_control_map ...
Creating table profiles_activity ...
Creating table group_group_map ...
Creating table user_series_map ...
Creating table bugs ...
Creating table series ...
Creating table versions ...
Creating table flagexclusions ...
Creating table logincookies ...
Creating table watch ...
Creating table bug_group_map ...
Creating table votes ...
Creating table attachments ...
Creating table flags ...
Creating table milestones ...
Creating table tokens ...
Creating table flaginclusions ...
Creating table quips ...
Creating table namedqueries ...
Creating initial dummy product 'TestProduct' ...
Populating duplicates table...
Creating duplicates directory...
Migrating old chart data into database ...
Adding group tweakparams ...
Adding group editusers ...
Adding group creategroups ...
Adding group editcomponents ...
Adding group editkeywords ...
Adding group admin ...
Adding group editbugs ...
Adding group canconfirm ...
Looks like we don't have an administrator set up yet.  Either this is your
first time using Bugzilla, or your administrator's privileges might have
accidently been deleted.
Enter the e-mail address of the administrator: byron@example.com (此将是默认超级用户)
You entered 'byron@example.com'.  Is this correct? [Y/n] y
Enter the real name of the administrator: Byron Jones
Enter a password for the administrator account: beef
Please retype the password to verify: beef
'byron@example.com' is now set up as an administrator account.
C:\bugzilla>

OK,到此,bugzilla已安装完毕,接下来最后一步是配置邮箱了。

五、配置邮箱。

由于bugzilla已经提供了内置的SMTP支持,如果是局域网内用的话只要安装一个windows 下的sendmail.exe,文件,将此文件放到和你的bugzilla同一目录下即可。如果发到其它邮件服务器中,可能还需要设置bugmail里的内容,(由于我是在局域网下配置的,这种方法没有试,请见谅)具体请参见bugzila的官方网站:http://www.bugzilla.org

 六、登陆bugzilla

    到这里,Bugzilla的安装就基本上搞定了。在IE浏览器地址栏里输入:http://localhost/  登陆bugzilla,至此你就能使用等待以久的bugzill缺陷跟踪体系统了。经过漫长的安装过程,如果能和你共同分享成功的喜悦,可以给我留言哦,我的blog是:http://blog.51testing.com/chorry/  打开登陆界面后,使用你输入的邮箱和密码就可以登陆了

七、最后就是汉化bugzilla

不过你不想汉化也没有问题。将汉化包解压解压到cn文件夹,将整个文件目录 cn 拷贝至 Bugzilla 的子目录 template下;然后以管理员身份登录Bugzilla,点击页脚的 Parameters(系统参数设置)链接,将 languages 一项的值改为 cn,保存,则以后见到的Bugzilla页面就是汉语页面了。如果想返回英文界面,将 cn 改回 en 即可。

为保证向后兼容,汉化的文件全部存为 UTF-8 格式。但不管你是否汉化Bugzilla,为强迫Bugzilla采用UTF-8来处理字符串,避免Bugzilla偶然出现的乱码,强烈建议大家将文件 安装目录>\Bugzilla\CGI.pm 的第55行改为 $self->charset('UTF-8')

汉化包的具体下载你可以在http://bugzilla.org/download.html 里找到相应的bugzilla汉化包。

 

 八、一些bugzilla的参考网站

Bugzilla官方网站           http://www.bugzilla.org

Bugzilla汉化项目           http://sourceforge.net/projects/bugzilla-cn

http://cosoft.org.cn/projects/bugzillchinese/

Perl官方网站                  http://www.perl.com

ActivePerl官方网站       http://www.activestate.com/Products/ActivePerl

MySQL官方网站           http://www.mysql.com

Fake Sendmait for Windows       http://www.glob.com.au/sendmail/

Installing Bugzilla on Microsoft Windows

http://www.bugzilla.org/docs/win32install.html

 The Bugzilla Guide             http://www.bugzilla.org/docs/2.20/html

  Bugzilla windows安装红宝书       http://blog.fz0132.com/trackback.asp?tbID=654

 

 

相关连接:
win2000下安装配置bugzilla心得(一)
Win2000下安装bugzilla心得(二)

win2000下安装bugzilla心得(三)


 
此文来自51testing博客,转载请注明出处:blog.51testing.com

 


站内搜索
相关文章
◎win2000下安装bugzilla心得(三)
◎Win2000下安装bugzilla心得(二)
◎win2000下安装配置bugzilla心得(一)
◎TSqlUnit
◎用Cobertura测量测试覆盖率
◎常用的Java测试工具列表
◎整理的一些开源测试工具
◎Java开源测试工具汇总
◎开放源代码的软件测试工具
◎Optimizeit Thread Debugger概览
◎开源软件测试模型
◎XP 单元测试工具Junit 源代码学习
◎CppUnit测试框架入门(2)
◎CppUnit测试框架入门(1)
◎怎样使用Junit Framework进行单元测试的编写
◎Ant全攻略
◎JUnit 4 抢先看
◎Delphi单元测试工具Dunit介绍
◎StressMark压力测试工具
◎wsCaller通用客户端和测试工具
◎T-Plan测试过程管理工具
◎开源软件Mantis实施缺陷跟踪
◎使用JMeter进行性能测试
◎用Cactus来测试J2ee应用
◎QESatJava白盒测试工具
◎开源测试工具——功能测试工具
热门文章
◎开放源代码的软件测试工具
◎使用JMeter进行性能测试
◎整理的一些开源测试工具
◎CppUnit测试框架入门(1)
◎Java开源测试工具汇总
◎常用的Java测试工具列表
◎开源测试工具——功能测试工具
◎CppUnit测试框架入门(2)
◎Ant全攻略
◎Delphi单元测试工具Dunit介绍
◎StressMark压力测试工具
◎XP 单元测试工具Junit 源代码学习
◎开源软件Mantis实施缺陷跟踪
◎开源软件测试模型
◎JUnit 4 抢先看
◎T-Plan测试过程管理工具
◎win2000下安装配置bugzilla心得(一)
◎用Cobertura测量测试覆盖率
◎Win2000下安装bugzilla心得(二)
◎QESatJava白盒测试工具
◎怎样使用Junit Framework进行单元测试的编写
◎Optimizeit Thread Debugger概览
◎开源测试工具的完整解决方案
◎win2000下安装bugzilla心得(三)
◎检测3D游戏速度的软件FRAPS
◎用Cactus来测试J2ee应用
◎Linux下的CppUnit 的HelloWorld手记
◎wsCaller通用客户端和测试工具
◎Apache JMeter简介
◎如何解决使用JMeter时遇到的问题
◎TSqlUnit
◎TestLink的安装和及与BugFree的整合
◎基于windows的TestLink1.6.2安装

Google提供的广告