TestLink and Mantis

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
Rashmi_bm
TestLink user
Posts: 6
Joined: Tue Nov 27, 2007 9:22 am

TestLink and Mantis

Post by Rashmi_bm »

Hi,
TestLink is an effective test management tool. We are now looking for integration with a bug tracking tool like Mantis.

We installed Mantis and TestLink, also, done configuration settings for integration. We are not getting any bug tracking link section in the Execution screen. Please help!!

There is no difference to testlink before and after integration configuration.
We are working on a new project and need Mantis integration immediately. Can anyone give suggestions??
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

Firts suggestion is check on our mantis site for documentation.
In forums home there is some pointer to last documents about BTS integration.

you can also download from testlink sourceforge a modified xampp lite with mantis, tl configured to work togheter and all you need to work, then you can compare your config with yours
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

Rashmi_bm
TestLink user
Posts: 6
Joined: Tue Nov 27, 2007 9:22 am

Post by Rashmi_bm »

Hi,
Thanks for the reply.

There is no problem with Mantis. We are not getting bug section in TestLink (Bug/Problem Report...create new bug). Is this section visible only after integration with Mantis?
Rashmi_bm
TestLink user
Posts: 6
Joined: Tue Nov 27, 2007 9:22 am

Post by Rashmi_bm »

Hi,
We get localize:bts_connection_problems on execution page.
Please help!!
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

not enough info to help
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

Please use :
http://www.teamst.org/phpBB2/viewtopic.php?t=661

download the sw from sourceforge, put it up and running, and check
your config against the config done in our xampp package
Rashmi_bm
TestLink user
Posts: 6
Joined: Tue Nov 27, 2007 9:22 am

Post by Rashmi_bm »

Thanks.
mroeder
TestLink user
Posts: 6
Joined: Sat Feb 02, 2008 12:26 am

integration

Post by mroeder »

The current testlink/mantis integration isn't very useful. All it does is give you a text box where you tel testlink the number of the bug you just entered in Mantis, but the entire rest of the process is manual.

I had a brainstorm about how to do this in a much more automated way. Today I was investigating what was needed, and it starts with an expert knoweldge of TestLink internals. The second part, of course, requires an expert knowledge of Mantis internals. I decided that my time right now is better spent on writing test cases. Nevertheless, here's a description of the approach I want to take. Perhaps someone else can run with it.

I replaced the code in the file bug_add.php with a fairly simple html frame page with some glue to transfer parameters from the call to the original code, which I moved to bug_add_top.php. This file lives in the top half of the page. In the bottom half of the page it was my intent to make a form that has the following fields:
user-name (filled in with TestLink user name)
password (blank)
bug title ("failure in " + $test_case_title)
bug description (test case steps and expected results)
bug results (empty field for actual results)
priority (taken from the TestLink importance field)
And there would be a button "Submit".

So when you click the bug in TestLink, this page would pop up with as much information as was already known about the bug already populated. The user supplies password and results, then clicks Submit. That would submit the form to a second .php file ...

A second php file would live in Mantis. It would be coded to receive fields as described above. It would first validate the user-name and password pair against the Mantis bugbase. Then it would make a simple set of MySQL queries to add a new record to the bugbase and populate its fields. This php file would finally, after some delay, refresh itself to the appropriate Mantis bug view page. The user could then see the bug as it was submitted and make any necessary changes. The user would note the bug number and enter it in the text field in the top frame. (that's ugly; I hope someone can automate this part as well.)

This system is test-base and bug-base independent. The test-base owns the submit form and the bug-base owns the receive page. The bug-base does its own user validation; the test-base doesn't have to keep any passwords. The only thing the submit form and the receive page have to have in common is the names of the variables used to pass the bug report from the test-base to the bug-base.

I could code this; the hard work for me is slogging though the testLink code to figure out where to get the information I need. (And then, of course, through the bug-base code to do the user validation and new bug report population.) I read DevGuide.pdf but that did not describe the architecture of TestLink. :-( If someone can give me a clue or some suggestions (I probably need a whole boxful) then I could start on this.
janetype
TestLink user
Posts: 1
Joined: Thu Jun 12, 2008 6:43 pm

Post by janetype »

Has anyone found a way to integrate testlink with mantis. I was expecting the testcase id or title to be passed to mantis when creating a new bug from testlink. I was also expecting the bug_report_page.php to be displayed. How do you correlate a Testcase ID (testlink) to an Issue ID (mantis)?
Post Reply