Robot Framework - 无法在 MacOS 上启动 RIDE

时间:2021-01-28 14:47:04

标签: python-3.x robotframework robotframework-ide

背景

我想为移动自动测试构建一个环境。关于工具,我想用 Appium 和 Robot Framework。

MacOS Mojave (10.14.6)

问题

我想使用 RIDE 来编写我的测试,但我无法启动它。

我遵循了 README 中的安装指南,我已经测试了很多方法来获得良好的环境,但每次都失败了,我迷路了... 我测试过的:

  • python3.9 和最新版本的 Robot Framework,如 README 中所述,2.0b2.dev1
  • python3.9 的最新发布版本,即 1.7.4.2
  • python2.7 与 RF 1.7.4.2 和最后一个
  • python3.8 具有相同的两个版本的 RF

没有一个工作。

以下是我尝试启动 RIDE 时 Python 3.8RIDE 2.0b2.dev1 的日志

$ ride.py
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/robotide/application/application.py", line 64, in OnInit
    self._plugin_loader.enable_plugins()
  File "/usr/local/lib/python3.8/site-packages/robotide/application/pluginloader.py", line 36, in enable_plugins
    p.enable_on_startup()
  File "/usr/local/lib/python3.8/site-packages/robotide/application/pluginconnector.py", line 52, in enable_on_startup
    self.enable()
  File "/usr/local/lib/python3.8/site-packages/robotide/application/pluginconnector.py", line 57, in enable
    self._plugin.enable()
  File "/usr/local/lib/python3.8/site-packages/robotide/contrib/testrunner/testrunnerplugin.py", line 225, in enable
    self._add_tab_to_notebook()
  File "/usr/local/lib/python3.8/site-packages/robotide/contrib/testrunner/testrunnerplugin.py", line 814, in _add_tab_to_notebook
    self._output_panel = self._build_output_panel(self.panel)
  File "/usr/local/lib/python3.8/site-packages/robotide/contrib/testrunner/testrunnerplugin.py", line 842, in _build_output_panel
    self.show_message_log,
  File "/usr/local/lib/python3.8/site-packages/robotide/pluginapi/plugin.py", line 136, in __getattr__
    raise AttributeError("No attribute or settings with name '%s' found" % name)
AttributeError: No attribute or settings with name 'show_message_log' found
OnInit returned false, exiting...
Error in atexit._run_exitfuncs:
wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at /Users/robind/projects/bb2/dist-osx-py38/build/ext/wxWidgets/src/common/wincmn.cpp(470) in ~wxWindowBase(): any pushed event handlers must have been removed

这是已安装的框架

$ pip3 list
Package             Version
------------------- ----------
numpy               1.19.5
Pillow              8.1.0
pip                 20.3.3
psutil              5.8.0
Pygments            2.7.4
Pypubsub            4.0.3
robotframework-ride 2.0b2.dev1
setuptools          51.1.1
six                 1.15.0
wheel               0.36.2
wxPython            4.1.1

有人可以帮我吗?

1 个答案:

答案 0 :(得分:0)

这个问题应该已经在当前的开发分支中修复了。 请尝试安装:

pip install -U https://github.com/robotframework/RIDE/archive/master.zip

编辑: 您可以尝试从我的 colours 分支安装:

pip3 install -U https://github.com/HelioGuilherme66/RIDE/archive/colours.zip

或者在文件 show_message_log = True[Test Runner] 部分添加缺少的属性 settings.cfg