51Testing软件测试网)LwT$l@'D前提条件:
;yZM!["Qr8G01.51Testing软件测试网:f2fFQ+_
Bugzilla安装完成51Testing软件测试网Y7e)yb@&gQ
2.
4k/K(b8B+f-JQ4_}W0如果是bugzilla和testlink不在同一服务器,需要远程访问bugzilla数据库的帐户
\4v|F6@Y0集成配置:
pZx(C8m01.
s1y*m~Y0打开testlink下config.inc.php文件
j8tt%MpN,@0查找$g_interface_bugs='NO';
{#k#|:N6Mf)F;wgY0修改为$g_interface_bugs='BUGZILLA';
j3K$z_Deb0注意:一定要大写BUGZILL51Testing软件测试网g6B w^9Jw;H`*`
2.
M7[!i#I2f DK0打开testlink下cfg文件夹下的bugzilla.cfg.php文件夹,做如下修改51Testing软件测试网:p&T v&c]
(QAY4JQ(^ T$lt0//Set the bug tracking system Interface51Testing软件测试网-I0T8rFHa0i}Y
/** The DB host to use when connecting to the Bugzilla db */
f AE
_t7?r})e0define('BUG_TRACK_DB_HOST', '192.168.0.77');51Testing软件测试网%@XSl|u `t
说明:安装bugzilla的服务器地址51Testing软件测试网/f+d'^#zfR*sJOM y;K
/** The name of the database that contains the Bugzilla tables */
N ZR D%lyN0define('BUG_TRACK_DB_NAME', 'bugs');51Testing软件测试网(d3y3K+H#G5sSZv)Q(ZIJ
说明:bugzilla的数据库名称
0yARH-`#I
R)r0/** The DB type being used by Bugzilla */
O2J3ny)GO"k6`q
q0define('BUG_TRACK_DB_USER', 'bugs');51Testing软件测试网r'X"M?VIS y){
说明:访问bugzilla数据库的帐户
c0G's6v;zD0/** The DB password to use for connecting to the Bugzilla db */
5Z6[yG[%Ofm0define('BUG_TRACK_DB_PASS', 'bugs');51Testing软件测试网
UdG
Bp#e5V
C
说明:访问bugzilla数据库的密码51Testing软件测试网)K,PJ4m/e]p/U
/** The DB type to use for connecting to the bugtracking db */
5v }e;d:e;p
Mx0define('BUG_TRACK_DB_TYPE', 'mysql');51Testing软件测试网~/X?[2gI0v
/** link of the web server */51Testing软件测试网$F,P4kF_^Gs;D
define('BUG_TRACK_HREF', "http://192.168.0.77/cgi-bin/index.cgi/show_bug.cgi?id=");51Testing软件测试网
qB8cY*_}1u)q3QX(^
说明:bugzilla访问地址+/show_bug.cgi?id=
3f[ CPA:P0/** link to the bugtracking system, for entering new bugs */51Testing软件测试网Xc6{e$d|
define('BUG_TRACK_ENTER_BUG_HREF',"http://192.168.0.77/cgi-bin/index.cgi/");51Testing软件测试网qA5?0tq?~dvg
说明:bugzilla访问地址
!U` N3]9X I)tV4B0?>51Testing软件测试网'Kr4\9rC0I
51Testing软件测试网S1F+tV/j t I7Y注意:以上标记为“说明”的是我自己增加的说明性文字。51Testing软件测试网VlBO6k9{X"k
i
修改完成后,如果bugzilla可以访问到,则在testlink下,执行测试的时候,每个执行结果记录后,都会有一个小虫子标记,如果某个测试用例执行失败,在bugzilla提交相关bug后,在testlink中点击该小虫子标记,可以填写bugzilla中的bug号。然后,会在执行结果中显示该bug号,点击bug号,则可以直接链接到bugzilla中提交的bug。51Testing软件测试网:MC[h9`G$lq
注意:testlink使用方法不在这里说明。
v"z5J8dV0