自动化工具 Robot Framework IDE 更新 1.7.3.1 版本,支持 python3.6+

鱼肚白 · 2019年02月01日 · 最后由 Lynne琳琳酱 回复于 2020年02月26日 · 2516 次阅读

Robot Framework IDE 1.7.3.1(时隔三年终于发布新版本)
官方链接:https://github.com/robotframework/RIDE/blob/master/doc/releasenotes/ride-1.7.3.1.rst

RIDEv1.7.3.1 是一个有重大增强并修改了一些 bug 的新版本。v1.7.3.1 是个为了安装器和测试运行代理的即时修复版本。它包含 Robot 框架版本 3.1.1 的一些更新。

显著增强功能有
兼容 Python 2.7 and >=3.6
运行任何 wxPython 版本(2.8.12.1,3.0.2 在 Python 2.7 上)和 4.0.4 用于 Python 2.7 和> = 3.6
得益于 wxPython 的 AUI 模块,窗格,标签,工具栏是可拆卸和可重新定位的
文本编辑器现在具有自动补全功能
树窗格上的测试用例,具有新的官方图标,并在运行或暂停时设置动画
树窗格上的测试用例名称过长的名称用 “…” 进行缩短。并且在工具提示上可见
在测试套件级别的树窗格上,上下文菜单允许在文件管理器中打开文件夹,并删除只读文件属性
如果未选择任何测试,将确认继续运行所有测试
像快捷键 f8 一样可以运行测试,现在快捷键 f9 可以用 debug 的日志级运行它们。
网格编辑器现在有一个单元格的 JSON 编辑器(保存时验证)

不幸的是,这个版本可能会引入新的错误,未知或已知的错误:
在 Windows 上调用网格编辑器中的自动完成功能,您必须使用 Ctrl-Alt-Space,(或在禁用文本编辑器后继续使用 Ctrl-Space)
在 Windows 10 上,在网格编辑器中,当您在单元格上选择文本时,选择虽然有效,但不可见
在某些 Linux(例如 Fedora 28)上,当您在某些对话框中单击 “否” 时,会重复这些对话框
在某些 Linux 上,测试套件的新验证可能会引起关于 HTML 格式的抱怨,这使得无法打开文件夹。 您必须选择单个文件,终止 RIDE 并重新启动它。
非 UTF-8 控制台编码的问题可能会导致输出问题

更新策略
pip install --upgrade robotframework-ride
to install (or upgrade) the latest available release or use

pip install robotframework-ride==1.7.3.1
to install exactly this version. Alternatively you can download the source distribution from PyPI and install it manually. You may want to see the document BUILD.rest for other details.

NOTE: The installation process mentioned above is only working smoothly on Windows.
For other operating systems is better to do a two step install, with:
pip install -U -r https://raw.githubusercontent.com/robotframework/RIDE/master/requirements.txt
pip install -U robotframework-ride
RIDE 1.7.3.1 was released on Wednesday January 23, 2019.

共收到 20 条回复 时间 点赞

然而最终还是弃用 rf 了,

终于更新了

等到花儿都谢了😂 😂

快捷键还是不好用, tab, enter, 提示


你好,更新之后出现这个是什么情况,怎么解决


有人遇到过这个报错么

312011569 回复

你是怎么更新的?

我去催饭 回复

你 python 版本是多少,单独安装下 pywin32 试试,pip install pypiwin32

吴健松 回复

准备 web 化,用 robotframework,不用 ride

新版本好难用,感觉卡卡的

鱼肚白 回复


试了,不行哦

我觉得还是用nokia/RED吧。
这个 ride 现在刚支持 python3.6+,各种问题。就算没问题了,以后又停止更新了伤不起!

表格没以前好看了,间距变大了

