-
环境搭建
-
基本流程
-
Ride面板介绍
-
Robotframework库
-
用例编写和执行
-
Robot framework的安装
Robot Framework
- Log level for robot test
(Reference link: http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html)
We can add log level when debug, in order to see more code information in the log.
–loglevel DEBUG
–loglevel TRACE
–loglevel INFO
Passing parameters with Int type
By default, all the parameters passed from Robot is String, if you want to pass a int, just add ${}, example: ${200}.A good example of Case Organization:
https://bitbucket.org/robotframework/webdemo/src/9206bb637e9d15d45d33a35a55f7f4c1de898898/login_tests/invalid_login.robot?at=master&fileviewer=file-view-defaultHow to specify relative path in Robot Framework
TEST PROJECT (Root folder)
|
|_____ Resource (folder)
| |_____ MyProfile.txt
| |_____ MyPicture.jpg
|
|_____ Test (folder)
|_____ MyTest.robotI want to access the MyProfile.txt in MyTest.robot using relative reference instead of absolute path, solution should be: {/}…\Resource\MyProfile.txt
【目录】
环境搭建 基本流程 Ride面板介绍 Robotframework库 用例编写和执行【一、环境搭建】
Robot framework的安装Robot framework框架是基于python的,所以一定要搭建python环境,网上可自行查找。robotframework-2.8.5.win-amd64.exe(双击下一步即可安装)转载于:https://www.cnblogs.com/axing2018/p/9140232.html
1、官方文档:robotframework.org
2、博客参考:
Robot Framework自动化测试(一)---第一个脚本 - 虫师 - 博客园
http://www.cnblogs.com/fnng/p/3871712.html
RobotframeWork社交化知识社区
http://www.robotframework.net/
Robot Framework 快速入门 - TIB - 博客园
http://www.cnblogs.com/testware/archive/2011/10/31/2230236.html
老道长的测试生活 - 博客频道 - CSDN.NET
http://blog.csdn.net/tulituqi
Robot Framwork问题和解决方法 - 王德超 - 博客频道 - CSDN.NET
http://blog.csdn.net/fetch001/article/details/51766418
selenium:你必须知道的七件事 - 话多必菜 - 博客频道 - CSDN.NET
http://blog.csdn.net/kufei123/article/details/47375065
robotframework+Selenium2Library 模态窗口的处理 - 佐啦 - 博客园
http://www.cnblogs.com/zuola/p/5750018.html
3、浏览器driver:
geckodriver(Firefox):https://github.com/mozilla/geckodriver/releases
Chromedriver(Chrome):https://sites.google.com/a/chromium.org/chromedriver/home
IEDriverServer(IE):http://selenium-release.storage.googleapis.com/index.html
operadriver(Opera):https://github.com/operasoftware/operachromiumdriver/releases
phantomjs(PhantomJS):http://phantomjs.org
4.4扩展Robot Framework Jar
使用标准JDK安装中包含的jar命令,可以非常简单地向Robot Framework jar添加其他测试库或支持代码。Python代码必须放在jar里面的Lib目录中,根据包结构,Java代码可以直接放在jar的根目录下。
例如,要将Python包mytestlib添加到jar,首先将mytestlib目录复制到 名为Lib的目录下,然后在包含Lib的目录中运行以下命令:
jar uf /path/to/robotframework-2.7.1.jar Lib要将已编译的java类添加到jar,您必须具有与Java包结构相对应的目录结构,并以递归方式将其添加到zip。
例如,要在包org.test中添加类MyLib.class,该文件必须位于org / test / MyLib.class中,您可以执行:
jar uf /path/to/robotframework-2.7.1.jar org转载于:https://www.cnblogs.com/colos/p/11084055.html