Integration with BTS - TRAC

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
Rab
Advanced user
Posts: 15
Joined: Tue Jan 08, 2013 6:58 pm

Integration with BTS - TRAC

Post by Rab »

First off, I have read at least 20-25 different web pages about this issue, both here on this forum and just general WWW pages. Many of these are for older versions (1.9.4, 1.9.5) and the issues have either been solved or dont apply in my version. I have also read the manual carefully. However, there are still a few things that are not clear.

My system:
Testlink 1.9.8
TRAC 1.0.1

Everthing is *mostly* working. Here is what I can do:
1) Add existing bug ID to a test case and it lists the number, status and name of the bug at the top of the test execution page
2) Click the "Access to Bug Tracking System (Trac)" and get taken to TRAC. However this ONLY works if I am already logged on to TRAC (i.e. testlink does not log into a new TRAC session for me)

So my questions are:
1) Should I expect Testlink to log into TRAC? Or do I always need to have a logged in TRAC session running already? I cant seem to work out if the bug mentioned in the forums about using "<user>" instead of "<username>" has been fixed yet. I tried it both ways, and both times the connection works, but it never logs me onto TRAC. Is it still always using the anonymous user even though you specify username and password?

2) The "Bugs per test case" report is blank (i.e. plain white page) even though I have some executed test cases with bugs linked to them. How do I find out what is going wrong here please? Is there a log file to see why the report isnt working? I looked through the code in "resultsBugs.php" briefly but nothing jumped out at me

3) Is it possible to use your testlink login as the login used to authenticate with TRAC (e.g. so instead of "user1" we could use something like "@user" in the TRAC BTS configuration and depending on who is logged into Testlink will depend on what username is used to connect to TRAC?) In this way different users could log bugs and their testlink username could be matched with their TRAC username and we would know who logged which ticket.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Integration with BTS - TRAC

Post by fman »

>> Should I expect Testlink to log into TRAC ?
when you want to report yourself on TRAC - NO. Is not the idea. IN addition this will require that username in both systems will be the same.
Is just a link

>> 2) The "Bugs per test case" report is blank (i.e. plain white page) even though I have some executed test cases wi
can be an PHP version issue.

>> s it possible to use your testlink login as the login used to authenticate with TRAC
not without custom development, in addition is password has to be provided to TRAC to connect (I do not remember this) this will means that passwords on both systems has to be aligned.
IMHO having the reported setted exacly as the user that was running the test case is NOT a critical info, if at least on summary
that is created from mantis this info exists.
Rab
Advanced user
Posts: 15
Joined: Tue Jan 08, 2013 6:58 pm

Re: Integration with BTS - TRAC

Post by Rab »

fman

thanks for the reply. For #2 I am not sure whether this is a bug or not, I looked at the php_errors.log file and saw this:
[30-Sep-2013 16:43:19 Europe/London] PHP Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "C:\Apache24\htdocs\testlink\gui\templates\results\resultsBugs.tpl" on line 64 "{assign var=tableID value=table_$idx}" - Unexpected "$", expected one of: "}" , " " , ATTR' in C:\Apache24\htdocs\testlink\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php:665
Stack trace:
#0 C:\Apache24\htdocs\testlink\third_party\smarty3\libs\sysplugins\smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error()
#1 C:\Apache24\htdocs\testlink\third_party\smarty3\libs\sysplugins\smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(18, '$')
#2 C:\Apache24\htdocs\testlink\third_party\smarty3\libs\sysplugins\smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(18, '$')
#3 C:\Apache24\htdocs\testlink\third_party\smarty3\libs\sysplugins\smarty_internal_templ in C:\Apache24\htdocs\testlink\third_party\smarty3\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 665
I replaced
{assign var=tableID value=table_$idx}
with
{assign var=tableID value=table_idx}

and the report started working. I dont know if this is only a bug with my version of PHP (v3.01), would you like me to report on mantis?
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Integration with BTS - TRAC

Post by fman »

USE THIS
{assign var=tableID value="table_$idx"}

I will check but I think has been solved on latest code on gitoriuos, issue is related to difference on syntax between Smarty2 and Smarty3 (I'm trying to move to this)
Post Reply