Robot Framework
上一篇 /
下一篇 2011-10-20 16:57:11
/ 个人分类:功能自动化工具
1. 什么是Robot Framework?关于Robot Framework的快速入门可参见:http://www.virtuousprogrammer.com/?p=264
关于Robot Framework的详细说明参见:http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html?r=2.5.7
2.
Robot FrameworkArchitecture需要说明的是,Robot Framework本身并不与被测系统有任何直接的交互,它通过Test Libraries或是一些
测试工具(如
Selenium, AuotIt, Sikuli)作为驱动与被测系统进行交互,相当于是Test Libraries 或测试工具的front-end.
在接下来的详解中,我们使用Selenium作为Robot Framework的驱动。
3. 安装
Robot Framework需要
Python或
Jython环境,具体需要哪个环境主要是看你使用的Test Libraries或是Test Tools的需要,如果使用Sikuli作为测试工具则需要安装Jpython.
我们选择Python.
(1). 先安装Python(2.5+),没有可从如下地址下载:http://www.python.org/
(2). 下载
Robot Framework,有几种安装方法可用,参见
Installation MacOSX安装方式:
转到Robot Framework安装目录
python setup.py install
(3). 下载
Selenium Library, 安装方法参见
SeleniumLibrary Installation MacOSX安装方式:
- 转到Selenium Library安装目录
python setup.py install
(4). 设置环境变量
为了能方便地通过命令行运行Robot Framework的脚本,需要设置环境变量,对于Unix类的
操作系统环境变量是自动完成的,但是
Windows操
作系统需要手动设置,具体的方法参见:http://robotframework.googlecode.com/hg/doc/userguide
/RobotFrameworkUserGuide.html?r=2.5.7#setting-up-environment
(5). 验证安装
$ pybot --version
Robot Framework 2.5 (Python 2.6.x on darwin)
收藏
举报
TAG: