Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User stories vs use cases

Are use cases just multiple user stories??

What are the benefits of using user stories over use cases.. and vice-versa... When to use one over other... Does all agile methodologies uses user stories??

like image 592
StackUnderflow Avatar asked Dec 18 '08 19:12

StackUnderflow


People also ask

Is use case and user story same?

User stories are not the same as a use case. Yes, both are terms used in gathering requirements from customers in software development. Yes, both identify users and user goals, but they serve for different purposes.

What comes first use case or user stories?

Use stories are developed before the user case. In most cases they are developed by user interaction. One user story can generate multiple use cases.

What are the differences between user stories scenarios and use cases?

Scenarios are created by user researchers to help communicate with the design team. User stories are created by project/product managers to define the requirements prior to a sprint in agile development. Use cases are created for developers to help with testing.


2 Answers

Actually, the original use cases (see Jacobson's OOSE) were pretty lightweight, much as user stories are now. Over time, they evolved until a common format for "use cases" now is a complicated document with inputs, outputs, inheritance, uses relationships, pseudocode, etc. Programmers, in general, try to convert everything into programming.

In any case, the attempt to defined what distinguishes a "use case" from a "user story" fro a "scenario" is pretty futile, as it's hard to find two authorities who agree.\

Personally, I find the pattern "[Actor] [verbs] [noun] to get [business value]" helpful. If it gets over about a paragraph of text, it may be too big.

like image 95
Charlie Martin Avatar answered Sep 17 '22 12:09

Charlie Martin


When it comes down to it "agile" is just a label, and people disagree over exactly what it means. Similarly people call very different things "use cases."

In my experience the primary difference between the two is that a user story is focused on the user, and is usually shorter and less formal - ideally, it should easily fit on a postcard. It probably doesn't give details of error handling etc.

Use cases can be much more formal (although some people write them informally too) - they focus on every interaction with the system, and may well go into more detail about several different systems/actors/etc within the same use case.

That's just my experience though - chances are everyone will have used these tools in different ways. I wouldn't get too hung up about labels - just use what works for your project.

like image 34
Jon Skeet Avatar answered Sep 19 '22 12:09

Jon Skeet