【发布时间】:2013-12-06 04:55:42
【问题描述】:
由于我没有足够的声誉,我可以回答以下问题:
我正在尝试通过 xmlrpc API 连接到 TestLink。我在 TestLink 的 config.inc.php 中设置了以下内容:
$tlCfg->api->enabled = TRUE;
$tlCfg->exec_cfg->enabled_test_automation = ENABLED;
并重新启动 apache 服务器。我尝试通过python包TestLink-API-Python-client(https://github.com/orenault/TestLink-API-Python-client)连接TestLink服务器
from testlink import TestlinkAPIClient, TestLinkHelper
import sys
URL = 'http://MYSERVER/testlink/lib/api/xmlrpc.php'
DevKey = 'MYKEY'
tl_helper = TestLinkHelper()
myTestLink = tl_helper.connect(TestlinkAPIClient)
myTestLink.__init__(URL, DEVKEY)
myTestLink.checkDevKey()
然后我收到一个 TLConnectionError,说明我的网址和 404 Not Found...
有人知道吗?
谢谢。
回答:从 URL 中删除“testlink”。例如:
URL = 'http://MYSERVER/lib/api/xmlrpc.php'
【问题讨论】: