<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Shimon Krokhmal's blog - BDD</title>
    <link>http://www.krokhmal.com/</link>
    <description>medium : .NET | JavaScript | Secure coding | Databases | Sql Server | Oracle | CodeSmith | SPS | Life</description>
    <language>en-us</language>
    <copyright>Shimon Krokhmal</copyright>
    <lastBuildDate>Fri, 20 Jun 2008 12:50:18 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>Shimonkr@gmail.com</managingEditor>
    <webMaster>Shimonkr@gmail.com</webMaster>
    <item>
      <trackback:ping>http://www.krokhmal.com/Trackback.aspx?guid=2dde0c54-d00e-49b2-9fd5-721fa715454c</trackback:ping>
      <pingback:server>http://www.krokhmal.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.krokhmal.com/PermaLink,guid,2dde0c54-d00e-49b2-9fd5-721fa715454c.aspx</pingback:target>
      <dc:creator>Shimon krokhmal</dc:creator>
      <wfw:comment>http://www.krokhmal.com/CommentView,guid,2dde0c54-d00e-49b2-9fd5-721fa715454c.aspx</wfw:comment>
      <wfw:commentRss>http://www.krokhmal.com/SyndicationService.asmx/GetEntryCommentsRss?guid=2dde0c54-d00e-49b2-9fd5-721fa715454c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
as we described, The narrative should include a role, a feature and a benefit
</p>
        <p>
“As a [role] 
<br />
I want [feature] 
<br />
so that [benefit]” 
</p>
        <p>
This template has a number of advantages.<br />
By specifying the role within the narrative, you know who to talk to about the feature. 
<br />
By specifying the benefit, you cause the story writer to consider why they want a
feature.<br />
It gets interesting if you find the feature won’t actually deliver the benefit attributed
to it. 
<br />
This usually means you have a missing story. 
<br />
if there is one story with the current feature, which delivers a different benefit
(and is therefore still useful), then there is a hidden story whereby you will
need a different feature to deliver the benefit described.
</p>
        <p>
          <br />
          <strong>The scenario title should say what’s different- </strong>You should be able
to line up the scenarios side by side, and describe how they differ using only the
title. It should be obvious from the title whether this is the scenario you care about,
compared to the others.
</p>
        <p>
The scenario should be described in terms of <strong>Givens</strong>, <strong>Events</strong> and <strong>Outcomes</strong><br />
This is the single most powerful behavioral shift in the adopting BDD process. 
<br />
Simply by getting the business users, the analysts, the testers and the developers
to adopt this vocabulary of “given/when/then”, <strong>they discover that a world
of ambiguity falls away.</strong><br />
Not all scenarios are this simple. 
<br />
Some are best represented as a sequence of events, described as: 
</p>
        <p>
given [some context]<br />
 when [I do something] 
<br />
then [this happens] 
<br />
when [I do another thing] 
<br />
then [this new thing happens] 
</p>
        <p>
And so on. 
</p>
        <p>
An example is a wizard-style website, where you step through a sequence of screens
to build up a complex data model. 
<br />
It is perfectly appropriate to intermingle sequences of events and outcomes, as long
as you get into the habit of thinking in these terms.<br />
One interesting emergent behavior is that the quality of the conversation changes. 
<br />
You will quickly discover that you have missed out an assumed given, or forgotten
to verify an outcome.<br />
By introducing the given/when/then vocabulary, we can <strong>dramatically improve
the quality of the group interaction. </strong></p>
        <p>
          <strong>The givens should define all of, and no more than, the required context:<br /></strong>Any additional givens are distracting, which makes it hard for someone looking
at the story for the first time – whether from the technical or business side – to
understand what they need to know. 
<br />
Similarly any missing givens are really assumptions. If you can get a different outcome
from the givens provided, then there must be something missing.
</p>
        <p>
          <strong>The event should describe the feature :<br /></strong>The event itself should be very simple, typically only a single call into
the production code. As discussed above, some scenarios are more complicated than
this, but mostly the scenarios for a story will revolve around a single event. They
will differ only in the context (the givens) and the corresponding expected outcomes.
</p>
        <p>
          <strong>The story should be small enough to fit in an iteration :<br /></strong>There are no hard and fast rules about how you do this, as long as you break
it down into demonstrable chunks. 
<br />
In general if there are more than about five or six scenarios, a story can probably
be broken down by grouping similar scenarios together.<br />
 <br /><br />
When we need to understand what a computer system is supposed to do so that it can
best serve some business need, questions like:<br />
• What is the most important thing the system should do?<br />
• What is the next most important thing the system doesn't yet do? 
<br />
• If we were to switch off the system, where and what would be the biggest impact? 
</p>
        <p>
These Powerful questions can be tough to answer. 
<br />
But following these will guide us to insights that we hadn't though of.<br /></p>
        <img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=2dde0c54-d00e-49b2-9fd5-721fa715454c" />
        <br />
        <hr />
