Introduction

Figure D.1 shows user stories as the initiation point for a software development project whether based on a traditional development model—represented by a V-shaped software development life cycle (SDLC)—or an Agile development model—represented by a generic Agile SDLC. Although first defined within the eXtreme Programming (XP) development model as user story cards, user stories are used as the initiation and first requirements capture process for all SDLCs, whether traditional waterfall or an Agile. User stories serve as the mechanism for identifying the project’s overall requirements and those features that will be incorporated in each individual software application iteration. User stories were first associated with the XP flavor of Agile development but were rapidly adapted to all types of Agile development models: Scrum, Agile Unified Process, dynamic systems development method, Essential Unified Process, feature-driven development, Open Unified Process, and lean software development processes.

Figure D.1 Traditional and Agile life cycle user stories.

As with all journeys, software development begins with the first small step of writing the first set of user stories. This can be initiated, with the customer and the development team, at a whiteboard, with a stack of 3 × 5 index cards, or at a laptop with a capture program as simple as a text editor. Initially, it is easiest to begin the process with the stack of index cards. The 3 × 5 card provides a physical representation of what is being done with the captured user information. For the first set of requirements gathering meetings, these cards can be put on a wall or whiteboard, moved around into logical groupings, and easily marked up. For building complex user applications, a tool with the attributes described here is necessary to build complete iteration requirements and test cases.

The “3 × 5 card” captures the basic user story information of the following:

  1. User story title— Figure D.2 “Name” Field
  2. User story— Figure D.2 “Description” Field
  3. Test case— Figure D.3

Figure D.2 General user story information.

Figure D.3 Test cases.

These three pieces of information are all that are needed in the first pass of the user story collection with the customer. For visual information processing, it is best to tape the cards to a large wall and then go through the process, with the customer, of prioritizing the timing of completing each user story. This priority will determine in which iteration the customer receives the capability told in the story. This initial “requirements gathering” of the user stories can take several days. The end result is a starting point for the system and a definition of the first release of the application. Another outcome of this first meeting is the definition for this project of what time increment constitutes an iteration as shown in the Agile life cycle. As a rule of thumb, a release should be no more frequent than weekly or later than monthly. After a month of waiting, the customer might as well be subject to a waterfall life cycle model.

After this initial requirements gathering session, the development team completes the following information on each user story:

  1. User story owner— Figure D.2 “Owner” field
  2. Application capability set— Figure D.2 “Package” field
  3. Story points— Figure D.3 “Plan Est.” field
  4. Task estimate in hours— Figure D.3 “Task Est.” field
  5. Small release assigned story for delivery— Figure D.4 “Iteration” field

Figure D.4 User story scheduling.

“Story points” is a user story estimating concept. These are relative, not absolute measures that take into account not just the customers’ concept of priority but also technology and tools being used, problem domain, development team size, development team composition and expertise, working environment, and the expertise and skill of the estimators. They measure the effort required to implement a story as one number that tells the team the story’s difficulty. A story point range is 1, 2, 4, 8, or 16. Story points do give some indication of how much time was spent in an iteration. For example, at the end of a 10-day iteration, a five-person team completes 50 story points. To equate that to hours you are measuring, 10 days at 8 hours is 80 working hours times five developers, or 400 person hours. Dividing the 400 by the 50 story points completed gives the development team an 8 hour per story point velocity of development.

The development team will use these relative points to group together the stories that will make them into an “iteration.” This is a learning process for the team in understanding how many points they can develop and deliver in the release time allotted. Keeping development metrics and calculating the “velocity of development” per iteration will refine the team’s estimating abilities. The time estimate is not done until the first estimate of the points going into the release is determined.

Notice that the test cases in Figure D.3 have nonsequential numbering; they jump from test case 21 to test case 47. Even though a user story stands alone, the test cases gathered at this point in the life cycle need to be saved and reused for future user stories that have a relationship to previous ones, and to form the basis for a regression test suite for the entire application. Once the application is completed and goes into maintenance—as all successful software development projects do—the most valuable artifact of development next to the code is the suite of tests for each component and release.

Figure D.5 shows further information that can be included within the user story. The idea of a theme is useful when discussing the feature set being delivered in a release. Themes are larger than a release but smaller than the application. It is another way for the user to understand the magnitude of the capabilities being released and the percentage completed of the entire project. User stories and iterations look at the development process from the developers’ perspective of satisfying the user story. The user sees the delivery of the iterations combined into releases but at times loses sight of the overall project. Themes are a midway point in helping the user and development team ensures that groups of iterations become meaningful releases and that the releases have a reference point within the overall project.

Figure D.5 User story customization.

Implementing User Stories in a Development Organization

