首页 > Windows开发 > 详细

Robot Framework -003 在Windows10 安装Eclipse作为编辑器,安装 RED 插件。

时间:2020-05-01 22:07:13      阅读:89      评论:0      收藏:0      [点我收藏+]

本文采用Eclipse及其对应的插件来编辑、管理、运行Robot Framework.

 

https://www.eclipse.org/downloads/   本文安装  Eclipse IDE 2020?03 64bit

下载得到文件: eclipse-inst-win64.exe  在windows上双击运行。 具体的安装过程略。

 

安装Eclipse的插件  

可参考文档:https://github.com/NitorCreations/RobotFramework-EclipseIDE/wiki/Installation

Installing using update site

  1. Start Eclipse, then select Help > Install New Software.
  2. Click Add, in the top-right corner. In the Add Repository dialog that appears, enter "RobotFramework-EclipseIDE" for the Name and the following URL for the Location: http://sourceforge.net/projects/robotide/files/stable/
  3. Click OK.
  4. In the Available Software dialog, select the checkbox next to Robot Framework Eclipse IDE and click Next.
  5. In the next window, you‘ll see a list of the tools to be downloaded. Click Next.
  6. Read and accept the license agreements, then click Finish.
  7. When the installation completes, restart Eclipse.
  8. See usage for more information about configuring and using the plugin.

技术分享图片

 

 

 接受协议,安装之后,需要重新启动。

 

安装 RED - Robot Editor

Install from Marketplace/Update Site

Marketplace: Click Help -> Eclipse Marketplace -> and type into Find field "RED" Update Site: Click Help -> Install New Software -> Add and set address in Location to:

http://master.dl.sourceforge.net/project/red-robot-editor/repository

技术分享图片

 

由于Robot使用UTF-8编码格式,因此需要设置Eclipse默认使用UTF-8格式。

技术分享图片

 

 

 技术分享图片

 

 

 

 

 

 

 

重启Eclipse之后,设置Robot视图。

技术分享图片

 

 

技术分享图片

 

 

下面就可以创建Robot的工程了。

技术分享图片

 

 

建立第一个Robot工程

技术分享图片

 

 

工程文件结构如下

技术分享图片

 

 新建第一个测试套件,在工程test01鼠标右键弹出如下菜单

技术分享图片

 

 技术分享图片

 

 

在测试套件里写一个测试用例: 测试用例1 

技术分享图片

 

 

运行测试用例

 技术分享图片

 

 运行结果如下:

 

技术分享图片

 

 

上面显示全部测试通过。

还可以点击上面的链接查看 report.html

技术分享图片

 

Robot Framework -003 在Windows10 安装Eclipse作为编辑器,安装 RED 插件。

原文:https://www.cnblogs.com/abc789/p/12814719.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!