Shimon krokhmal, a part of the Krokhmal family</body>
      <title>BDD : Defining the language - deep dive</title>
      <guid isPermaLink="false">http://www.krokhmal.com/PermaLink,guid,2dde0c54-d00e-49b2-9fd5-721fa715454c.aspx</guid>
      <link>http://www.krokhmal.com/2008/06/20/BDDDefiningTheLanguageDeepDive.aspx</link>
      <pubDate>Fri, 20 Jun 2008 12:50:18 GMT</pubDate>
      <description>&lt;p&gt;
as we described, The narrative should include a role, a feature and a benefit
&lt;/p&gt;
&lt;p&gt;
“As a [role] 
&lt;br&gt;
I want [feature] 
&lt;br&gt;
so that [benefit]” 
&lt;/p&gt;
&lt;p&gt;
This template has a number of advantages.&lt;br&gt;
By specifying the role within the narrative, you know who to talk to about the feature. 
&lt;br&gt;
By specifying the benefit, you cause the story writer to consider why they want a
feature.&lt;br&gt;
It gets interesting if you find the feature won’t actually deliver the benefit attributed
to it. 
&lt;br&gt;
This usually means you have a missing story. 
&lt;br&gt;
if there is one story with the current feature, which delivers a different benefit
(and is therefore still useful), then there is&amp;nbsp;a hidden story whereby you will
need a different feature to deliver the benefit described.
&lt;/p&gt;
&lt;p&gt;
&lt;br&gt;
&lt;strong&gt;The scenario title should say what’s different- &lt;/strong&gt;You should be able
to line up the scenarios side by side, and describe how they differ using only the
title. It should be obvious from the title whether this is the scenario you care about,
compared to the others.
&lt;/p&gt;
&lt;p&gt;
The scenario should be described in terms of &lt;strong&gt;Givens&lt;/strong&gt;, &lt;strong&gt;Events&lt;/strong&gt; and &lt;strong&gt;Outcomes&lt;/strong&gt;
&lt;br&gt;
This is the single most powerful behavioral shift in the adopting BDD process. 
&lt;br&gt;
Simply by getting the business users, the analysts, the testers and the developers
to adopt this vocabulary of “given/when/then”, &lt;strong&gt;they discover that a world
of ambiguity falls away.&lt;/strong&gt;
&lt;br&gt;
Not all scenarios are this simple. 
&lt;br&gt;
Some are best represented as a sequence of events, described as: 
&lt;/p&gt;
&lt;p&gt;
given [some context]&lt;br&gt;
&amp;nbsp;when [I do something] 
&lt;br&gt;
then [this happens] 
&lt;br&gt;
when [I do another thing] 
&lt;br&gt;
then [this new thing happens] 
&lt;/p&gt;
&lt;p&gt;
And so on. 
&lt;/p&gt;
&lt;p&gt;
An example is a wizard-style website, where you step through a sequence of screens
to build up a complex data model. 
&lt;br&gt;
It is perfectly appropriate to intermingle sequences of events and outcomes, as long
as you get into the habit of thinking in these terms.&lt;br&gt;
One interesting emergent behavior is that the quality of the conversation changes. 
&lt;br&gt;
You will quickly discover that you have missed out an assumed given, or forgotten
to verify an outcome.&lt;br&gt;
By introducing the given/when/then vocabulary, we can &lt;strong&gt;dramatically improve
the quality of the group interaction. &lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;The givens should define all of, and no more than, the required context:&lt;br&gt;
&lt;/strong&gt;Any additional givens are distracting, which makes it hard for someone looking
at the story for the first time – whether from the technical or business side – to
understand what they need to know. 
&lt;br&gt;
Similarly any missing givens are really assumptions. If you can get a different outcome
from the givens provided, then there must be something missing.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;The event should describe the feature :&lt;br&gt;
&lt;/strong&gt;The event itself should be very simple, typically only a single call into
the production code. As discussed above, some scenarios are more complicated than
this, but mostly the scenarios for a story will revolve around a single event. They
will differ only in the context (the givens) and the corresponding expected outcomes.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;The story should be small enough to fit in an iteration :&lt;br&gt;
&lt;/strong&gt;There are no hard and fast rules about how you do this, as long as you break
it down into demonstrable chunks. 
&lt;br&gt;
In general if there are more than about five or six scenarios, a story can probably
be broken down by grouping similar scenarios together.&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&lt;br&gt;
When we need to understand what a computer system is supposed to do so that it can
best serve some business need, questions like:&lt;br&gt;
•&amp;nbsp;What is the most important thing the system should do?&lt;br&gt;
•&amp;nbsp;What is the next most important thing the system doesn't yet do? 
&lt;br&gt;
•&amp;nbsp;If we were to switch off the system, where and what would be the biggest impact? 
&lt;/p&gt;
&lt;p&gt;
These Powerful questions can be tough to answer. 
&lt;br&gt;
But following these will guide us to insights that we hadn't though of.&lt;br&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=2dde0c54-d00e-49b2-9fd5-721fa715454c" /&gt;
&lt;br /&gt;
&lt;hr /&gt;Shimon krokhmal, a part of the Krokhmal family</description>
      <comments>http://www.krokhmal.com/CommentView,guid,2dde0c54-d00e-49b2-9fd5-721fa715454c.aspx</comments>
      <category>BDD</category>
      <category>Development process</category>
    </item>
    <item>
      <trackback:ping>http://www.krokhmal.com/Trackback.aspx?guid=c6bd6c57-dc8b-4bb9-86bf-e548de1c8d87</trackback:ping>
      <pingback:server>http://www.krokhmal.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.krokhmal.com/PermaLink,guid,c6bd6c57-dc8b-4bb9-86bf-e548de1c8d87.aspx</pingback:target>
      <dc:creator>Shimon krokhmal</dc:creator>
      <wfw:comment>http://www.krokhmal.com/CommentView,guid,c6bd6c57-dc8b-4bb9-86bf-e548de1c8d87.aspx</wfw:comment>
      <wfw:commentRss>http://www.krokhmal.com/SyndicationService.asmx/GetEntryCommentsRss?guid=c6bd6c57-dc8b-4bb9-86bf-e548de1c8d87</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
