本文介绍了Kiwi TCMS 的一个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用安装了最新版本 (3.49) 的 Kiwi TCMS RPC API(项目页面)并且它即使我遵循 API 文档,也失败了,如下所示.我想知道是否有人可以为我指明正确的方向.

I am trying to use Kiwi TCMS RPC API (project page) with the newest version installed (3.49) and it fails miserably as below even though I follow the API documentation. I wonder if there is someone that could point me in the right direction.

  File "api_test.py", line 18, in <module>
    print(testplan.author)
  File "/usr/local/lib/python3.4/dist-packages/tcms_api/base.py", line 63, in getter
    self._fetch()
  File "/usr/local/lib/python3.4/dist-packages/tcms_api/mutable.py", line 273, in _fetch
    inject = self._server.TestPlan.get(self.id)
  File "/usr/lib/python3.4/xmlrpc/client.py", line 1098, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.4/xmlrpc/client.py", line 1432, in __request
    verbose=self.__verbose
  File "/usr/local/lib/python3.4/dist-packages/tcms_api/xmlrpc.py", line 79, in request
    except http.client.RemoteDisconnected:
AttributeError: 'module' object has no attribute 'RemoteDisconnected'

推荐答案

看来原因是调用 Kiwi TCMS (tcms-api) 的 Python 库与 Kiwi 本身之间存在错位.更新两者;分别升级到 1.50 和 1.51 版有助于解决问题.

It appears that the reason was a misalignment between the Python library to call Kiwi TCMS (tcms-api) and Kiwi itself. Updating both; to version 1.50 and 1.51 respectively helped resolve the issue.

这篇关于Kiwi TCMS 的一个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 10:21