Easyb (http://easyb.org) is a Groovy-based BDD tool. It makes it easy to write light-weight stories and scenarios using the classic BDD-style "given-when-then" structure, and then to implement them in Groovy. The Thucydides easyb plugin is designed to make it easy to write Thucydides tests using easyb.
In easyb, stories are written in Groovy. Unlike with JBehave, easyb stories contain both the text for each step, and the first level of implementation. For example, a simple easyb story is shown here:
using "thucydides"
import net.thucydides.demos.jobboard.requirements.Application.ManageCategories.AddNewCategory
thucydides.tests_story AddNewCategory
scenario "The administrator adds a new category to the system", {
given "a new category needs to be added to the system"
when "the administrator adds a new category"
then "the system should confirm that the category has been created"
and "the new category should be visible to job seekers"
}
scenario "The administrator adds a category with an existing code to the system", {
given "the administrator is on the categories list page"
when "the user adds a new category with an existing code"
then "an error message should be displayed" }
You can learn more about the Thucydides easyb integration in the User's Manual.
Copyright © 2007 - 2012 Wakaleo Consulting
Thucydides development is lead and supported by Wakaleo Consulting,
a Sydney-based company that helps organisations optimize their software
development process. We provide consulting, training and mentoring
services in Agile Development Practices such as Continuous Integration,
Test-Driven Development, Acceptance-Test Driven Development,
Build Automation, Code Quality Practices and Automated Web Testing.