120 likes | 133 Views
User Stories. Much taken from User Stories Applied: For Agile Software Development Mike Cohn Mountain Goat Software. Where are we?. Found some objects and major responsibilities Understand a desired system better Did some role play on one scenario User plays one song, start to finish
E N D
User Stories Much taken from User Stories Applied: For Agile Software Development Mike CohnMountain Goat Software
Where are we? • Found some objects and major responsibilities • Understand a desired system better • Did some role play on one scenario • User plays one song, start to finish • Understand the system from a high level • Used a few design heuristics to more properly place responsibilities • Next up ... User Stories to capture requirements
User Stories • Extreme programming (XP) introduced the practice of expressing requirements in the form of user stories • User stories are short descriptions of functionality–told from the perspective of a user–that are valuable to either a user of the software or the customer of the software
A few Example User Stories • The following are typical user stories for a job posting and search site: • A user can post her resume to the web site • A user can search for jobs • A company can post new job openings • A user can limit who can see her résumé
User Stories • A user story describes functionality that will be valuable to either a user or purchaser of the system • User stories are traditionally written on an index card when the team and customers are communicating • They will be written now as a line of text • in the slides that follow, and • in the project specification.
Aspects of a User Story • A user story is composed of three aspects: • Written description of the story, used for planning and as a reminder • Placeholder for future conversations among the user, customer, and developer • User: You, me, section leaders, maybe you can sell it? • Customer: Rick • Developer: You • Tests that convey and document details that can be used to determine when a story is complete
In team of 2 or 3, write five user stories for the Cashless Jukeboxwe'll collate them in 10 minutes • The student affairs office want to put some newfound activity fee funds toward a Jukebox in the student center. The Jukebox must allow students to play a song. No money will be required. Instead, a student will swipe a magnetic ID card through a card reader, view the song collection and choose a song. Students will each be allowed to play up to 1500 minutes worth of "free" Jukebox music in their academic careers, but never more than two songs on any given date. No song can be played more than five times a day*. • *What a drag it would be to hear "Dancing Queen" 14 times while eating lunch (apologies to ABBA)
User stories for the Cashless Jukebox • Example • Songs can be played up to 5 times per day
Some User Stories for the Cashless Jukebox 1. A user can select a Song from the collection of songs 2. Songs can be played up to 5 times per day 3. User can hear audio files play 4. Any user can play up to 2 songs per day 5. Jukebox can find a user given an ID
Other Stories? • When originally planned as an in-class demo, there were other user stories that seemed valuable to the students and the customer • We can pick some, eliminate others
Do These Seem reasonable? 5. Notify Student the song is not selectable 6. The system should be able to queue songs on a FIFO basis 7. Show the play list (queue) to help users decide what to do 8. Have a nice GUI interface 9. User can swipe card
Seem reasonable? 10.Students see their account status 11.Students can see how long all songs in the queue would play 12.Administrator can add and remove Students 13. Administrator can add and remove songs 14. Use this for "WebRadio" 15. The system should be able to play mp3s