An issue with Kiwi TCMS

我的未来我决定 提交于 2019-12-24 09:24:54

问题


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'

回答1:


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.



来源:https://stackoverflow.com/questions/48440063/an-issue-with-kiwi-tcms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!