Skip to content

testopa-java-driver does not work with Testopia 2.4 and higher - API calls deprecated? #3

@Mike-M2

Description

@Mike-M2

Hi,
I've downloaded and installed the latest version of Bugzilla (4.4.8) and Testopia (2.5) on my Ubuntu. Later I've been trying to integrate Jenkins with Testopia with the aid of Jenkins Testopia Plugin. Though connection could be established, no information from Testopia could be successfully fetched. As the logs didn't provide any useful information I've cloned the testopia-java-driver project and started to debug it.

This is what I've found. After calling:

TestopiaAPI api = new TestopiaAPI(new URL("http://'ip_address'/bugzilla/xmlrpc.cgi"));
api.login("'login'","'pass'");
TestRun testRun = api.getTestRun(1);

I got the following exception:

org.apache.xmlrpc.XmlRpcException: The requested method 'TestRun.get' was not found.
at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:197)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
at org.mozilla.testopia.service.xmlrpc.XmlRpcTestRunService.getTestRun(XmlRpcTestRunService.java:60)
at org.mozilla.testopia.TestopiaAPI.getTestRun(TestopiaAPI.java:191)

Later I've found the following note on Testopia's site:
https://developer.mozilla.org/en-US/docs/Mozilla/Bugzilla/Testopia
'API USERS TAKE NOTE: Positional parameters are now deprecated. All params should now be sent in a hash (struct, dict, hashmap or whatever your language of choice calls key, value pairs). Though all attempts have been made to provide continuing support for positional parameters, please be aware that some API calls may fail until you make this change. Also, future versions may remove this support completely.'

Does this mean that API call TestRun.get does not work anymore? If so, then testopia-java-driver is not working with Testopia version 2.4 and higher.

Regards,
Mike_M2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions