机器人框架 - 无法在 MacOS 上启动 RIDE



上下文

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

MacOS Mojave(10.14.6)

问题

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

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

  • 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

有人能帮我吗?

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

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

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

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

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

相关内容

  • 没有找到相关文章

最新更新