the Acceptance Criteria consist of a collection of Scenario allow us to determine
when we are done, The most important aspect of a story is the language in which it
is written. 
<br />
The golden rule is that the Story should be written in the language of the Role, that
is to say the beneficiary of the feature. 
<br />
If the Story represents a business feature, it should be written in business terms
with the aid of a business analyst.<br />
If the story describes a technical requirement, such as resilience or scalability
(sometimes called “non-functional” requirements), it should be presented in the appropriate
technical language.<br />
Acceptance Criteria specify, as a collection of Scenario, what needs to be achieved
if the Behavior of the Feature is to be considered finished.
</p>
        <p>
          <strong>A Scenario:<br /></strong>Some Behavior that can be automatically verified once the Story (or some
part of it) is delivered. 
<br />
The Scenario sets up the world in a known state (or in a way that will behave deterministically)
and executes a sequence of one or more Events resulting in one or more verifiable
Outcomes. 
<br />
We commonly implement these scenarios, as FIT fixtures, Selenium tests or programmatically
as code, but the technology is less important than the concept here, the aim of these
verifiable scenarios is to define what a successful outcome looks like. 
</p>
        <p>
This use of Scenarios gives us two immediate returns. 
</p>
        <ul>
          <li>
They form the basis for our estimates, leading to more consistent estimates than story-level
estimations. 
</li>
          <li>
They show when a story is trying to do “too much”. 
<br />
If there are more than a handful of scenarios (five or six), it suggests that the
story should be split into several smaller stories, each providing independent benefit,
and each consisting of a subset of the scenarios. 
<br />
Boundary or exception cases are good examples of this: sets of boundary scenarios
might clump together to describe common business cases, and some of these clusters
will be deemed more important than others. Smaller stories means finer-grained control
over prioritization, finer grained visibility of progress and reduced exposure to
technical risk.</li>
        </ul>
        <p>
Scenario structure:
</p>
        <p>
          <strong>Scenario 1: </strong>Title<br />
Given [context]<br />
And [some more context]…<br />
When  [event]<br />
Then  [outcome]<br />
And [another outcome]…
</p>
        <img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=c6bd6c57-dc8b-4bb9-86bf-e548de1c8d87" />
        <br />
        <hr />
Shimon krokhmal, a part of the Krokhmal family</body>
      <title>BDD: The Story part 3 - Acceptance Criteria</title>
      <guid isPermaLink="false">http://www.krokhmal.com/PermaLink,guid,c6bd6c57-dc8b-4bb9-86bf-e548de1c8d87.aspx</guid>
      <link>http://www.krokhmal.com/2008/06/14/BDDTheStoryPart3AcceptanceCriteria.aspx</link>
      <pubDate>Sat, 14 Jun 2008 09:29:49 GMT</pubDate>
      <description>&lt;p&gt;
the Acceptance Criteria consist of a collection of Scenario allow us to determine
when we are done, The most important aspect of a story is the language in which it
is written. 
&lt;br&gt;
The golden rule is that the Story should be written in the language of the Role, that
is to say the beneficiary of the feature. 
&lt;br&gt;
If the Story represents a business feature, it should be written in business terms
with the aid of a business analyst.&lt;br&gt;
If the story describes a technical requirement, such as resilience or scalability
(sometimes called “non-functional” requirements), it should be presented in the appropriate
technical language.&lt;br&gt;
Acceptance Criteria specify, as a collection of Scenario, what needs to be achieved
if the Behavior of the Feature is to be considered finished.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;A Scenario:&lt;br&gt;
&lt;/strong&gt;Some Behavior that can be automatically verified once the Story (or some
part of it) is delivered. 
&lt;br&gt;
The Scenario sets up the world in a known state (or in a way that will behave deterministically)
and executes a sequence of one or more Events resulting in one or more verifiable
Outcomes. 
&lt;br&gt;
We commonly implement these scenarios, as FIT fixtures, Selenium tests or programmatically
as code, but the technology is less important than the concept here, the aim of these
verifiable scenarios is to define what a successful outcome looks like. 
&lt;/p&gt;
&lt;p&gt;
This use of Scenarios gives us two immediate returns. 
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
They form the basis for our estimates, leading to more consistent estimates than story-level
estimations. 
&lt;/li&gt;
&lt;li&gt;
They show when a story is trying to do “too much”. 
&lt;br&gt;
If there are more than a handful of scenarios (five or six), it suggests that the
story should be split into several smaller stories, each providing independent benefit,
and each consisting of a subset of the scenarios. 
&lt;br&gt;
Boundary or exception cases are good examples of this: sets of boundary scenarios
might clump together to describe common business cases, and some of these clusters
will be deemed more important than others. Smaller stories means finer-grained control
over prioritization, finer grained visibility of progress and reduced exposure to
technical risk.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Scenario structure:
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Scenario 1: &lt;/strong&gt;Title&lt;br&gt;
Given [context]&lt;br&gt;
And [some more context]…&lt;br&gt;
When&amp;nbsp; [event]&lt;br&gt;
Then&amp;nbsp; [outcome]&lt;br&gt;
And [another outcome]…
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=c6bd6c57-dc8b-4bb9-86bf-e548de1c8d87" /&gt;
&lt;br /&gt;
&lt;hr /&gt;Shimon krokhmal, a part of the Krokhmal family</description>
      <comments>http://www.krokhmal.com/CommentView,guid,c6bd6c57-dc8b-4bb9-86bf-e548de1c8d87.aspx</comments>
      <category>BDD</category>
      <category>Development process</category>
    </item>
    <item>
      <trackback:ping>http://www.krokhmal.com/Trackback.aspx?guid=46c701d5-249b-44f4-bac2-c10dc901af7f</trackback:ping>
      <pingback:server>http://www.krokhmal.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.krokhmal.com/PermaLink,guid,46c701d5-249b-44f4-bac2-c10dc901af7f.aspx</pingback:target>
      <dc:creator>Shimon krokhmal</dc:creator>
      <wfw:comment>http://www.krokhmal.com/CommentView,guid,46c701d5-249b-44f4-bac2-c10dc901af7f.aspx</wfw:comment>
      <wfw:commentRss>http://www.krokhmal.com/SyndicationService.asmx/GetEntryCommentsRss?guid=46c701d5-249b-44f4-bac2-c10dc901af7f</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
the nerrative Gives us a brief description of what to deliver, 
<br />
and why we should deliver it (in the form of Features and Benefits). 
</p>
        <p>
we shall define few terms:
</p>
        <p>
          <strong>A Role:<br /></strong>Is an aspect that describes the person, or thing, that will benefit from
the Feature.<br />
It is essentially the same as an Actor in a UseCase.
</p>
        <p>
          <strong>A Feature:<br /></strong>It describes something that the system should do (the behavior, as it were).<br />
An important aspect of a Feature is that it is described solely in business terms
and not in terms of technology or technologists, 
<br />
unless of course the business is technology or technologists!!
</p>
        <p>
          <strong>A Benefit:<br /></strong>This is the reason we are delivering a particular Feature– it describes the
business value accrued from this Feature. 
<br />
Initially the Benefit is usually qualitative, 
<br />
but we usually expect to see some quantitative business value assigned to the Story
before it is chosen for development. 
<br />
This is to help keep us honest and to ensure that we are focusing our development
efforts on Features that have real business value.
</p>
        <p>
To ensure that we don't forget any of these critical components we often use a template
for the narrative like this: 
</p>
        <p>
          <strong>As a &lt;Role&gt; 
<br />
I want &lt;Feature&gt; 
<br />
So that &lt;Benefit&gt; </strong>
        </p>
        <p>
A concrete example may be something like: 
</p>
        <p>
          <strong>As a</strong> Developer 
<br /><strong>I want</strong> to be able to rename classes 
<br /><strong>So that</strong> I don’t spend too much time worrying about getting the name
right first time 
</p>
        <p>
          <br />
The reason for this degree of formality is that it helps us avoid some common analysis
anti-patterns. 
</p>
        <p>
Two in particular are worth mentioning: 
</p>
        <ul>
          <li>
            <strong>Feature = Benefit</strong>. 
<br />
This is where the “benefit” is simply a restatement of the feature, this is a common
failing in technical or semi-technical customers, 
<br />
who wish to promote a particular technical solution. 
<br />
These requirements can often be (diplomatically) eliminated, reducing complexity,
risk and the associated cost. 
</li>
          <li>
            <strong>Feature ≠&gt; Benefit. (“Feature does not imply benefit”) 
<br /></strong>The feature described will not deliver the benefit described. 
<br />
When this occurs it often reveals hidden requirements. 
<br />
It may be that the Feature delivers a completely different benefit which we hadn't
identified. 
<br />
Conversely, we may need to introduce some new Feature to actually achieve the specified
Benefit, 
<br />
a previously hidden, and thus unplanned, feature. 
</li>
        </ul>
        <p>
 
</p>
        <p>
 
</p>
        <p>
 
</p>
        <img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=46c701d5-249b-44f4-bac2-c10dc901af7f" />
        <br />
        <hr />
Shimon krokhmal, a part of the Krokhmal family</body>
      <title>BDD: The Story part 2 - Narrative</title>
      <guid isPermaLink="false">http://www.krokhmal.com/PermaLink,guid,46c701d5-249b-44f4-bac2-c10dc901af7f.aspx</guid>
      <link>http://www.krokhmal.com/2008/06/13/BDDTheStoryPart2Narrative.aspx</link>
      <pubDate>Fri, 13 Jun 2008 09:04:50 GMT</pubDate>
      <description>&lt;p&gt;
the nerrative Gives us a brief description of what to deliver, 
&lt;br&gt;
and why we should deliver it (in the form of Features and Benefits). 
&lt;/p&gt;
&lt;p&gt;
we shall define few terms:
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;A Role:&lt;br&gt;
&lt;/strong&gt;Is an aspect that describes the person, or thing, that will benefit from
the Feature.&lt;br&gt;
It is essentially the same as an Actor in a UseCase.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;A Feature:&lt;br&gt;
&lt;/strong&gt;It describes something that the system should do (the behavior, as it were).&lt;br&gt;
An important aspect of a Feature is that it is described solely in business terms
and not in terms of technology or technologists, 
&lt;br&gt;
unless of course the business is technology or technologists!!
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;A Benefit:&lt;br&gt;
&lt;/strong&gt;This is the reason we are delivering a particular Feature– it describes the
business value accrued from this Feature. 
&lt;br&gt;
Initially the Benefit is usually qualitative, 
&lt;br&gt;
but we usually expect to see some quantitative business value assigned to the Story
before it is chosen for development. 
&lt;br&gt;
This is to help keep us honest and to ensure that we are focusing our development
efforts on Features that have real business value.
&lt;/p&gt;
&lt;p&gt;
To ensure that we don't forget any of these critical components we often use a template
for the narrative like this: 
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;As a &amp;lt;Role&amp;gt; 
&lt;br&gt;
I want &amp;lt;Feature&amp;gt; 
&lt;br&gt;
So that &amp;lt;Benefit&amp;gt; &lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
A concrete example may be something like: 
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;As a&lt;/strong&gt; Developer 
&lt;br&gt;
&lt;strong&gt;I want&lt;/strong&gt; to be able to rename classes 
&lt;br&gt;
&lt;strong&gt;So that&lt;/strong&gt; I don’t spend too much time worrying about getting the name
right first time 
&lt;/p&gt;
&lt;p&gt;
&lt;br&gt;
The reason for this degree of formality is that it helps us avoid some common analysis
anti-patterns. 
&lt;/p&gt;
&lt;p&gt;
Two in particular are worth mentioning:&amp;nbsp;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Feature = Benefit&lt;/strong&gt;. 
&lt;br&gt;
This is where the “benefit” is simply a restatement of the feature, this is a common
failing in technical or semi-technical customers, 
&lt;br&gt;
who wish to promote a particular technical solution. 
&lt;br&gt;
These requirements can often be (diplomatically) eliminated, reducing complexity,
risk and the associated cost. 
&lt;li&gt;
&lt;strong&gt;Feature ≠&amp;gt; Benefit. (“Feature does not imply benefit”) 
&lt;br&gt;
&lt;/strong&gt;The feature described will not deliver the benefit described. 
&lt;br&gt;
When this occurs it often reveals hidden requirements. 
&lt;br&gt;
It may be that the Feature delivers a completely different benefit which we hadn't
identified. 
&lt;br&gt;
Conversely, we may need to introduce some new Feature to actually achieve the specified
Benefit, 
&lt;br&gt;
a previously hidden, and thus unplanned, feature. 
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=46c701d5-249b-44f4-bac2-c10dc901af7f" /&gt;
&lt;br /&gt;
&lt;hr /&gt;Shimon krokhmal, a part of the Krokhmal family</description>
      <comments>http://www.krokhmal.com/CommentView,guid,46c701d5-249b-44f4-bac2-c10dc901af7f.aspx</comments>
      <category>BDD</category>
      <category>Development process</category>
    </item>
    <item>
      <trackback:ping>http://www.krokhmal.com/Trackback.aspx?guid=7e759fc8-e933-4957-8ec9-eeae489a0a6c</trackback:ping>
      <pingback:server>http://www.krokhmal.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.krokhmal.com/PermaLink,guid,7e759fc8-e933-4957-8ec9-eeae489a0a6c.aspx</pingback:target>
      <dc:creator>Shimon krokhmal</dc:creator>
      <wfw:comment>http://www.krokhmal.com/CommentView,guid,7e759fc8-e933-4957-8ec9-eeae489a0a6c.aspx</wfw:comment>
      <wfw:commentRss>http://www.krokhmal.com/SyndicationService.asmx/GetEntryCommentsRss?guid=7e759fc8-e933-4957-8ec9-eeae489a0a6c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