Based on the information contained in a single user story as shown by the above figures, you will soon run out of space on your index card. Unless you are building a simple “Hello world” software application, you’ll need some automated tools. You can roll your own using open-source software like MySQL or any of the commercial off-the-shelf products Microsoft provides. You need to decide based on the characteristics of your development organization and your customer, factoring in the time frame dictated by your release schedule. A model to look at for Web-based user story tools is provided by Rally Software ( https://wiki.rallydev.com/display/ rlyhlp/Rally+ Community+ Overview) Community Edition for managing user stories. The user story figures used in this entry were taken from a multiyear, real-time process optimization software development project using Agile development.

At the highest level of managing an Agile project, the project manager needs visibility into the backlog of user stories, the release underway, and the testing needed for each release. The project manager has the responsibility of rationalizing the user stories into iterations to generate releases that satisfy the customer’s goals for the entire development effort. Figure D.6 shows the planned releases and the themes addressed by the user stories.

When the project manager needs to drill down to a release, for example, SDM 1.3 (Smarter Drilling Manager 1.3), the open user stories for that release can be easily generated and shown in Figure D.7 . Referring back to Figure D.1 , “Iterations” are tracked in keeping with the Agile life cycle flow.

Both Figures D.6 and D.7 show the user story plan estimates in story points and the task estimates in person hours. It becomes quite easy to gauge relative release and iteration sizes based on user story points.

Figure D.6 Product releases.

Figure D.7 Release user stories.

Implementing user stories within a development organization requires embracing Agile methods. User stories will provide requirements gathering, acceptance testing, and a relative, quantifiable method for breaking the software development process into user-acceptable releases.

User Stories Drive Agile Projects

Adoption of user stories as your organization’s Agile requirements gathering technique, backed up with an adequate automated system, is the driver for successful Agile software development projects. User stories must be:

  1. Understandable to the customer and the developers
  2. Implementable within one iteration of a multi-iteration release
  3. Estimateable by both relative story points and person hours of effort
  4. Testable to ensure that they were successfully implemented

That’s all that has to be included. You can add more features to your process, but the above four points will drive the implementation of user stories. Figures D.8 and D.9 show these basics implemented along with extensive information found useful to improving the user story process.

Figure D.8 User story #133 details.

Figure D.9 User story #133 test cases.

Example User Story Descriptions

The following are real user stories that were successfully developed, tested, and implemented within a single iteration:

  1. As a drilling engineer, I need to be able to graphically edit limits (maximum and minimum) for rate of penetration (ROP), weight on bit (WOB), revolutions per minute (RPM), Delta-P, top torque, bit torque, and mechanical specific energy (MSE).
  2. As a drilling engineer, I can create a file containing an SQL script to update ADA on a rig with (i) the wells and formation tops for the wells on the current pad and (ii) limits for drilling parameters for a well.
  3. As a drilling engineer, I can define the well site leader (WSL) maximum/minimum boundaries for each drilling parameter for each formation for the rig.
  4. As a drilling engineer, I can see the WSL boundaries on the plot while I’m setting limits.
  5. As a drilling engineer, for each well, I need to (i) select offset (comparable) wells whose data will be used as a guide for setting expected ranges and (ii) select a benchmark (reference) well whose ranges will be used as the starting ranges.
  6. As a drilling engineer, I can define new rigs for a field.
  7. As a drilling engineer, when I’m editing limits, the limits will be constrained to lie between the boundaries defined for the rig.
  8. As a drilling engineer, I create wells and pads whenever I import ADA data using a spreadsheet. I can also change the data for an ADA well by reimporting it.
  9. As a drilling engineer, I need to define new wells in an integrated ADA database and to load and save my work on a well.
  10. As a drilling engineer, when I look at a drilling parameter plot, I’d like to know which points are associated with MSE quartiles.

Keys to Implementing User Stories

  1. Define your organization’s Agile life cycle.
  2. Make a commitment to user stories for requirements gathering.
  3. Make a commitment to user stories for acceptance test identification.
  4. Refine your Agile process with user story-based metrics.

Summary

User stories were first described as the starting point for XP. They are used for all SDLCs—whether or not based on Agile techniques. User stories provide two of the most critical inputs to the SDLC: requirements and test scenarios. What does a user story look like? “As a drilling engineer, I can create a file containing an SQL script to update ADA on a rig with (i) the wells and formation tops for the wells on the current pad and (ii) limits for drilling parameters for a well.” This user story is from a user (drilling engineer) with a requirement to be able to create, as the user, SQL scripts within an application called ADA.

A user story is a promise made to the customer that the software development team will have a future conversation about the identified functionality.

User stories and iterations look at the development process from the developers’ perspective of satisfying the user. They are the basis for time estimates for the system releases under construction. User stories eliminate the need for a large requirements document. User stories drive the creation of the acceptance tests. In order to verify the user story, one or more acceptance tests are defined. This is a powerful technique for the user to understand not only the “what” of their requirements but to also define, at the onset of the iteration, the “how” of ensuring its inclusion in the system.

Further Readings

  1. Extreme Programming—A Gentile Introduction. http://www.extremeprogramming.org/ (accessed January 2022).
  2. Introduction to User Stories. http://www.agilemodeling.com/artifacts/userStory.htm (accessed January 2022).
  3. Object Management Group (OMG)—OMGTM is an International, Open Membership, not-for-Profit Computer Industry Consortium. http://www.omg.org (accessed January 2022).
  4. Rally Software Development. http://www.rallydev.com/ (accessed January 2022).
  5. User Story. http://en.wikipedia.org/wiki/User_story (accessed January 2022).