RFS的web自动化验收测试—介绍篇

发表于:2014-1-02 11:20

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:齐涛-道长    来源:51Testing软件测试网采编

  引言:什么是RFS——RobotFramework+selenium2library,本系列主要介绍web自动化验收测试方面。
  == RobotFramework的一些特性==
  易于使用,采用表格式语法,统一测试用例格式;
  重用性好,可以利用现有关键字来组合新关键字;
  支持变量;
  支持创建基于数据驱动的测试用例。
  结果报告和日志采用HTML格式,易于阅读;
  提供标签以分类和选择将被执行的测试用例;
  平台、应用无关;
  功能全面,支持WEB测试(Selenium)、Java GUI 测试,启动线程、终端、SSH等;
  易于扩展,提供了简单API,用户可以自定义的基于Python或者Java的测试库;
  易于集成,提供了命令行接口和基于XML的输出文件;
  易于与版本管理集成;
  ==RobotFramework的架构方案==
  ==RobotFramework的中文支持==
  由于初始并不支持中文,于是在生成测试报告的时候对于中文的关键字无法识别,使用下面的方法可以正常显示中文。
  在[PythonDir]\Lib\site-packages\robot\utils下的encoding.py文件中,找到def _get_output_encoding(): 原来的编码是’cp437’ 将其改成’ cp936’(简体中文,gbk) 。
  ==目前robotFramework支持的测试库==
  下面这些是可以在robotFramework上支持的测试库,但是要独立安装程序。在安装之后,使用的时候要单独加载测试库。
  SeleniumLibrary - A web testing library that uses popularSelenium tool internally.
  watir-robot - A web testing library that uses popularWatir tool via theremote library interface.
  WatinLibrary - A web testing library that usesWatin tool (a .NET port of Watir) via theremote library interface.
  SwingLibrary - A Swing GUI testing library.
  EclipseLibrary - A library for testing Eclipse RCP applications using SWT widgets.
  AutoItLibrary - Windows GUI testing library that usesAutoIt freeware tool as a driver.
  DatabaseLibrary (Java) - A test library that provides common functionality for testing database contents. Implemented using Java so works only with Jython.
  DatabaseLibrary (Python) - Another library for database testing. Implemented with Python and works also on Jython.
  SSHLibrary - A test library that enables SSH and SFTP.
  HTTP test library using livetest
  HTTP test library using Requests
  How-To: Sikuli and Robot Framework Integration - This is not really a library but these instructions explain how to integrateSikuli tool with Robot Framework
《2023软件测试行业现状调查报告》独家发布~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号