Hello guys,
i just started to setup a Selenium System and i use the testlink API to communicate with our Testlink System.
My Systems:
Selenium 2.48 (Should have no influence)
testlink API 2.0 (java) -> https://code.google.com/archive/p/dbfac ... /downloads
Testlink 1.9.14 (Padawan)
Every API method i need worked, but addTestCaseToTestPlan not. I Also tried another API but no single method worked there.
I also tried to gather information about the inside of Testlink but i couldn't find any helpfull developer documentation.
No i hope to get some help here!
Thx for the answers already!
addTestCaseToTestPlan is not working for me
Moderators: Amaradana, TurboPT, TL Developers
Further information
Part of the testlink source code (xmlrpc.class.php):
When i try to call this method (i tried it with a standard xml rpc client now), i get a error message:
Another Exception:
Code: Select all
/**
* Add a test case version to a test plan
*
* @param args['testprojectid']
* @param args['testplanid']
* @param args['testcaseexternalid']
* @param args['version']
* @param args['platformid'] - OPTIONAL Only if test plan has no platforms
* @param args['executionorder'] - OPTIONAL
* @param args['urgency'] - OPTIONAL
*
*/
public function addTestCaseToTestPlan($args)
{
Code: Select all
Failed to parse servers response: Expected methodResponse element, got pre
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 6; Expected methodResponse element, got pre
Caused by: org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse servers response: Expected methodResponse element, got pre
at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:177)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:145)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:44)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:157)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:146)
Code: Select all
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 6; Expected methodResponse element, got pre
at org.apache.xmlrpc.parser.XmlRpcResponseParser.startElement(XmlRpcResponseParser.java:98)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(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(XmlRpcStreamTransport.java:175)
... 11 more