Documentation vs test about cucumber but not only for vegetarians
-
Upload
miksturait-foundation-web-mobile-community -
Category
Technology
-
view
1.237 -
download
1
description
Transcript of Documentation vs test about cucumber but not only for vegetarians
Documentation vs
Tests
About tool Cucumber,but not only for vegetarians
Michał Czyż
<me>
1910 scenarios
@<estimation_number>
• @1 @2
●@3 @5
@8 @13
@<initials>
@bk @mw @rj
@m<number> @i<number>
@_<status>
@new, @removed, @skipped
@__<place_id>::<component_id>
@__checkout__address_details
@__checkout__address_details::
address_look_up
@__checkout__confirmation
@m1 @mc @__place_one::c_oneFeature: Sample feature
@i1 @2Scenario: sample scenario one
@i2 @1 @newScenario: sample scenario two
#:::wireframe: http://some_url#:::page: place_one#:::component: c_one@m1 @mcFeature: Sample feature
#:::estimation: 2@i1Scenario: sample scenario one
@m1 @_spec
@m1 @_todo,@_backlog @mc
@m1 ~@_done,@_qa,@_accepted
@m1, @m2, @m3 @new
1) stories_<latest>
2) stories_<timestamp>
Synchronization (remote branches)
Part of bigger ecosystem
include: - signed in user - registered userabout: represents the stakeholders and the businessgoals: - have control and overview of product building ...motiviations: - build great productpoints_of_pain: - delays in deliverytasks:...
./personas/product_owner.yml
@__login::sign_upFeature: Sign up
In order to get access to protected sections of the siteAs a registered userI want to sign up
Scenario: Visitor signs up with invalid data ...
Scenario: Visitor signs up with valid data ...
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
# 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
?
Contact info:Mail [email protected] cs3b
Tools and usefull resources:https://github.com/aslakhellesoy/cucumber/wikihttps://github.com/cs3b/cucumber_fmhttp://demo.cucumber.fm/documentation/features
https://github.com/cavalle/steakhttps://github.com/cs3b/steak_fm
Source of steak example[28] https://github.com/drugpl/drug-site/blob/master/spec/acceptance/homepage_spec.rb
Font:http://www.fontsquirrel.com/fonts/TitilliumText
Pictures[3,6] http://www.selleo.com[9,10] selleo – Rafał Bromirski[14,15,17,18] http://demo.cucumber.fm[20] selleo – Rafał Bromirski[23] from redmine[24] http://www.dreamstime.com/royalty-free-stock-photos-happy-with-laptop-image6621668[26] http://www.dreamstime.com/royalty-free-stock-image-steaks-on-the-grill-image5835086