TestLink and Trac
Moderators: Amaradana, TurboPT, TL Developers
hi.
ok I kind of solve the problem myself.
my username and password in config_db.inc.php was the same as the one i choose as login for testlink. Instead i changed it to the root-login for my MYSQL server. But everytime i tried to add a bug, it tells me that the bug doesnt exists. I tried to take away xmlprc-plugin and got this error in testlink:
Error: Ticket #1 is not registered in Trac. - Error: Ticket #1 is not registered in Trac.
The error-message is a link to:
http://127.0.0.1:8080/trac/ticket/1
and that is the right place for my tickets!
why can't testlink find it? Is there any kind of authorization-problem?
ok I kind of solve the problem myself.
my username and password in config_db.inc.php was the same as the one i choose as login for testlink. Instead i changed it to the root-login for my MYSQL server. But everytime i tried to add a bug, it tells me that the bug doesnt exists. I tried to take away xmlprc-plugin and got this error in testlink:
Error: Ticket #1 is not registered in Trac. - Error: Ticket #1 is not registered in Trac.
The error-message is a link to:
http://127.0.0.1:8080/trac/ticket/1
and that is the right place for my tickets!
why can't testlink find it? Is there any kind of authorization-problem?
is there a way to test that the xmlrpc plugin is working... you could try looking for help here http://trac-hacks.org/wiki/XmlRpcPlugin.
I havent tried but i read that you should be able to access it from http://yoursite/trac/<username>/login/xmlrpc
and this one for anonymous login which is what is required for testlink.
http://yoursite/trac/xmlrpc
one of our developers uses eclipse which communicate to trac with the xmlplugin. if that works then you know the plugin is working... more info here. http://www.eclipse.org/mylyn/
ill have a look next week at your trac config in testlink... and post mine so you can maybe try something else..
I havent tried but i read that you should be able to access it from http://yoursite/trac/<username>/login/xmlrpc
and this one for anonymous login which is what is required for testlink.
http://yoursite/trac/xmlrpc
one of our developers uses eclipse which communicate to trac with the xmlplugin. if that works then you know the plugin is working... more info here. http://www.eclipse.org/mylyn/
ill have a look next week at your trac config in testlink... and post mine so you can maybe try something else..
Ok here is my trac.cfg.php file..
I did have the BUG_TRACK_DB_HOST set to 'http://server/tracs/' and then the individual projects only referenced the individual folders like /repos/ etc... but i did this to test that i could connect with totally different instances of trac... anyway.. this works for me in my setup.
not sure this will help you though... btw.. you are using stable the latest versions of trac and testlink?
I did have the BUG_TRACK_DB_HOST set to 'http://server/tracs/' and then the individual projects only referenced the individual folders like /repos/ etc... but i did this to test that i could connect with totally different instances of trac... anyway.. this works for me in my setup.
not sure this will help you though... btw.. you are using stable the latest versions of trac and testlink?
Code: Select all
/** Trac Project Root */
define('BUG_TRACK_DB_HOST', '');
/** Mapping TL test project name vs trac project url */
$g_interface_bugs_project_name_mapping = array(
'ppp' => 'http://server1/tracs/psql-test',
'test Project' => 'http://server/tracs/repos/',
'sd fsad f' => 'http://server2/tracs/psql-test'
);
/*--- Don't change the following parameters. ---*/
/** Link to the bugtracking system, for entering new bugs. */
define('BUG_TRACK_ENTER_BUG_HREF', '/ticket');
/* The following parameters are not in use. */
define('BUG_TRACK_DB_TYPE', '[Not in Use]');
define('BUG_TRACK_DB_NAME', '[Not in Use]');
define('BUG_TRACK_DB_CHARSET', '[Not in Use]');
define('BUG_TRACK_DB_USER', '[Not in Use]');
define('BUG_TRACK_DB_PASS', '[Not in Use]');
define('BUG_TRACK_HREF', '[Not in Use]');
hello
i have a problem when trying to connect trac to testlink. i could tur on bug tracking, but when i click " Access to Bug Tracking System (Trac)" in the pop-up window it loads testlink in a new window. also when i try to add a ticket number, it says that this ticket is not found. so possibly there's no connection to trac here's my trrac.cfg.php :
/** Trac Project Root */
define('BUG_TRACK_DB_HOST', 'https://localhost/trac/');
/** Mapping TL test project name vs trac project url */
$g_interface_bugs_project_name_mapping = array(
'beta' => '',
);
/*--- Don't change the following parameters. ---*/
/** Link to the bugtracking system, for entering new bugs. */
define('BUG_TRACK_ENTER_BUG_HREF', '/ticket');
both trac and testlink are https, and in track anonymous ticketing is not enabled.
i have a problem when trying to connect trac to testlink. i could tur on bug tracking, but when i click " Access to Bug Tracking System (Trac)" in the pop-up window it loads testlink in a new window. also when i try to add a ticket number, it says that this ticket is not found. so possibly there's no connection to trac here's my trrac.cfg.php :
/** Trac Project Root */
define('BUG_TRACK_DB_HOST', 'https://localhost/trac/');
/** Mapping TL test project name vs trac project url */
$g_interface_bugs_project_name_mapping = array(
'beta' => '',
);
/*--- Don't change the following parameters. ---*/
/** Link to the bugtracking system, for entering new bugs. */
define('BUG_TRACK_ENTER_BUG_HREF', '/ticket');
both trac and testlink are https, and in track anonymous ticketing is not enabled.
Hello,
Have been trying everything that is suggested in this post and also what has been discussed at :
http://www.teamst.org/phpBB2/viewtopic. ... light=trac
http://www.teamst.org/phpBB2/viewtopic. ... light=trac
http://www.teamst.org/phpBB2/viewtopic. ... light=trac
http://www.teamst.org/phpBB2/viewtopic. ... light=trac
Basically after enabling TRAC (have installed the XML RPC plugin and it works and have enabled anonymous user for issues)
I get this in TestLink when I enable it:
Parse error: syntax error, unexpected T_VARIABLE in /var/www/testlink_174/cfg/trac.cfg.php on line 25
This is my trac.cfg.php file:
//Set the bug tracking system Interface to Trac 0.10.x
//also tested with Trac 0.10.4
define('TL_INTERFACE_BUGS','TRAC');
/** Trac Project Root */
define('BUG_TRACK_DB_HOST', '')
/** Mapping TL test project name vs trac project url */
$g_interface_bugs_project_name_mapping = array('TT'=>'http://10.10.1.101/projects/TT/',);
/*--- Don't change the following parameters. ---*/
/** Link to the bugtracking system, for entering new bugs. */
define('BUG_TRACK_ENTER_BUG_HREF', '/newticket');
/* The following parameters are not in use. */
define('BUG_TRACK_DB_TYPE', '[Not in Use]');
define('BUG_TRACK_DB_NAME', '[Not in Use]');
define('BUG_TRACK_DB_CHARSET', '[Not in Use]');
define('BUG_TRACK_DB_USER', '[Not in Use]');
define('BUG_TRACK_DB_PASS', '[Not in Use]');
define('BUG_TRACK_HREF', '[Not in Use]');
?>
Can anyone help me with this?
Many thanks I would really appreciate another pair of eyes, I have spent 2 days already trying all possible combinations.
Have been trying everything that is suggested in this post and also what has been discussed at :
http://www.teamst.org/phpBB2/viewtopic. ... light=trac
http://www.teamst.org/phpBB2/viewtopic. ... light=trac
http://www.teamst.org/phpBB2/viewtopic. ... light=trac
http://www.teamst.org/phpBB2/viewtopic. ... light=trac
Basically after enabling TRAC (have installed the XML RPC plugin and it works and have enabled anonymous user for issues)
I get this in TestLink when I enable it:
Parse error: syntax error, unexpected T_VARIABLE in /var/www/testlink_174/cfg/trac.cfg.php on line 25
This is my trac.cfg.php file:
//Set the bug tracking system Interface to Trac 0.10.x
//also tested with Trac 0.10.4
define('TL_INTERFACE_BUGS','TRAC');
/** Trac Project Root */
define('BUG_TRACK_DB_HOST', '')
/** Mapping TL test project name vs trac project url */
$g_interface_bugs_project_name_mapping = array('TT'=>'http://10.10.1.101/projects/TT/',);
/*--- Don't change the following parameters. ---*/
/** Link to the bugtracking system, for entering new bugs. */
define('BUG_TRACK_ENTER_BUG_HREF', '/newticket');
/* The following parameters are not in use. */
define('BUG_TRACK_DB_TYPE', '[Not in Use]');
define('BUG_TRACK_DB_NAME', '[Not in Use]');
define('BUG_TRACK_DB_CHARSET', '[Not in Use]');
define('BUG_TRACK_DB_USER', '[Not in Use]');
define('BUG_TRACK_DB_PASS', '[Not in Use]');
define('BUG_TRACK_HREF', '[Not in Use]');
?>
Can anyone help me with this?
Many thanks I would really appreciate another pair of eyes, I have spent 2 days already trying all possible combinations.
well that error usually means an error in your code...
like where define('BUG_TRACK_DB_HOST', '') is missing a semicolon ';' at the end of the line..
or on this line
array('TT'=>'http://10.10.1.101/projects/TT/',);
there is an extra comma on the third last character on the line... remove that if you only have one element in the array
hope it helps
like where define('BUG_TRACK_DB_HOST', '') is missing a semicolon ';' at the end of the line..
or on this line
array('TT'=>'http://10.10.1.101/projects/TT/',);
there is an extra comma on the third last character on the line... remove that if you only have one element in the array
hope it helps
I'm experiencing the same issue with the Access to Bug Tracking System (Trac) link. It's reading in the bts_url but nothing is passed until it is submitted. Also, the parameter that that it is using is not what I"m expecting. It is using the BUG_TRACK_ENTER_BUG_HREF which makes sense however the links that are being added to view Relevant bugs uses the same parameter. I think the link to view existing bugs should be the BUG_TRACK_HREF, but according to the trac.cfg file this parameter is not in use. In all other bts configurations both of these parameters are in use. Are we supposed to be extending TestLink to get this link to function properly? If so, any direction because the .pdf does not explain much
problem overview:
link to "Access to Bug Tracking System (Trac)" go to testlink
add bug rise - error that method query non-object in function checkBugID_existence($id)
I solve my problem so:
all was in configuration file (xml-rpc i successfully install and configure before problem)
instead wrong:
and also my project was without name (single project) and has so mapping tl
its not full right configuration but it works for installed so trac ( single project name I wrote in 'BUG_TRACK_DB_HOST' or bugs can't be getted or added. because
not use mapping TL trac project name
link to "Access to Bug Tracking System (Trac)" go to testlink
add bug rise - error that method query non-object in function checkBugID_existence($id)
I solve my problem so:
all was in configuration file (xml-rpc i successfully install and configure before problem)
instead wrong:
i use right (see in slash in the end)define('BUG_TRACK_DB_HOST', 'http://127.0.0.1:8080/trac/');
Code: Select all
define('BUG_TRACK_DB_HOST', 'http://127.0.0.1:8080/trac');
Code: Select all
/** Mapping TL test project name vs trac project url */
$g_interface_bugs_project_name_mapping = array(
'TLProject_name' => ''
)
its not full right configuration but it works for installed so trac ( single project name I wrote in 'BUG_TRACK_DB_HOST' or bugs can't be getted or added. because
Code: Select all
define('BUG_TRACK_ENTER_BUG_HREF', '/newticket');
define('BUG_TRACK_HREF', '/ticket');