Saturday, April 25, 2015

What is Capybara?

capybaraCapybara is a web-based automation framework used for creating functional tests that simulate how users would interact with your application. Today, there are many alternatives for web-based automation tools, such as Selenium, Watir, Capybara, etc. All of these tools have the same purpose, but there are slight differences that make each of them more or less suitable.

The main characteristic that developers are aiming for is the ability to have tests that are modular, easy to write, and easy to maintain. This is especially true in Agile/TDD environments where writing tests is second nature. These tests are expected to give good and fast feedback on code quality. As time goes by, the number of tests grows and it can be a real nightmare to maintain the tests, especially when the tests are not modular and simple enough.

Friday, April 24, 2015

What is Cucumber?

Technorati Tags: ,,
Cucumber – a Behavior Driven Development (BDD) framework which is used with Selenium / Capybara for performing acceptance testing.

Cucumber is a tool based on Behavior Driven Development (BDD) framework which is used to write acceptance tests for web application. It allows automation of functional validation in easily readable and understandable format (like plain English) to Business Analysts, Developers, Testers, etc.

Feature files are essential part of cucumber which is used to write test automation steps or acceptance tests. All the feature files ends with .feature extension.