【问题标题】:'xmlrpclib.Fault: Request contains to few param' error when using ldtp使用 ldtp 时出现“xmlrpclib.Fault:请求包含少量参数”错误
【发布时间】:2013-10-03 08:33:28
【问题描述】:

我一直在尝试使用 LDTP (Cobra) 的 Windows 实现来测试 Python 中的独立应用程序。起初它似乎运行良好,尽管大部分时间运行缓慢。例如,我能够选择菜单项:

selectmenuitem('Sample App','File;New')

但是,当我尝试执行以下任何行时:

waittillguiexist('Sample App', 'btnOK')
rightclick('Sample App','tblcBRANCH')

我在 Python 中收到以下错误:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build\bdist.win-amd64\egg\ldtp\client.py", line 69, in __call__
  File "C:\Python27\lib\xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "build\bdist.win-amd64\egg\ldtp\client.py", line 186, in request
xmlrpclib.Fault: <Fault 0: 'Request contains too few param elements based on
  method signature.'>

我假设我可能仍然会在使用其他功能时遇到此错误。我的 LDTP 安装有什么问题吗?非常感谢任何帮助。

【问题讨论】:

    标签: python automated-tests xml-rpc ui-automation


    【解决方案1】:

    我是这个项目的作者,您正在使用的 API 缺少参数,请refer

    【讨论】:

    • 欢迎来到 StackOverfow!答案应该包含链接网站的基本部分,因为链接有时会过时和中断。
    【解决方案2】:

    我也看到了这个问题。我的解决方案是从 python 文件夹(C:\python2.7\lib\sites-packages)删除 ldtp-xxx.egg,并从 easy_install 文件中删除条目。重新安装 CobraWinLDTP-3.5.0。那么问题就解决了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-08-06
      • 1970-01-01
      • 2020-02-25
      • 1970-01-01
      • 2012-04-01
      • 2020-01-06
      • 1970-01-01
      • 2016-08-25
      相关资源
      最近更新 更多