Bugzilla & Testlink Integration

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
nader
TestLink user
Posts: 7
Joined: Tue Jul 06, 2010 7:18 am

Bugzilla & Testlink Integration

Post by nader »

Hi, I am new to testlink and bugzilla and need help.

I have downloaded the testlink package which comes along with xampp, bugzilla, mantis, ...

I already have xampp installed so i just copy/paste testlink and bugzilla folder to my htdocs. Going through the following instructions, still not able to integreate both:

Bugzilla URL http://localhost/bugzilla
Test Link URL http://localhost/testlink
Bugzilla Database name: bugs (will it be created automatically?)
MySQL user/password to access Mantis DB: bugzilla_user (will it be created automatically?)

Edit file /cfg/bugzilla.cfg.php. :

define('BUG_TRACK_DB_HOST', 'localhost');
define('BUG_TRACK_DB_NAME', 'bugs');
define('BUG_TRACK_DB_USER', 'bugzilla_user');
define('BUG_TRACK_DB_PASS', 'bugzilla');
/** link to the bugtracking system, for viewing bugs */
define('BUG_TRACK_HREF', "http://localhost/bugzilla/show_bug.cgi?id=");
/** link to the bugtracking system, for entering new bugs */
define('BUG_TRACK_ENTER_BUG_HREF',"http://localhost/bugzilla/");

On custom_config.inc.php create line:
$g_interface_bugs='BUGZILLA';


Well, just followed step by step the instructions in testlink how-to-do doc. More, I dont know whether I have to install bugzilla in any way b4 doing all this or just copy/paste it in the same htdoc with testlink is good enough.

Would appreciate swift responses.

Nsk
twelve
TestLink user
Posts: 10
Joined: Thu May 20, 2010 2:59 pm

Re: Bugzilla & Testlink Integration

Post by twelve »

Bugzilla is a web application for bug tracking. It is written in Perl, runs on a webserver and stores its data in a database.
To integrate Testlink with Bugzilla you must have a running Testlink installation and a running Bugzilla installation. If you don't have a working Bugzilla you obviously cannot integrate it into anything.

* So, first setup Testlink and make sure it works on its own.
* Then setup Bugzilla and make sure it works on its own. If you don't know how to install Bugzilla have a look at the Bugzilla website or search for tutorials around the web. Also the Testlink XAMPP package already includes a working Bugzilla.
* Then follow the integration steps by modifying cfg/bugzilla.cfg.php:

Code: Select all

/** DB host to use when connecting to the Bugzilla db */
define('BUG_TRACK_DB_HOST', 'name of your mysql server');

/** name of the database that contains the Bugzilla tables */
define('BUG_TRACK_DB_NAME', 'name of your bugzilla database');

/** charset of the database that contains the Bugzilla tables */
define('BUG_TRACK_DB_CHARSET', 'UTF-8');

/** DB type used for the bugtracking db */
define('BUG_TRACK_DB_TYPE','mysql');

/** DB user and password to use for connecting to the Bugzilla db */
define('BUG_TRACK_DB_USER', 'mysql account who has access to the bugzilla database');
define('BUG_TRACK_DB_PASS', 'password of this account');

/** link of the web server */
define('BUG_TRACK_HREF', "http://yourwebserver/cgi-bin/bugzilla/show_bug.cgi?id=");

/** link to the bugtracking system, for entering new bugs */
define('BUG_TRACK_ENTER_BUG_HREF',"http://yourwebserver/cgi-bin/bugzilla/enter_bug.cgi");
...and custom_config.inc.php:

Code: Select all

$g_interface_bugs='BUGZILLA';
nader
TestLink user
Posts: 7
Joined: Tue Jul 06, 2010 7:18 am

Re: Bugzilla & Testlink Integration

Post by nader »

Thanks alot for your reply.

Well, seems like I am having a hard time installing bugzilla then. I want to install bugzilla from the one included in testlink package 1.8. I already have perl installed and activated by default in xampp. No idea on how to make it work.

Can help with bugzilla?

nsk
nader
TestLink user
Posts: 7
Joined: Tue Jul 06, 2010 7:18 am

Re: Bugzilla & Testlink Integration

Post by nader »

I have tried to do integrate testlink with bugzilla on my friends machine (he has bugzilla and testlink both installed and working previously) and I managed to see the bug icon on execution of a failed test case. BUT, on click that icon, it throws the following error:

Fatal error: Call to a member function getEnterBugURL() on a non-object in .../htdocs/testlink/lib/execute/bugAdd.php on line 42

Can anyone help?

nsk
Locked