Need help to use TestLink API and XML RPC API

Discussion and information for XML-RPC interface.

Moderators: Amaradana, TurboPT, TL Developers

Need help to use TestLink API and XML RPC API

Postby Escalopes » Tue Nov 15, 2016 9:43 am

I am currently writting Java Program to execute tests and push the results on a testlink. I am using TestLink 1.9.14 and following site like : ... k-api.html.

So I would like to do :

TestLinkAPIClient apiClient = new TestLinkAPIClient(ACCESS_KEY,TESTLINK_SERVER_URL);
apiClient.reportTestCaseResult(TESTLINK_PROJECT_NAME, TESTLINK_TESTPLAN_NAME,testCaseID, BUILD_RELEASE_NAME, executionNotes, result);

With theses packages :


TestLink seems to be not really available (API for exemple, so I tried already 3 different version of the API).

I google for a long time and tried something. So I tried to modify the xml-rpc file in the TestLink folder, I tried different .JAR and another version of TestLink (1.9.12). For the moment, I get this message :

Exception in thread "main" The call to the xml-rpc client failed.
at com.selenium.integration.Program.main(
Caused by: org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse servers response: Expected methodResponse element, got br
at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(
at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(
at org.apache.xmlrpc.client.XmlRpcClient.execute(
at org.apache.xmlrpc.client.XmlRpcClient.execute(
at org.apache.xmlrpc.client.XmlRpcClient.execute(
... 3 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 7; Expected methodResponse element, got br
at org.apache.xmlrpc.parser.XmlRpcResponseParser.startElement(
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(
... 11 more

Do you have some ideas?

thanks, have a nice coding day :p
TestLink user
Posts: 1
Joined: Mon Nov 14, 2016 8:09 pm

Return to XML-RPC API

Who is online

Users browsing this forum: No registered users and 1 guest