if you haven't read the introduction yet, please read the <a href="http://www.krokhmal.com/2007/10/26/BDDTDDIntroduction.aspx">introduction
to BDD</a></p>
        <p>
          <strong>What is this story all about ?<br /></strong>The idea is that the words you use influence the way you think about something.<br />
To smooth its path through the development process, We say that it must fulfill certain
additional criteria. 
</p>
        <p>
A story should have a Title, a Narrative and AcceptanceCriteria:
</p>
        <p>
          <strong>Title:</strong>
        </p>
        <p>
Gives us a label to describe this piece of function throughout the life of the project.<br />
It is important to choose good titles to describe the story, 
<br />
Since the story is an atom of development and as such is referred to in all sorts
of conversations throughout the life of the project. 
</p>
        <p>
Poor titles for stories are things like: <br />
   • Implement Performance Enhancements <br />
   • Move Data <br />
   • Create Persistence Layer 
<br /></p>
        <p>
Titles should describe the story in <strong>business terms</strong>, and should make
sense when, 
<br />
For example, considered as a unit of value for the system. 
</p>
        <p>
Some examples of better titles may be: <br />
   • Accept Credit Card Payment <br />
   • Confirm Exchange Rate <br />
   • Accept Product Updates<br /></p>
        <img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=7e759fc8-e933-4957-8ec9-eeae489a0a6c" />
        <br />
        <hr />
Shimon krokhmal, a part of the Krokhmal family</body>
      <title>BDD: The Story part1 - Title</title>
      <guid isPermaLink="false">http://www.krokhmal.com/PermaLink,guid,7e759fc8-e933-4957-8ec9-eeae489a0a6c.aspx</guid>
      <link>http://www.krokhmal.com/2008/06/12/BDDTheStoryPart1Title.aspx</link>
      <pubDate>Thu, 12 Jun 2008 08:55:05 GMT</pubDate>
      <description>&lt;p&gt;
if you haven't read the introduction yet, please read the &lt;a href="http://www.krokhmal.com/2007/10/26/BDDTDDIntroduction.aspx"&gt;introduction
to BDD&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;What is this story all about ?&lt;br&gt;
&lt;/strong&gt;The idea is that the words you use influence the way you think about something.&lt;br&gt;
To smooth its path through the development process, We say that it must fulfill certain
additional criteria. 
&lt;/p&gt;
&lt;p&gt;
A story should have a Title, a Narrative and AcceptanceCriteria:
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Title:&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
Gives us a label to describe this piece of function throughout the life of the project.&lt;br&gt;
It is important to choose good titles to describe the story, 
&lt;br&gt;
Since the story is an atom of development and as such is referred to in all sorts
of conversations throughout the life of the project. 
&lt;/p&gt;
&lt;p&gt;
Poor titles for stories are things like:&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;•&amp;nbsp;Implement Performance Enhancements&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;•&amp;nbsp;Move Data&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;•&amp;nbsp;Create Persistence Layer 
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
Titles should describe the story in &lt;strong&gt;business terms&lt;/strong&gt;, and should make
sense when, 
&lt;br&gt;
For example, considered as a unit of value for the system. 
&lt;/p&gt;
&lt;p&gt;
Some examples of better titles may be:&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;•&amp;nbsp;Accept Credit Card Payment&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;•&amp;nbsp;Confirm Exchange Rate&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;•&amp;nbsp;Accept Product Updates&lt;br&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=7e759fc8-e933-4957-8ec9-eeae489a0a6c" /&gt;
&lt;br /&gt;
&lt;hr /&gt;Shimon krokhmal, a part of the Krokhmal family</description>
      <comments>http://www.krokhmal.com/CommentView,guid,7e759fc8-e933-4957-8ec9-eeae489a0a6c.aspx</comments>
      <category>BDD</category>
      <category>Development process</category>
    </item>
    <item>
      <trackback:ping>http://www.krokhmal.com/Trackback.aspx?guid=43c39973-73cb-4fd8-b24a-76a4ab2af2a8</trackback:ping>
      <pingback:server>http://www.krokhmal.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.krokhmal.com/PermaLink,guid,43c39973-73cb-4fd8-b24a-76a4ab2af2a8.aspx</pingback:target>
      <dc:creator>Shimon krokhmal</dc:creator>
      <wfw:comment>http://www.krokhmal.com/CommentView,guid,43c39973-73cb-4fd8-b24a-76a4ab2af2a8.aspx</wfw:comment>
      <wfw:commentRss>http://www.krokhmal.com/SyndicationService.asmx/GetEntryCommentsRss?guid=43c39973-73cb-4fd8-b24a-76a4ab2af2a8</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
The last two weeks I'm doing a deep dive into <a href="http://www.krokhmal.com/2007/10/17/AutomatingDevelopmentProcess.aspx">development
automation process</a>, which should save allot of time.<br />
a big part of a development process is testing, and as of that many methodologies
emerged such as TDD(Test driven development) and so.<br />
The main purpose of these test driven methodologies is to produce a better quality
code by creating a set of tests and then write a testable code.<br /></p>
        <p>
          <strong>What is BDD?<br /></strong>Behavior-driven development (BDD) is an evolution of test-driven development
(TDD) and acceptance-test driven design, 
<br />
and is intended to make these practices more accessible and intuitive to newcomers
and experts alike.<br />
It shifts the vocabulary from being test-based to behavior-based, and positions itself
as a design philosophy. 
</p>
        <p>
let me explain it in a more explicit way:<br />
as a newcomer to the TDD like process, I found myself asking questions like : 
<br />
How vastly my tests should me?<br />
Where do I start?<br />
How do i integrate the TDD process with the rest of the development process?<br />
How to write a testable code?<br />
What would be the impact of it?<br />
How do I justify it to the stakeholders?
</p>
        <p>
often stakeholders aren't eager for process changes especially if they are unfamiliar
with the new techniques,<br />
cons seems to be having a greater impact on a decision process rather than the major
advantages, even if they are insignificant comparing to the advantages.<br /></p>
        <p>
        </p>
        <p>
          <strong>In what way does the BDD elevate the TDD process?<br /></strong>To answer that question, let's put aside the code writing and the testing
process and focus on the entire development process.<br />
Often technical person and a business person speak in "different languages", even
analysts and developers sometimes suffer from misunderstandings.<br />
Behavior driven development is a technique that designed to eliminate ambiguity and
miscommunication between people on different roles.<br /><br />
this technique comes to solve one basic thing : how do i write a process requirement
in a way that would be understandable to all the development personnel, and ensure
that the implementation covers the requirements.<br /><br />
To answer the question "where do I start?" ask yourself "what is the next most important
thing that the system does not do?"<br />
This question should get you started.<br /></p>
        <p>
        </p>
        <p>
Lets define our requirements in the following template :<br /><strong>As a [</strong>role<strong>]<br />
I want [</strong>Feature<strong>]<br />
So that [</strong>Benefit<strong>].</strong></p>
        <p>
Defining requirment in this way answers a few important questions:
</p>
        <ul>
          <li>
Who is the stakeholder for the given request (this is the person that should care
about the wanted feature) 
</li>
          <li>
What is the needed functionality? 
</li>
          <li>
What would be the benefit from this specific feature?</li>
        </ul>
        <p>
Note that when these specific questions answered, you can see which features are more
important (and which are not relevant at all).<br />
this way interaction with all the development related personnel will be in "the same
language".
</p>
        <p>
          <strong>Developing scenarios that could happen due to given requirement!<br /></strong>i find the word "scenarios" or even "specifications" more pleasant than "Test"
for some reason,<br />
no matter how you look at it, success of these "scenarios", which are situations
or a set of rules that must be handled in a specific way, are viable to the success
of your project/product/feature development.<br /><br /><strong>Ok, this is all great, but how all this relates to TDD ?<br /></strong>glad you asked this question, i see it in a very simple way:<br />
If the system fulfills all the acceptance criteria, it's behaving correctly.
</p>
        <p>
To summarize all this, 
<br />
i would say that BDD is a way to produce an idea for a requirement into an implemented,
tested production ready code.
</p>
        <p>
stay tuned for the second part about writing scenarios, development tools and more.
</p>
        <img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=43c39973-73cb-4fd8-b24a-76a4ab2af2a8" />
        <br />
        <hr />
Shimon krokhmal, a part of the Krokhmal family</body>
      <title>BDD : TDD - Introduction</title>
      <guid isPermaLink="false">http://www.krokhmal.com/PermaLink,guid,43c39973-73cb-4fd8-b24a-76a4ab2af2a8.aspx</guid>
      <link>http://www.krokhmal.com/2007/10/26/BDDTDDIntroduction.aspx</link>
      <pubDate>Fri, 26 Oct 2007 09:40:09 GMT</pubDate>
      <description>&lt;p&gt;
