This document discusses documentation vs tests for the Cucumber tool and provides examples of how to write Cucumber features and scenarios using tags like @i1 and @m1. It also includes information about synchronization of remote branches for stories and integrating Cucumber with other tools. Contact and resource details are provided at the end.
25. ./personas/product_own
er.yml
include:
- signed in user
- registered user
about: represents the stakeholders and
the business
goals:
- have control and overview of product
building ...
motiviations:
- build great product
points_of_pain:
- delays in delivery
26. @__login::sign_up
Feature: Sign up
In order to get access to protected
sections of the site
As a registered user
I want to sign up
Scenario: Visitor signs up with invalid
data
...
Scenario: Visitor signs up with valid data
...
27.
28. feature "Homepage", %q{
To update requirement for project
product owner
should be able to change feature content} do
scenario "should show past event if no upcoming" do
title, description = "Beer chess", "Happy drinking"
at_time 1.month.ago do
@website.has(:event, :title => title,
:description => description)
end
@user.visit(homepage)
within "article.event" do
@user.should_see(title, description)
@user.should_see_translated("events.last_event")
end
end
29. # To update requirement for project
# product owner
# should be able to change feature content
## page: homepage
## developer: ps
feature "Homepage", :milestone => '0.1' do
# Given one month ago event was entered
# When user open homepage
# Then she should see this event on top
## wireframe: http://justproto.com/....
scenario "should show past event if no upcoming",
:iteration => 'one', :status => 'done' do