Link between bug id and TestCase

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
MrBricodage
TestLink user
Posts: 14
Joined: Fri Apr 27, 2012 7:57 pm

Link between bug id and TestCase

Post by MrBricodage »

Hi all,

This is a question about Issue Tracker integration conception.

TestLink conception seems to link bug ID with the execution of a testcase :
- A bug can be linked to a testcase only when the testcase has been executed.
- The execution (with a link declared to bug tracker from TL) is recorded in table "execution_bugs" :
id <=> bug_id
- The "execution" table contains the link between execution id and Testcase :
id<=>tcversion_id

That's why when I execute again the same test (linked with a bug) in the same testplan for the same build, my link from testcase to bug tracker is "lost" (not really "lost", I know I can modify config.inc.php to view the exec history, as explained here : http://mantis.testlink.org/view.php?id=3072 [^])


In my opinion, a bug is not dependent of a testcase execution but should be linked to testcase(s). The same TestCase used for a new release should show all linked bugs (even if the testcase has not been executed already), cause it is the bug status (new, assigned, resolved, closed, ...) that show if the bug is still a problem. Today, we have to link existing bugs to the testcase each time we execute a testcase (same build or other build in the same testplan or other testplan).

So my questions are :
- Why the bug ID is not directly linked to a Testcase? (tcversion_id or tc_external_id).
- Is there any chance to see that behavour being reviewed?

Regards,

Mr.B
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Link between bug id and TestCase

Post by fman »

I do not remember why link was designed this way, but IMHO is right.
What can be done is IMHO add a new option that request to display issues on execution feature IGNORING execution.
I suppose with a query will be possible get all issues from all test cases executions.

I will take this direction.
If this can be enough is time to return to mantis a create an issue request => take the private issue and modify it.

regards
MrBricodage
TestLink user
Posts: 14
Joined: Fri Apr 27, 2012 7:57 pm

Re: Link between bug id and TestCase

Post by MrBricodage »

fman,

this new option displaying all issues that have been linked to a testcase is a good solution.
Do you want me to modify the private issue to transform it to a feature request ? ( It seems that reporters can only monitor an issue in "mantis.testlink.org", not modify the content).
Or do you want me to open a new issue?

Regards,

Mr.B
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Link between bug id and TestCase

Post by fman »

please modify private issue, then I will transform it on public again
MrBricodage
TestLink user
Posts: 14
Joined: Fri Apr 27, 2012 7:57 pm

Re: Link between bug id and TestCase

Post by MrBricodage »

I'm confused, but as I said in my previous post, I can't modify an issue with reporter access. Only monitor button is displayed.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Link between bug id and TestCase

Post by fman »

scuse me => open a new one
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Link between bug id and TestCase

Post by fman »

Hi.
Need your help, because I've found this option on config
$tlCfg->exec_cfg->show_history_all_builds = FALSE;

Changing to TRUE, you will get FULL STORY any build, including BUGS
can you do some tests to understand if this can be enough to consider this issue closed ?

Thanks a lot
Post Reply