其他测试框架 [RobotFramework] 自动化测试框架 Robotframework 最强大的 IDE:RIDE 目前已经正式支持 Python3.0!

matthewD · 2019年03月03日 · 837 次阅读

RobotFramework 自动化测试框架作为当今使用最多的框架,他的 IDE:RIDE 一直没有推出稳定的支持 python3.0 的版本。

笔者目前在 github 上发现,这款 IDE 目前推出了支持 python3.0 的稳定 release:1.7.3.1

下面我们来看 release note,在这里笔者做一个翻译 https://github.com/robotframework/RIDE/blob/master/doc/releasenotes/ride-1.7.3.1.rst

release note

The most notable enhancements are:
Compatible with Python 2.7 and >=3.6(完美支持 python3.0)
Runs with "any" wxPython version (2.8.12.1, 3.0.2 on Python 2.7) and 4.0.4 for both Python 2.7 and >=3.6(完美支持基于 python2.0 和 3.0 的 wxPython)
Runner can select new or old versions of Robot Framework (pybotvs`robot)(可以在 runner 选择 pybot 和 robot)
Panes, Tabs, Toolbar are detachable and re-positionable thanks to wxPython's AUI module(可以任意调整框架各个图标按钮的位置)
Text Editor now have a autocomplete feature(支持自动补全!)
Test cases on tree pane, have the new official icon, and is animated when running or paused(测试用例有了新的图标和在执行时有了新的动画效果)
Long test names on tree pane, have name shortened by ... and name visible on tool-tip(较长的测试名字会被...截断)
On tree pane at test suite level, context menu allows to open folder in file manager, and to remove the Read-Only file attribute(较长的测试名字会被...截断)
If no tests are selected there will be a confirmation to proceed with running all tests(如果没有选中任何的 test,会有弹出提示框,点击确认,会全部执行所有的 case)
Like F8 to run tests, now there is F9 to run them with log level DEBUG· (添加了新的 DEBUG level 的执行)
The Grid Editor now have a JSON editor for a cell (it validates when saving)

由 release note 我们惊喜的发现,RIDE 版本已经完美支持 python3.0 了,并且新版 RIDE 还多了很多新功能。那么废话不多说,我们来看看在 python3.0 下如何安装:

我们仍然使用 pip 来进行安装:

在 windows 上,cmd 命令我们通过以下命令行:

python3.0:

pip install -U wxPython

pip install -U robotframework-ride

好啦,现在输入 ride.py 来使用全新的基于 python3.0 的 IDE 吧!

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册