介绍

Robot Framework 是一个基于Python的、可扩展的、关键字驱动的测试自动化框架,用于端到端的验收测试或者验收驱动测试开发(ATDD)中。

为什么选择Robot Framework

整体架构

Robot Framework是一个通用的,应用和技术无关的框架。它的高度模块化的架构如下图所示:

../_images/architecture.png

测试数据(test data)使用非常简单、易于编辑的表格格式. Robot Framework会解析测试数据, 执行测试用例, 并生成日志和报告. 框架本身对测试对象一无所知, 而是通过 测试库 与其交互. 测试库可能是直接使用被测应用程序的接口, 也可以使用其它底层的测试工具作为驱动.

示例截图

以下是 测试数据测试报告测试日志 的截图:

testdata_screenshots

测试用例文件

screenshots

执行报告和日志

如何获取更多信息

项目页面

获取Robot Framework更多权威资讯的首要地方当然是其官网, http://robotframework.org. 项目源码是托管在 GitHub

邮件列表

注解

一般邮件列表都是使用英文交流, 能加入的同学肯定不需要翻译了, 这段偷懒略过.

There are several Robot Framework mailing lists where to ask andsearch for more information. The mailing list archives are open foreveryone (including the search engines) and everyone can also jointhese lists freely. Only list members can send mails, though, and toprevent spam new users are moderated which means that it might take alittle time before your first message goes through. Do not be afraidto send question to mailing lists but remember How To Ask QuestionsThe Smart Way.

  • robotframework-users
  • General discussion about all Robot Framework relatedissues. Questions and problems can be sent to this list. Used alsofor information sharing for all users.
  • robotframework-announce
  • An announcements-only mailing list where only moderators can sendmessages. All announcements are sent also to therobotframework-users mailing list so there is no need to join bothlists.
  • robotframework-devel
  • Discussion about Robot Framework development.