After reading on BDD (Behavior driven development) and how to write good user stories with relevant eligibility criteria. I am a little confused when it comes to examples / acceptance criteria. BDD encourages us to work in cross functional teams using Prod owner, BA, QA, DEV, etc., to define these criteria. In addition, the BDD encourages us to adhere to key examples when we define these eligibility criteria. My question is: what do key examples mean to you? Does this include examples that try to violate other eligibility criteria for a particular story in order to demonstrate the boundaries of the story?
For example, let's say we have a story called “Register a user,” and all that is required to register is to provide a valid email address. One key example will obviously be
GIVEN I am an unregistered user WHEN I provide xyz@xyz.com THEN I should be notified that my registration was successful
What about other examples trying to invalidate this business rule? Should we also give examples such as
GIVEN I am an unregistered user WHEN I provide aa~=233@xy ;;z.com THEN I should be notified that my email address is not valid
My example may be too simplistic, because it probably makes sense to include a second example in this story. However, for more complex stories, we ourselves discuss whether a concrete example is “key examples” or not. The QA team, in particular, comes up with very good examples of how to test boundaries, verify, etc. However, quite often we discuss whether these types of examples are considered key examples. Some argue that these types of examples do not add any commercial value and therefore should not be part of the story. Any thoughts on this?
source share