TestLink and Trac

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

nihongo
TestLink user
Posts: 12
Joined: Thu Mar 27, 2008 12:15 pm

Post by nihongo »

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?
malexs
Advanced user
Posts: 17
Joined: Wed Apr 02, 2008 2:15 pm

Post by malexs »

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..
malexs
Advanced user
Posts: 17
Joined: Wed Apr 02, 2008 2:15 pm

Post by malexs »

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?

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]'); 
leki69
TestLink user
Posts: 2
Joined: Mon Mar 10, 2008 1:35 pm

Post by leki69 »

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.
davidla
TestLink user
Posts: 1
Joined: Tue Jun 24, 2008 5:05 pm

Post by davidla »

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.
malexs
Advanced user
Posts: 17
Joined: Wed Apr 02, 2008 2:15 pm

Post by malexs »

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
bizob
TestLink user
Posts: 3
Joined: Mon Oct 06, 2008 4:39 pm

Post by bizob »

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
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

what do you mean for "... pdf do not explain too much ... "?
think that is you are a trac user (I'm not) you will be able to understand if additional link (that is useful for mantis) can be used or not.
bizob
TestLink user
Posts: 3
Joined: Mon Oct 06, 2008 4:39 pm

Post by bizob »

I figured it out. I went to your bug repository to get some direction to what tweaks need to be made to the trac configuration files.
protonic
TestLink user
Posts: 5
Joined: Wed Apr 22, 2009 6:00 am

Post by protonic »

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:
define('BUG_TRACK_DB_HOST', 'http://127.0.0.1:8080/trac/');
i use right (see in slash in the end)

Code: Select all

define('BUG_TRACK_DB_HOST', 'http://127.0.0.1:8080/trac');
and also my project was without name (single project) and has so mapping tl

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');
not use mapping TL trac project name
Post Reply