开发者

General Cucumber Clarification

I am interested in Cucumber, but am confused a bit. From the website: 1) Define stories in plain text. 2) Write a step definition in Ruby 3) Run and watch it fail 4) Write code to make the step pass etc...

Does that mean you can only use Cucumber for projec开发者_如何学Gots which are written in Ruby? What about using it for a whole web app written in various languages and/or various platforms?


I feel like I'm giving the same answer today three times.

My current team successfully used Cucumber to test two different web apps running on a Java EE platform. Several teams in my organization are using it to test similar Java EE apps. One team used Cucumber to test a batch application, and some others are looking at testing legacy COBOL and database apps with it.

Some use Cucumber natively with Ruby, others are using Cuke4Duke. Look for examples using Cucumber with Watir, Celerity, or watir-webdriver for testing Web Apps.


You test against sites built in any language, for example here is how to test against PHP:

https://github.com/aslakhellesoy/cucumber/wiki/PHP


Cucumber is fun and all, but before you make your decision you should consider the impact of Cucumber adoption. You can take a look at what I learned from my experience with Cucumber here Pitfalls of Cucumber adoption

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