使用testlink时jenkins中的XMLRPC错误

时间:2018-10-06 09:17:10

标签: linux jenkins jenkins-plugins testlink

通过Jenkins测试链接插件与测试链接通信时出错。

14:43:17 Using TestLink URL: http://<hostname>/testlink-code-testlink_1_9/lib/api/xmlrpc/v1/xmlrpc.php
14:43:17 
14:43:17 FATAL: Error verifying developer key: HTTP server returned unexpected status: Not Found
14:43:17 br.eti.kinoshita.testlinkjavaapi.util.TestLinkAPIException: Error verifying developer key: HTTP server returned unexpected status: Not Found
14:43:17    at br.eti.kinoshita.testlinkjavaapi.MiscService.checkDevKey(MiscService.java:64)
14:43:17    at br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.<init>(TestLinkAPI.java:148)
14:43:17    at hudson.plugins.testlink.TestLinkBuilder.getTestLinkSite(TestLinkBuilder.java:331)
14:43:17    at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:206)
14:43:17    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
14:43:17    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
14:43:17    at hudson.model.Build$BuildExecution.build(Build.java:206)
14:43:17    at hudson.model.Build$BuildExecution.doRun(Build.java:163)
14:43:17    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
14:43:17    at hudson.model.Run.execute(Run.java:1815)
14:43:17    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
14:43:17    at hudson.model.ResourceController.execute(ResourceController.java:97)
14:43:17    at hudson.model.Executor.run(Executor.java:429)
14:43:17 Caused by: org.apache.xmlrpc.client.XmlRpcHttpTransportException: HTTP server returned unexpected status: Not Found
14:43:17    at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getInputStream(XmlRpcSunHttpTransport.java:94)
14:43:17    at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:152)
14:43:17    at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
14:43:17    at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
14:43:17    at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
14:43:17    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
14:43:17    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:158)
14:43:17    at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:147)
14:43:17    at br.eti.kinoshita.testlinkjavaapi.BaseService.executeXmlRpcCall(BaseService.java:83)
14:43:17    at br.eti.kinoshita.testlinkjavaapi.MiscService.checkDevKey(MiscService.java:61)
14:43:17    ... 12 more
14:43:17 ERROR: Error communicating with TestLink. Check your TestLink configuration.
14:43:17 Finished: FAILURE

我还已经在服务器中检查了这是使用的路径。不确定为什么仍然无法与测试链接通信。

基本上,我试图从Jenkins GitHub代码运行测试,并在test-link中更新测试执行。

1 个答案:

答案 0 :(得分:0)

通过要求开发人员从nginix端启用XMLRPC路径来解决此问题。

因此,基本上,当我们尝试访问未定义路径的文件时会发生什么,并说当您从浏览器中命中时找不到文件。

因此,基本上,您需要启用路径并检查是否在访问正确的路径以访问XMLRPC