ArticleslgStudy

computer science

Scenario (computing)

Scenario (computing) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Scenario (computing) rather than just read about it. In short: In computing, a scenario is a narrative of foreseeable interactions of user roles (known in the Unified Modeling Language as 'actors') and the technical system, which usually includes computer hardware and software. A scenario has a goal, which is usually functional.

Key takeaways

  • Scenario (computing) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Scenario (computing) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Scenario (computing) from memory before moving on to harder problems.

Reference excerpt

In computing, a scenario is a narrative of foreseeable interactions of user roles (known in the Unified Modeling Language as 'actors') and the technical system, which usually includes computer hardware and software. A scenario has a goal, which is usually functional. A scenario describes one way that a system is used, or is envisaged to be used, in the context of an activity in a defined time-frame. The time-frame for a scenario could be (for example) a single transaction; a business operation; a day or other period; or the whole operational life of a system. Similarly the scope of a scenario could be (for example) a single system or a piece of equipment; an equipped team or a department; or an entire organization. Scenarios are frequently used as part of the system development process. They are typically produced by usability or marketing specialists, often working in concert with end users and developers. Scenarios are written in plain language, with minimal technical details, so that stakeholders (designers, usability specialists, programmers, engineers, managers, marketing specialists, etc.) can have a common ground to focus their discussions. Increasingly, scenarios are used directly to define the wanted behaviour of software: replacing or supplementing traditional functional requirements. Scenarios are often defined in use cases, which document alternative and overlapping ways of reaching a goal.

Types of scenario in system development Many types of scenario are in use in system development. Alexander and Maiden list the following types:

Story: "a narrated description of a causally connected sequence of events, or of actions taken". Brief User stories are written in the Agile style of software development. Situation, Alternative World: "a projected future situation or snapshot". This meaning is common in planning, but less usual in software development. Simulation: use of models to explore and animate 'Stories' or 'Situations', to "give precise answers about whether such a scenario could be realized with any plausible design" or "to evaluate the implications of alternative possible worlds or situations". Storyboard: a drawing, or a sequence of drawings, used to describe a user interface or to tell a story. This meaning is common in Human–computer interaction to define what a user will see on a screen. Sequence: a list of interactive steps taken by human or machine agents playing system roles. The many forms of scenario written as sequences of steps include Operational Scenarios, Concepts of Operations, and Test Cases. Structure: any more elaborately structured representation of a scenario, including Flowcharts, UML/ITU 'Sequence Charts', and especially in software development Use cases. Negative scenarios or misuse cases may be written to indicate likely threats which should be countered to ensure that systems have sufficient security, safety, and reliability. These help to discover non-functional requirements.

Uses in system development Scenarios have numerous possible applications in system development. Carroll (1995) lists 10 different "roles of scenarios in the system development lifecycle":

Requirements analysis: scenarios describe the "state-of-the-art" (often called "as-is"); acted scenarios help to discover requirements as analysts "stage a simulated work situation". User-designer communication: users contribute scenarios important to them, or situations they want to experience or avoid. Design rationale: rationale can explain design "with respect to particular scenarios of user interaction". Envisionment: scenarios "can be a medium for working out what a system being designed should look like and do." In this role, scenarios can be "graphical mockups such as storyboards or video-based simulations", and may form early prototypes of the system under design. Software design: "scenarios can be analyzed to identify the central problem domain objects" needed; the same scenarios can be developed to describe the objects' state, behavior and interactions. Implementation: software can be built one scenario at a time, helping "to keep developers focused" and "producing code that is more generally useful". Documentation and Training: "scenarios of interaction that are meaningful to the users" can bridge the gap between the system as built "and the tasks that users want to accomplish using it". Evaluation and testing: since "a system must be evaluated against the specific user tasks it is intended to support", scenarios are ideal for evaluation. Abstraction: general rules that apply across different tasks (or systems) can be identified by comparing scenarios. Team building: "a set of touchstone stories is an important cohesive element in any social system".

In differing styles of system development The choice of scenario representation varies widely with style of development, which is related to the industrial context.

See also Happy path Scenario testing Strategic assumptions Computer supported brainstorming

Notes

References

Bibliography Alexander, Ian and Beus-Dukic, Ljerka. Discovering Requirements: How to Specify Products and Services. Wiley, 2009. Alexander, Ian F. and Maiden, Neil. Scenarios, Stories, Use Cases. Wiley, 2004. Carroll, John M. (ed) Making Use: Scenario-based Design of Human-Computer Interactions. MIT Press, 2000. Carroll, John M. (ed) Scenario-Based Design: Envisioning Work and Technology in System Development. Wiley, 1995. Cockburn, Alistair. Writing Effective Use Cases. Addison-Wesley, 2001. Cohn, Mike. User Stories Applied: for Agile Software Development. Addison-Wesley, 2004. Fowler, Martin. UML Distilled. 3rd Edition. Addison-Wesley, 2004.

External links Notes on Design Practice: Stories and Prototypes as Catalysts for Communication. by Thomas Erickson, in Carroll, 1995.

Worked examples

Example 1 — a first encounter with Scenario (computing)

Start with the simplest possible case. Write down what Scenario (computing) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Scenario (computing) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Scenario (computing) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Scenario (computing)

In research
Scenario (computing) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Scenario (computing) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Scenario (computing) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Software design, Software requirements, Usability, so understanding it makes those chapters shorter.
In everyday life
Look for Scenario (computing) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Scenario (computing)” →

How to study Scenario (computing) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Scenario (computing) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Scenario (computing) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Scenario (computing) in simple terms?

In computing, a scenario is a narrative of foreseeable interactions of user roles (known in the Unified Modeling Language as 'actors') and the technical system, which usually includes computer hardware and software. A scenario has a goal, which is usually functional.

Why does Scenario (computing) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Scenario (computing)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Scenario (computing).

Tags

  • Software design
  • Software requirements
  • Usability

Keep exploring