Forum Discussion

fabperez's avatar
fabperez
Occasional Contributor
12 years ago

Does TestComplete 9.31 supports JIRA 6.2?

Hi Forum,



Does TestComplete 9.31 supports JIRA 6.2?



Unfortunately that is what Atlassian is distributing currently and even though I have the "Accept remote API calls" turned On (Off by default) still I get from TC:



Connecting to the server...

'WebServices' is undefined

Possible reason: RPC plugin is not enabled on your JIRA installation.



Thanks in advance,
  • Philip_Baird's avatar
    Philip_Baird
    Community Expert

    Hi Fabricio, the Exception appears to be being thrown in the following code within the JIRA Script Extension:


     


    try


    {


      status_text.Add(umsg_connect_to_server);


      web_service_info = GetWebServiceInfo(); 


      status_text.Add(umsg_connected_to_server);


    }


    catch(ex)


    {


      status_text.Add(ex.description);


      status_text.Add(umsg_rpc_not_enabled);


      EnableForm1Buttons(form);


      return;


    }


     


    which in turn calls this function which appears to throw the Exception


     


    function GetWebServiceInfo ()


    {


      return WebServices.CreateWebServiceInfo(m_server_name + m_path_to_wsdl, "JiraSoapServiceService", WebServices.svSoap11);


    }


     


     


    To test this, I created the following function in a Script Unit


     


    function testGetWebServiceInfo() {


      var m_server_name = "<Server Address>";


      var m_path_to_wsdl = "/rpc/soap/jirasoapservice-v2?wsdl";


      


      var info = WebServices.CreateWebServiceInfo(m_server_name + m_path_to_wsdl, "JiraSoapServiceService", WebServices.svSoap11);


      


      Log.Message("Done");


    }


     


    I received the same 'WebServices' is undefined error.


     


    As it turns out, a reference to the Test Complete WebServices Project Item was required in the Project from which the function GetWebServiceInfo() is called


     


    1. Right click on the Project in the Project Explorer


    2. Select the menu item Add | New Item


    3. In the Create Project Item dialog, select Web Services and Click OK, WebServices will appear under Advanced


    4. Try accessing JIRA, it will hopefully now work


     


    Regards,


    Phil Baird


  • Hi Fabricio,


     


    As far as I can see from the TestComplete documentation, Atlassian JIRA 4.0 - 6.0 are officially supported.


    I suggest that you contact the TestComplete Support team and ask them to investigate the ways of how to work with JIRA 6.2.

  • fabperez's avatar
    fabperez
    Occasional Contributor
    Hi,



    Thanks for the reply Tanya.



    I just downgraded JIRA to version 6.0.8 but I get the exact same error.



    Does anyone know if that version is also problematic or a fix to this issue?



    Thanks in advance
  • fabperez's avatar
    fabperez
    Occasional Contributor
    Hi Forum,



    I downgraded further and went to JIRA v6.0 (64-bit) running Remote API = ON and listening on port TCP/8090 (instead of default TCP/8080).



    Still TestComplete 9.31 complains with the following error when trying to "Add Bug Info to JIRA Database (Step 1of 2)":



    Progress

    Connecting to the server...

    'WebServices' is undefined

    Possible reason: RPC plugin is not enabled on you JIRA installation.



    Thanks in advance
  • fabperez's avatar
    fabperez
    Occasional Contributor
    Thanks for your answer Phil.



    Looking around my installed extensions I noticed the Web Service ones were disabled and when I tried to enabled them I was told I didn't have the required license.



    So, I guess that explains my problem and I should be talking to the sales team next.



    Regards,