Cucumber - A testing tool?
Cucumber is a tool for running automated acceptance tests written in a behavior driven development (BDD) style.
- Cucumber is Aslak Hellesøy’s rewrite of RSpec’s “Story runner”, which was originally written by Dan North.
- written in the Ruby programming language
- The language that Cucumber understands is called Gherkin
- Cucumber was the second most popular testing framework after RSpec in the Ruby Toolbox.
- Best website to refer - http://cukes.info/
- The text is written in a business-readable domain-specific language and serves as documentation, automated tests and development-aid - all rolled into one format.
- While Cucumber can be thought of as a “testing” tool, the intent of the tool is to support BDD
- Cucumber works with Ruby, Java, .NET, Flex or web applications written in any language
- Translated in close to 40 spoken languages
- Cucumber also supports more succinct tests in tables - similar to what FIT does
To use Cucumber :
- You need Ruby installed.
- Then just run gem install cucumber from a command prompt.
- Now, run cucumber --help
- The user describes the behavior of the system with natural language with some specific keywords
- The process starts with creating a feature file, which explains a feature of the system and some scenarios of different test situations.
- As Cucumber doesn’t know how to interpret the features by itself, the next step is to create step definitions explaining it what to do when finding that step in one of the scenarios.
- The step definitions are written in Ruby.
- It can use and already has step definitions for Webrat, an acceptance testing tool for Ruby, which simulates a browser without Javascript support. But it can also be combined with a web automation framework like webdriver / waitir.
Thanks, Glad that helped!
ReplyDeleteSInce early 2012 there is also Cucumber-JVM - an implementation that runs natively on the JVM.
ReplyDeleteThere's also Behat (for PHP), Cucumber.js and SpecFlow (for .NET) among others.
When I originally commented I seem to have clicked the -Notify me when new comments are added- checkbox and now whenever a comment is added I receive 4 emails with the same comment. Is there a means you are able to remove me from that service? Thanks!
ReplyDeleteHadoop Online Training
Hi William Thanks for posting very Good Content On Selenium
ReplyDeleteNice post Thankyou sharing the post i have a confusion between QA and QC and Performance testing and Load Testing can you tell me about this.
ReplyDeletevisit here
Very nice posts,keep update more info.
ReplyDeletelearn cognos tm1
adidas yeezy
ReplyDeletelebron 18
kyrie 4 shoes
balenciaga triple s
kd13
kyrie 5 spongebob
pandora charms
supreme clothing
off-white
yeezy boost 350
Really you have done a good job. Thanks for sharing this valuable information....
ReplyDeleteAdvantages of Cucumber Framework in BDD
Behaviour Driven Development
see here replica gucci handbags Web Site gucci replica redirected here replica bags china
ReplyDeletej'y ai pensé Dolabuy Prada blog réplique louis vuitton vous pouvez essayer ceci répliques de sacs gucci
ReplyDelete