关于Robot Framework、Fitnesse、Cucumber的简单对比

参考:

http://www.radekw.com/blog/2009/03/27/automation-frameworks/

http://robotframework.googlecode.com/svn/wiki/publications/Quality_Matters_Q1_2009_Collino.pdf

 

RecentlyI researched many testing frameworks in order to choose one to use at work. Ispent few days practically testing the following frameworks:

·        Robot Framework

·        FitNesse

·        Cucumber

 

Ichose Robot Framework. It is not perfect, but promising, extensible, and activelydeveloped by the open source community. The following features made me choosethis framework over others:

·        Keyword driven

·        Ability to use re-usablekeywords

·        Large collection of built-inkeywords

·        Test cases and suites areHTML documents

·        RobotIDE test case editor

·        Extendable in Python andJython

·        Reporting using HTML and XMLfiles

All this gives a solid base to extendand wrap around in order to create state-of-the art testing framework. Robot framework is easily installable. Examples anddocumentation are more than enough to get automation engineers and testersstarted. It requires some learning and getting used to (especially RobotIDE)but once grasped, creating test cases is easy. Additionally, new keywords can be simplyprogrammed in Python or Jython, or created with existing keywords (macros).Tests are started with a command line tool and can be very simply scheduledusing cron.

 

FitNesseframework is widely used and popular, but is not as extendable as robotframework. It’s a testing wiki. Test cases are created as tables in wikidocuments and are started by clicking a button on a page. The results show upimmediately, but there is no way to store them. Each test table must have acode fixture written in Java. Other languages can be used with a help of additionalFit servers. Being a wiki,FitNesse cannot be used for automatic and non-interactive testing. Automation can be achieved by usingcommand line runner or ant tasks.

 

Cucumberis a testing environment that allows testers to write tests in a a domain-specific languagebased on a spoken language. It’s behavior-driven, but all used sentencesmust be mapped in underlying programming language (Ruby by default). It’s easyto transcribe users stories into test cases, but it requires automation engineer to work with testerswriting every test case. On the other hand, it’s a very interesting andamazing way to write unittests.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值