Page 1 of 1

[RESOLVED] Testlink 1.9 and JIRA 4 configuration problems

Posted: Wed May 18, 2011 4:12 pm
by SoniaRI
Hi folks!

Version: - TestLink 1.9 (Prague)
- JIRA 4

I did the following steps in order to configure JIRA integration via SOAP:


1. Configure JIRA info to the jirasoap.cfg.php config file in the following way.

//-----------------------------------------------------------------------------------------

/** The Username being used by JIRA logon */
define('BUG_TRACK_USERNAME', 'myuser');

/** The Password being used by JIRA logon*/
define('BUG_TRACK_PASSWORD', 'mypassword');
/** link of the web server for JIRA*/
define('BUG_TRACK_HREF',"https://jira/");
/** path of JIRA WSDL */
define('BUG_TRACK_SOAP_HREF', "rpc/soap/jirasoapservice-v2?wsdl");

/** link of the web server for jira ticket*/
define('BUG_TRACK_SHOW_BUG_HREF', "browse/");
/** link of the web server for creating new jira ticket*/
define('BUG_TRACK_ENTER_BUG_HREF',"secure/CreateIssue.jspa");

//-------------------------------------------------------------------------------------------

2. Added $g_interface_bugs='JIRASOAP'; to the custom_config.inc.php file
3. Restarted apache

As a resul I got the following exception when I click on some test case in test execution window:

Fatal error: Uncaught SoapFault exception: WSDL SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://jira/rpc/soap/jirasoapservice-v2?wsdl' : failed to load external entity "https://jira/rpc/soap/jirasoapservice-v2?wsdl" in C:\xampp\htdocs\testlink-1.9\lib\bugtracking\int_jirasoap.php:63 Stack trace: #0 C:\xampp\htdocs\testlink-1.9\lib\bugtracking\int_jirasoap.php(63): SoapClient->SoapClient('https://jira/rp...') #1 C:\xampp\htdocs\testlink-1.9\lib\bugtracking\int_bugtracking.php(371): jirasoapInterface->jirasoapInterface() #2 C:\xampp\htdocs\testlink-1.9\lib\execute\execSetResults.php(86): require_once('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\testlink-1.9\lib\bugtracking\int_jirasoap.php on line 63


Could anybody help me to solve my problem?



Thanks in advance!

Sonia

Re: Testlink 1.9 and JIRA 4 configuration problems

Posted: Wed Jun 15, 2011 7:01 am
by pharmmed
Hi,

are you sure you activated the soap interface in jira?
with the old metho in testlink (which should still work when I'm correct my we didn't accomplish to get it to work yet) you only had to use the jira-DB user in testlink - so no soap involved.

when you configure testlink 1.9 to use jira soap you have to activate this feature in jira (both in the general settings an in the plugin section).
We are still having troubles to get it all to work though but maybe this is where your problem is right now :)

Re: Testlink 1.9 and JIRA 4 configuration problems

Posted: Mon Mar 19, 2012 10:25 am
by greaze
Hi, were you able to resolve this issue, if so could you let me know how. We have the same issue here. I know for sure that JIRA soap is active and also testlink code works fine, since I have tested it on another installation.

Re: Testlink 1.9 and JIRA 4 configuration problems

Posted: Mon Mar 19, 2012 7:23 pm
by fman
are you able to get the WSDL with your browser ?

Re: Testlink 1.9 and JIRA 4 configuration problems

Posted: Tue Mar 20, 2012 2:26 pm
by greaze
Hi fman, I did a wget from my testlink server and I was able to get the xml. There seems to be no issues with firewall etc.

Re: Testlink 1.9 and JIRA 4 configuration problems

Posted: Wed Mar 21, 2012 8:41 pm
by fman
1. Can you try with HTTP not HTTPS ? maybe this is the issue.
2. try to install soapUI and do some test with this tool.
3. give a look to https://bugs.php.net/bug.php?id=31050

Re: Testlink 1.9 and JIRA 4 configuration problems

Posted: Thu Mar 22, 2012 5:01 pm
by greaze
[Resolved]
The information on this link https://bugs.php.net/bug.php?id=31050 as per your previous post helped. Thanks.
In summary it was a problem with php / apache permission.

Doing the following worked:
$setsebool -P httpd_can_network_connect on