How to setup bugtracking system integration
Mantis and Bugzilla examples
Date
20071123
20070728
Author
Notes
Francisco Mancardi Bugzilla example
Francisco Mancardi Initial version
Overview...................................................................................................................................
Configuration example - Mantis.....................................................................................................
Environment............................................................................................................................
Step 1 – Mantis Configuration....................................................................................................
Step 2 – Test Link – Configure Mantis interface............................................................................
Step 3 – Test Link - Enable BTS integration..................................................................................
Configuration example - Bugzilla...................................................................................................
Environment............................................................................................................................
Step 1 – Test Link – Configure Mantis interface............................................................................
Step 2 – Test Link - Enable BTS integration..................................................................................
Screenshoots.............................................................................................................................
1
2
2
2
2
3
4
4
4
4
5
Overview
The integration between Test Link 1.7 and a Bug Tracking System (BTS) has the following characteristics •
•
All communication between Test Link and the BTS is done through database tables.
Testlink (at the time of this writing) is neither able to send data to the BTS, either able to receive data from the BTS, in the traditional model of function call.
After all the configuration is up and running, from a testlink user point of view the process will be:
1.
2.
3.
4.
5.
6.
7.
While executing a test, it fails.
User saves execution result.
On the table displaying execution results data, an icon to access BTS feature will be available.
User clicks on link that opens BTS web page used for issue reporting.
After issue reporting, user has to take note of issue ID assigned by BTS, to input it into Testlink.
User returns to Testlink test execution page, and writes the issue ID in the bug input.
After user saves the execution, Testlink will display data taken from the BTS database.
tl-bts-howto.odt
Francisco Mancardi
Pagina 1 di 1
Configuration example - Mantis
This configuration is valid for Test Link 1.7.0 or greater.
Environment
• Testlink and Mantis installed on the same webserver
Mantis URL
Test Link URL
Mantis Database name
MySQL user/password to access Mantis DB
anonymous login into mantis has to be turned on. a mantis user with viewer rights to all public projects, must be created. (anonymous account)
Change/add following lines in your mantis config_inc.php (replace dummy with the anonymous account you will use)
# --- anonymous login ----------# Allow anonymous login
$g_allow_anonymous_login = ON;
$g_anonymous_account = 'dummy';
Step 2 – Test Link – Configure Mantis interface
Edit file <your testlink main directory>/cfg/mantis.cfg.php.
/** The DB host to use when connecting to the mantis db */ define('BUG_TRACK_DB_HOST', 'calypso');
/** The name of the database that contains the mantis tables */ define('BUG_TRACK_DB_NAME', 'mantis_bt');
/** The DB type being used by mantis */ define('BUG_TRACK_DB_USER', 'mantis_bt_user');
/** The DB password to use for connecting to the mantis db */ define('BUG_TRACK_DB_PASS', 'mantis_bt_password');
/** link to the bugtracking