2013-02-06 54 views
0

我試圖通過Jenkins配置連接Jenkins(1.482)和TestLink(1.9.4)以便檢索測試,但是在Jenkins中運行作業時,我得到控制檯日誌中的以下錯誤。Jenkins-Testlink集成 - HTTP服務器返回意外狀態:找到

請注意,Jenkins在網絡「gnb」上的tomcat(linux)上託管,Testlink在另一個網絡「<公司網絡名稱>」上的php(linux)上託管。當兩者都位於我的本地主機上(在windows中)時,它運行良好 但當Jenkins和TestLink位於不同的網絡/主機上時,此集成不起作用。

我得到下面的錯誤控制檯上運行作業時:

Preparing TestLink client API. 
Using TestLink URL: http://<hostname>/mr61_php5/testlink/lib/api/xmlrpc.php 

FATAL: Error verifying developer key: HTTP server returned unexpected status: Found 
br.eti.kinoshita.testlinkjavaapi.util.TestLinkAPIException: Error verifying developer key: HTTP server returned unexpected status: Found 
     at br.eti.kinoshita.testlinkjavaapi.MiscService.checkDevKey(MiscService.java:66) 
     at br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.(TestLinkAPI.java:162) 
     at hudson.plugins.testlink.TestLinkBuilder.getTestLinkSite(TestLinkBuilder.java:244) 
     at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:134) 
     at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 
     at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 
     at hudson.model.Build$BuildExecution.build(Build.java:199) 
     at hudson.model.Build$BuildExecution.doRun(Build.java:160) 
     at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) 
     at hudson.model.Run.execute(Run.java:1502) 
     at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
     at hudson.model.ResourceController.execute(ResourceController.java:88) 
     at hudson.model.Executor.run(Executor.java:236) 
Caused by: org.apache.xmlrpc.client.XmlRpcHttpTransportException: HTTP server returned unexpected status: Found 
     at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getInputStream(XmlRpcSunHttpTransport.java:94) 
     at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:152) 
     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:62) 
     ... 12 more 
ERROR: Error communicating with TestLink. Check your TestLink configuration. 

下面我有在TESTLINK安裝我的詹金斯的全局配置設置

Name: testlink 
URL: http://<host name>/mr61_php5/testlink/lib/api/xmlrpc.php 
Developer key: generated from Testlink (Settings->Generate a new key) 

能否請你,如果我點我想念什麼?

是Testlink文件夾結構,你提到的路徑

回答

3

通常情況下,不包含xmlrpc.php文件

Probabaly撥錯網址:網址:HTTP:/// mr61_php5/TestLink的/ lib目錄/ API/

正確的URL通常這種格式 的是.../TestLink的/ lib目錄/ API/XMLRPC // xmlrpc.php

請檢查正確網址,或試圖打開xmlrpc.php頁面,讓你可以獲得文件的正確路徑。按我的假設應該是有點這樣的:

HTTP:///mr61_php5/testlink/lib/api/xmlrpc/xmlrpc.php

This is how the API looks like with the xmlrpc.php file

+0

謝謝Shubhankar Raj。我們可以在登錄頁面http:// /xampp/testlink/lib/api/xmlrpc/v1/ –

相關問題