The last two weeks I'm doing a deep dive into &lt;a href="http://www.krokhmal.com/2007/10/17/AutomatingDevelopmentProcess.aspx"&gt;development
automation process&lt;/a&gt;, which should save allot of time.&lt;br&gt;
a big part of a development process is testing, and as of that many methodologies
emerged such as TDD(Test driven development) and so.&lt;br&gt;
The main purpose of these test driven methodologies is to produce a better quality
code by creating a set of tests and then write a testable code.&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;What is BDD?&lt;br&gt;
&lt;/strong&gt;Behavior-driven development (BDD) is an evolution of test-driven development
(TDD) and acceptance-test driven design, 
&lt;br&gt;
and is intended to make these practices more accessible and intuitive to newcomers
and experts alike.&lt;br&gt;
It shifts the vocabulary from being test-based to behavior-based, and positions itself
as a design philosophy. 
&lt;/p&gt;
&lt;p&gt;
let me explain it in a more explicit way:&lt;br&gt;
as a newcomer to the TDD like process, I found myself asking questions like : 
&lt;br&gt;
How vastly my tests should me?&lt;br&gt;
Where do I start?&lt;br&gt;
How do i integrate the TDD process with the rest of the development process?&lt;br&gt;
How to write a testable code?&lt;br&gt;
What would be the impact of it?&lt;br&gt;
How do I justify it to the stakeholders?
&lt;/p&gt;
&lt;p&gt;
often stakeholders aren't eager for process changes especially if they are unfamiliar
with the new techniques,&lt;br&gt;
cons seems to be having a greater impact on a decision process rather than the major
advantages, even if they are insignificant comparing to the advantages.&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;In what way does the BDD elevate the TDD process?&lt;br&gt;
&lt;/strong&gt;To answer that question, let's put aside the code writing and the testing
process and focus on the entire development process.&lt;br&gt;
Often technical person and a business person speak in "different languages", even
analysts and developers sometimes suffer from misunderstandings.&lt;br&gt;
Behavior driven development is a technique that designed to eliminate ambiguity and
miscommunication between people on different roles.&lt;br&gt;
&lt;br&gt;
this technique comes to solve one basic thing : how do i write a process requirement
in a way that would be understandable to all the development personnel, and ensure
that the implementation covers the requirements.&lt;br&gt;
&lt;br&gt;
To answer the question "where do I start?" ask yourself "what is the next most important
thing that the system does not do?"&lt;br&gt;
This question should get you started.&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
Lets define our requirements in the following template :&lt;br&gt;
&lt;strong&gt;As a [&lt;/strong&gt;role&lt;strong&gt;]&lt;br&gt;
I want [&lt;/strong&gt;Feature&lt;strong&gt;]&lt;br&gt;
So that [&lt;/strong&gt;Benefit&lt;strong&gt;].&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
Defining requirment in this way answers a few important questions:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
Who is the stakeholder for the given request (this is the person that should care
about the wanted feature) 
&lt;li&gt;
What is the needed functionality? 
&lt;li&gt;
What would be the benefit from this specific feature?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Note that when these specific questions answered, you can see which features are more
important (and which are not relevant at all).&lt;br&gt;
this way interaction with all the development related personnel will be in "the same
language".
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Developing scenarios that could happen due to given requirement!&lt;br&gt;
&lt;/strong&gt;i find the word "scenarios" or even "specifications" more pleasant than "Test"
for some reason,&lt;br&gt;
no matter how you look at it, success of&amp;nbsp;these "scenarios", which are situations
or a set of rules that must be handled in a specific way, are viable to the success
of your project/product/feature development.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Ok, this is all great, but how all this relates to TDD ?&lt;br&gt;
&lt;/strong&gt;glad you asked this question, i see it in a very simple way:&lt;br&gt;
If the system fulfills all the acceptance criteria, it's behaving correctly.
&lt;/p&gt;
&lt;p&gt;
To summarize all this, 
&lt;br&gt;
i would say that BDD is a way to produce an idea for a requirement into an implemented,
tested production ready code.
&lt;/p&gt;
&lt;p&gt;
stay tuned for the second part about writing scenarios, development tools and more.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=43c39973-73cb-4fd8-b24a-76a4ab2af2a8" /&gt;
&lt;br /&gt;
&lt;hr /&gt;Shimon krokhmal, a part of the Krokhmal family</description>
      <comments>http://www.krokhmal.com/CommentView,guid,43c39973-73cb-4fd8-b24a-76a4ab2af2a8.aspx</comments>
      <category>Development process</category>
      <category>BDD</category>
    </item>
  </channel>
</rss>