BugZilla Integration with DUPLICATE Bug

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

BugZilla Integration with DUPLICATE Bug

Postby rinmar » Tue Jan 27, 2009 11:44 am

I have following issue.

User created a new Bug in BugZilla.
User add BugZilla Bug id in Execution.

QS found that new Bug is a duplicate Bug and mark this
Bug as duplicate Bug in BugZilla.

BugZilla handles these Bug as RESOLVED = Bug is viewed as
Resolved in TestLink, but original Bug isn´t solved.

a. We have to change manually the Bug Id in TestLink
b. BugZilla make duplicate Bug as Resolved when original will RESOLVED
c. TestLink understand Duplicate BugZilla Bugs and find the orginal Bug id and set it in Execution

any idea?
rinmar
Advanced user
 
Posts: 18
Joined: Tue Jan 13, 2009 2:27 pm

External id in BugZilla

Postby rinmar » Tue Jan 27, 2009 12:23 pm

Is anybody using Testcase id (or external id) in BugZilla to define which resolved bug has to test over which defined testcase
rinmar
Advanced user
 
Posts: 18
Joined: Tue Jan 13, 2009 2:27 pm

View Testcases from BugZilla

Postby rinmar » Wed Jan 28, 2009 7:24 am

I found following solution, but the ViewTC.php isn´t in Testlink Installation.

Has anybody a idea to link BugZilla back to TestCases?


Viewing Test Cases from your bug tracking system

There is a file in the main TestLink directory named viewTC.php. When this file is loaded in the browser with a test case id passed in the url string the user will be shown a view of the test case and its results against all test plans it's part of.

ex: viewTC.php?tc=1456

At our company we have edited bugzilla's comment section so that anytime a user puts in the words "test case xxx" or "testcase xxx" it will link directly to TestLink's viewTC.php page.

Here are the changes we made in our Bugzilla installation (version 2.16.4)

For the changes, you need to update the file "<bugzilla_installation_directory>/globals.pl".

$things[$count++] = $item;
}
# Support finding "test case XXX" for TestLink
#
while ($text =~ s/\btest[\s]*case(\s|%\#)*([\d\.]+)/"##$count##"/ei) {
my $item = $&;
my $num = $2;
$item = "<a href=\"http://www.qagood.com/testlink/viewtc.php?tc=$2\">$item</a>";
$things[$count++] = $item;
}

#
# Either a comment string or no comma and a compulsory #.
while ($text =~ s/\bbug(\s|%\#)*(\d+),?\s*comment\s*(\s|%\#)(\d+)/"##$count#
#"/ei) { .........
rinmar
Advanced user
 
Posts: 18
Joined: Tue Jan 13, 2009 2:27 pm

Related to Tracker id 0001770

Postby rinmar » Wed Jan 28, 2009 7:30 am

Mantis Tracker id 0001770
rinmar
Advanced user
 
Posts: 18
Joined: Tue Jan 13, 2009 2:27 pm


Return to TestLink 1.8 (OBSOLETE => EOL)[LOCKED]



Who is online

Users browsing this forum: No registered users and 5 guests