将Jenkins与Testlink链接时出错:prolog

时间:2016-09-24 10:14:53

标签: jenkins testlink

我试图从jenkins触发一个作业,它将构建并链接到testlink以执行测试用例。 我已使用Testlink参数配置Jenkins

网址:http://10.204.222.216:8012/testlink/lib/api/xmlrpc/v1/xmlrpc.php 开发密钥:a75272894aa2e86a576bace7a5ce4fea(通过testlink生成)

我还使用testproject,testplan等有效参数配置了jenkins作业

testlink版本:1.9.15

Jenkins版本:2.7.3

使用Xampp 3.2.2托管Apache(testlink),mysql和Tomcat(jenkins)

<b>Here is the error log</b>
<b>****************************************************************************************</b>
Preparing TestLink client API.
Using TestLink URL: http://10.204.222.216:8012/testlink/lib/api/xmlrpc/v1/xmlrpc.php

FATAL: Error verifying developer key: Failed to parse server's response: Content is not allowed in prolog.
br.eti.kinoshita.testlinkjavaapi.util.TestLinkAPIException: Error verifying developer key: Failed to parse server's response: Content is not allowed in prolog.
    at br.eti.kinoshita.testlinkjavaapi.MiscService.checkDevKey(MiscService.java:64)
    at br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.<init>(TestLinkAPI.java:146)
    at hudson.plugins.testlink.TestLinkBuilder.getTestLinkSite(TestLinkBuilder.java:331)
    at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:206)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
    at hudson.model.Build$BuildExecution.build(Build.java:205)
    at hudson.model.Build$BuildExecution.doRun(Build.java:162)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
    at hudson.model.Run.execute(Run.java:1741)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:410)
Caused by: org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse server's response: Content is not allowed in prolog.
    at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:188)
    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:158)
    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:147)
    at br.eti.kinoshita.testlinkjavaapi.BaseService.executeXmlRpcCall(BaseService.java:90)
    at br.eti.kinoshita.testlinkjavaapi.MiscService.checkDevKey(MiscService.java:61)
    ... 12 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
    at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:186)
    ... 21 more
ERROR: Error communicating with TestLink. Check your TestLink configuration.
Sending e-mails to: kabeer.hr@aricent.com
Finished: FAILURE

0 个答案:

没有答案