Faire le lien entre testlink et mantis
Rédigé par Dominique Mereaux le 27 avril 2012
Il est possible de faire le lien entre Testlink et Mantis. Vous pourrez ainsi enrichir vos rapports de test.
Côté Mantis : Modifier le fichier config_inc.php :
Création d’un compte anonyme
# --- anonymous login -----------
# Allow anonymous login
$g_allow_anonymous_login = ON;
$g_anonymous_account = 'dummy';
Remplacer dummy par un compte que vous aurez créé avec accès en lecture à tous les projets.
Ce compte permettra de se connecter comme invité à Mantis et limite ainsi les accès.
Configurer l’interface Mantis côté testlink :
Wamp → repertoire htdocs/Testlink/cfg : Modifier le fichier mantis.cfg.php:
/** The DB host to use when connecting to the mantis db */
define('BUG_TRACK_DB_HOST', 'localhost');
/** The name of the database that contains the mantis tables */
define('BUG_TRACK_DB_NAME', 'bugtracker');
/** The DB type being used by mantis */
define('BUG_TRACK_DB_USER', root');
/** The DB password to use for connecting to the mantis db */
define('BUG_TRACK_DB_PASS', 'root');
/** link to the bugtracking system, for viewing bugs */
define('BUG_TRACK_HREF', "http://localhost:8888/mantis/view.php?id=");
/** link to the bugtracking system, for entering new bugs */
define('BUG_TRACK_ENTER_BUG_HREF',"http://localhost:8888/mantis/");
Intégrer Mantis
Copier les lignes suivantes de config.inc.php vers custom_config.inc.php :
$g_interface_bugs = 'NO';
→ $g_interface_bugs = 'MANTIS';
Exécution d’un test :

→ Sous Mantis créer une anomalie et utiliser l’identifiant de l’anomalie pour faire le lien :

Le lien est ajouté :

Si vous cliquez sur l'anomalie vous êtes automatiquement redirigé vers Mantis.
Classé dans : Outil de test - Mots clés : aucun
4 commentaires