升级新版本以后再换回旧版本不能关联关键字了,而且从 cmd 里面打开里面一堆错
Traceback (most recent call last):
File "D:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx_core.py", line 1466
9, in
lambda event: event.callable(*event.args, **event.kw) )
File "D:\Python27\lib\site-packages\robotide\editor\gridcolorizer.py", line 52
, in _coloring_task
self._colorize_cell(row, col, selection_content)
File "D:\Python27\lib\site-packages\robotide\editor\gridcolorizer.py", line 58
, in _colorize_cell
cell_info = self._controller.get_cell_info(row, col)
File "D:\Python27\lib\site-packages\robotide\controller\macrocontrollers.py",
line 170, in get_cell_info
return steps[row].get_cell_info(col)
File "D:\Python27\lib\site-packages\robotide\controller\stepcontrollers.py", l
ine 81, in get_cell_info
content = self._get_content_with_type(col, position)
File "D:\Python27\lib\site-packages\robotide\controller\stepcontrollers.py", l
ine 158, in _get_content_with_type
if self.is_user_keyword(value):
File "D:\Python27\lib\site-packages\robotide\controller\stepcontrollers.py", l
ine 195, in is_user_keyword
return self.parent.is_user_keyword(value)
File "D:\Python27\lib\site-packages\robotide\controller\macrocontrollers.py",
line 176, in is_user_keyword
return self.datafile_controller.is_user_keyword(value)
File "D:\Python27\lib\site-packages\robotide\controller\filecontrollers.py", l
ine 192, in is_user_keyword
return WithNamespace.is_user_keyword(self, self.datafile, value)
File "D:\Python27\lib\site-packages\robotide\controller\basecontroller.py", li
ne 97, in is_user_keyword
return self._namespace.is_user_keyword(datafile, value)
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 177
, in is_user_keyword
return bool(self.find_user_keyword(datafile, kw_name))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 173
, in find_user_keyword
kw = self.find_keyword(datafile, kw_name)
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 195
, in find_keyword
self._context_factory)
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 473
, in get_keywords_cached
datafile, context_factory.ctx_for_datafile(datafile))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 382
, in get_keywords_from
self._get_imported_resource_keywords(datafile, ctx) +
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 428
, in _get_imported_resource_keywords
ctx)
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 405
, in _collect_kws_from_imports
kws.extend(getter(imp, ctx))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 438
, in _res_kw_recursive_getter
kws.extend(self._res_kw_recursive_getter(child, ctx))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 438
, in _res_kw_recursive_getter
kws.extend(self._res_kw_recursive_getter(child, ctx))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 438
, in _res_kw_recursive_getter
kws.extend(self._res_kw_recursive_getter(child, ctx))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 439
, in _res_kw_recursive_getter
kws.extend(self._get_imported_library_keywords(res, ctx))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 400
, in _get_imported_library_keywords
self._lib_kw_getter, ctx)
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 405
, in _collect_kws_from_imports
kws.extend(getter(imp, ctx))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 413
, in _lib_kw_getter
return self._lib_cache.get_library_keywords(name, args, alias)
File "D:\Python27\lib\site-packages\robotide\namespace\cache.py", line 77, in
get_library_keywords
[k.with_alias(alias) for k in self._get_library(name, args)]
File "D:\Python27\lib\site-packages\robotide\namespace\cache.py", line 61, in
_get_library
if time.time() - last_updated > 10.0:
TypeError: unsupported operand type(s) for -: 'float' and 'unicode'
Traceback (most recent call last):
File "D:\Python27\lib\site-packages\robotide\editor\tooltips.py", line 42, in
OnShowToolTip
content = self._grid.get_tooltip_content()
File "D:\Python27\lib\site-packages\robotide\editor\kweditor.py", line 137, in
get_tooltip_content
cell_info = self._controller.get_cell_info(cell.Row, cell.Col)
File "D:\Python27\lib\site-packages\robotide\controller\macrocontrollers.py",
line 170, in get_cell_info
return steps[row].get_cell_info(col)
File "D:\Python27\lib\site-packages\robotide\controller\stepcontrollers.py", l
ine 81, in get_cell_info
content = self._get_content_with_type(col, position)
File "D:\Python27\lib\site-packages\robotide\controller\stepcontrollers.py", l
ine 158, in _get_content_with_type
if self.is_user_keyword(value):
File "D:\Python27\lib\site-packages\robotide\controller\stepcontrollers.py", l
ine 195, in is_user_keyword
return self.parent.is_user_keyword(value)
File "D:\Python27\lib\site-packages\robotide\controller\macrocontrollers.py",
line 176, in is_user_keyword
return self.datafile_controller.is_user_keyword(value)
File "D:\Python27\lib\site-packages\robotide\controller\filecontrollers.py", l
ine 192, in is_user_keyword
return WithNamespace.is_user_keyword(self, self.datafile, value)
File "D:\Python27\lib\site-packages\robotide\controller\basecontroller.py", li
ne 97, in is_user_keyword
return self._namespace.is_user_keyword(datafile, value)
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 177
, in is_user_keyword
return bool(self.find_user_keyword(datafile, kw_name))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 173
, in find_user_keyword
kw = self.find_keyword(datafile, kw_name)
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 195
, in find_keyword
self._context_factory)
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 473
, in get_keywords_cached
datafile, context_factory.ctx_for_datafile(datafile))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 382
, in get_keywords_from
self._get_imported_resource_keywords(datafile, ctx) +
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 428
, in _get_imported_resource_keywords
ctx)
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 405
, in _collect_kws_from_imports
kws.extend(getter(imp, ctx))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 438
, in _res_kw_recursive_getter
kws.extend(self._res_kw_recursive_getter(child, ctx))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 438
, in _res_kw_recursive_getter
kws.extend(self._res_kw_recursive_getter(child, ctx))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 438
, in _res_kw_recursive_getter
kws.extend(self._res_kw_recursive_getter(child, ctx))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 439
, in _res_kw_recursive_getter
kws.extend(self._get_imported_library_keywords(res, ctx))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 400
, in _get_imported_library_keywords
self._lib_kw_getter, ctx)
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 405
, in _collect_kws_from_imports
kws.extend(getter(imp, ctx))
File "D:\Python27\lib\site-packages\robotide\namespace\namespace.py", line 413
, in _lib_kw_getter
return self._lib_cache.get_library_keywords(name, args, alias)
File "D:\Python27\lib\site-packages\robotide\namespace\cache.py", line 77, in
get_library_keywords
[k.with_alias(alias) for k in self._get_library(name, args)]
File "D:\Python27\lib\site-packages\robotide\namespace\cache.py", line 61, in
_get_library
if time.time() - last_updated > 10.0:
TypeError: unsupported operand type(s) for -: 'float' and 'unicode'

zzm.note 回复

嗯.这个插件也蛮好用的

xinxjxjxj 回复

卡的我怀疑人生,直接回退到 1.5.2.1 版本,

mac 装不上啊,就那个 pywin32 的·报错

赵欢 回复

同样退回 1.5 后不能识别关键字了,edit 界面还显示不出来,请问有解决了吗

我去催饭 回复

我装完了写了文档,但是 RIDE 很难用我是配合 vscode 食用的

需要 登录 後方可回應,如果你還沒有帳號按這裡 注册