Software Engineering · Software Requirements
Elicitation Use Cases and Analysis Modelling
Overview
Requirements engineering (RE) is the systematic process of discovering, analysing, documenting, validating and managing what a software system must do and the constraints under which it must operate.
Requirements elicitation is its first working phase: the activity of drawing out the real needs of stakeholders from clients, end users, domain experts, documents and the working environment.
Elicitation output is raw and messy, so it is passed to requirements analysis and modelling, where it is classified, negotiated, checked for conflict and represented in graphical or formal models — use case diagrams, data flow diagrams, ER models, state diagrams, data dictionaries.
These models then feed the SRS. Prerequisites: you should already know the generic SDLC phases, the idea of a stakeholder, and the basic notion of what an SRS is.
This lesson supplies the vocabulary, notation and traps that UGC NET uses in direct, match-the-list and assertion–reason form.
Key concepts
Requirements engineering phases (standard UGC convention): (1) Requirements elicitation (gathering), (2) Requirements analysis and negotiation (classifying, prioritising, resolving conflicts, modelling), (3) Requirements specification (producing the SRS), (4) Requirements validation (checking the requirements are the right ones — validity, completeness, consistency, realism), (5) Requirements management (handling change and traceability). “Requirement design” is not an RE phase; “software engineering process” and “user engineering process” are not standard names.
Elicitation techniques.
- Interview — structured (fixed question list), semi-structured (mix), unstructured (open conversation). Most direct technique based on conversation.
- Questionnaire — many, geographically spread stakeholders.
- FAST — Facilitated Application Specification Technique, a team workshop of customers and developers that jointly defines requirements (Pressman).
- JAD — Joint Application Development, the IBM workshop variant.
- Brainstorming — free idea generation, later filtered.
- Observation / Ethnography — watching users do their real tasks in their real environment; captures tacit, social and organisational factors that people cannot articulate.
Sommerville recommends pairing ethnography with prototyping. - Document analysis — old forms, manuals, reports, procedure books.
- Prototyping — a quick, incomplete working model used to refine and establish requirements, not to test the final product.
- Scenario / use-case based elicitation — concrete walk-throughs of user goals.
- QFD — Quality Function Deployment — translates customer needs into technical requirements through the House of Quality matrix.
- Viewpoint analysis, soft systems methodology, repertory grids, card sorting.
Prioritisation and negotiation belong to the analysis-and-negotiation part of elicitation — deciding which requirements matter most and settling conflicts.
Analysis modelling. Two families:
- Structured analysis: DFD, data dictionary, ER diagram, state transition diagram, decision table/tree, Warnier–Orr diagram (represents information hierarchy compactly using nested braces).
- Object-oriented analysis (UML): use case diagram, class diagram, activity diagram, sequence diagram, state machine diagram.
Use case modelling (Jacobson; UML 2.x).
- Actor — a role played by a human user, an external hardware device, or another software system that interacts with the system.
- Use case — a complete, goal-directed sequence of interactions between an actor and the system.
- Scenario — one single path (instance) through a use case; a use case is a family of scenarios (main flow + alternates).
- System boundary — rectangle enclosing the use cases.
- Relationships: association (actor–use case), «include», «extend», generalization (between actors or between use cases).
- «include» — the base use case always executes the included use case as part of its flow; arrow points from base to included. Used for mandatory common behaviour.
- «extend» — the extending use case inserts optional/conditional behaviour into the base use case at a declared extension point; arrow points from the extending use case to the base. The base can run without the extension.
- Generalization — child actor/use case inherits the parent’s behaviour and may add its own.
Data flow diagram (Yourdon/DeMarco convention).
- External entity (source/sink) — rectangle.
- Process — circle (bubble) that transforms input flows into output flows.
- Data store — two parallel lines / open-ended rectangle.
- Data flow — labelled arrow carrying a packet of data.
- Context diagram = level-0 DFD — the whole system as one process, only external entities and net flows; no data stores, no internal processes.
- Level-1 DFD decomposes that single process into major processes; further levels decompose sub-processes. Balancing requires that the external input and output flows of the level-0 process are reproduced exactly at level 1.
- Errors: black hole — process with inputs but no outputs; miracle — process with outputs but no inputs; gray hole — outputs that cannot be derived from the declared inputs (insufficient/inconsistent flows).
A DFD lets the analyst detect task duplication, unnecessary delays and task overlapping.
Other analysis artefacts.
- Data dictionary — central repository defining every data element, its structure, type, format, validation rules and relationships; ensures consistent use of data names.
- CRUD matrix — Create/Read/Update/Delete; maps each entity against the processes that touch it, revealing missing or duplicate processes.
- ER model — entities (rectangles), relationships (diamonds), attributes (ellipses); captures static data structure.
- State diagram — states, transitions, events, guard conditions, actions; supports composite states with nested substates and history pseudostates (shallow H, deep H*) to resume the last active substate.
- Activity diagram — workflow, control flow, concurrency via fork/join.
- Class diagram — static structure: classes, attributes, operations, associations, generalization.
How it works
A. Elicitation and analysis procedure
- Understand the domain and identify stakeholders — clients, end users, domain experts, regulators, maintainers.
- Select techniques — interviews for depth, questionnaires for breadth, observation/ethnography for tacit process knowledge, document analysis for existing rules, FAST/JAD for consensus, prototypes where understanding is weak.
- Elicit — record raw needs, not solutions.
- Classify and model — build use cases for goals, DFD for data movement, ER for data structure, state diagrams for life cycles.
- Negotiate and prioritise — remove conflicts, rank requirements, agree scope.
- Specify in the SRS — complete, consistent, unambiguous, verifiable, traceable, modifiable.
- Validate — review/prototype against real user need; check validity (right system), completeness (nothing missing), consistency (no conflicts), realism, verifiability.
B. Building a use case model
- Draw the system boundary.
- Find actors by asking who/what uses or supplies data to each function.
- Find goals of each actor and name one use case per goal (verb-noun, e.g. “Issue Book”).
- Write the main success scenario and the alternate/exception flows.
- Factor out mandatory shared steps as «include»; optional behaviour as «extend» at a named extension point; common actor or use-case behaviour as generalization.
- Cross-check that every actor has at least one use case and every use case at least one actor.
C. Building a DFD
- Context (level-0) diagram: system as one process, list external entities and the net data flows they exchange with it.
- Level-1: explode that process into major processes; allocate flows; balance — same external flows as the context diagram. Internal flows and data stores may appear only now.
- Level-2: explode each non-trivial process of level 1, balancing again with its parent.
- Check errors: black holes, miracles, gray holes, unnamed flows, undiscovered stores, processes that both read and write the same store without a clear transformation.
- Record every flow name in the data dictionary; check each entity with a CRUD matrix.
Drawing the diagram…
Drawing the diagram…
Drawing the diagram…
Worked examples
Example 1 — Direct concept.
An observational technique used to understand the operational process and derive requirements for software supporting it is called:
Step 1 — Interviews/questionnaires ask people to describe work, so they are not observational.
Step 2 — Observation of real work in the real setting is termed ethnography.
Answer: Ethnography.
Example 2 — Match the list (elicitation/analysis artefact → what it captures).
A. FAST → a facilitated joint workshop where customers and developers agree requirements. B. QFD → House of Quality matrix converting customer needs to technical characteristics.
C. Data flow diagram → movement and transformation of data through processes and stores. D. Use case → interactions between an actor and the system to achieve a goal.
Example 3 — Numeric (use case counting).
Base use case U includes V and W; V itself includes Z; X extends U at one extension point.
Step 1 — Count use cases: U, V, W, X, Z = 5.
Step 2 — Count «include» dependencies: U→V, U→W, V→Z = 3.
Step 3 — Count «extend»: X→U = 1.
Step 4 — Total relationships drawn = 3 + 1 = 4 (plus association lines to actors, which are not counted as dependencies).
Answer: 5 use cases, 3 includes, 1 extend.
Example 4 — Numeric (DFD balancing).
Context diagram: E1 sends 2 flows to S and receives 1; E2 sends 1 to S and receives 2; E3 sends 1 to S and receives 1.
Step 1 — E1 crosses the boundary 2 + 1 = 3 times.
Step 2 — E2: 1 + 2 = 3. Step 3 — E3: 1 + 1 = 2.
Step 4 — Total external flows = 3 + 3 + 2 = 8.
A balanced level-1 DFD, which decomposes the entire system, must show exactly these 8 external flows crossing the boundary; flows between internal processes and to data stores are additional and carry no balancing obligation.
Answer: 8 external flows.
Example 5 — Assertion and Reason.
A: In a use case diagram the «extend» relationship is drawn from the extending use case to the base use case.
R: The extending use case inserts additional behaviour into the base use case at a defined extension point.
Check A — correct, the arrowhead points at the base (opposite of «include», where the arrow points from base to included). Check R — correct definition. R is precisely the reason the arrow points to the base: the base is being augmented, so the dependency points at it.
Answer: Both A and R are true and R is the correct explanation of A.
Example 6 — Error detection in a DFD.
Process P1 has input flows “Invoice” and “Price list” and output “Payment voucher”; process P2 has output “Monthly report” but no input arrows; process P3 has inputs but no output.
Step 1 — P1 is fine if a rule derives the voucher from invoice and price.
Step 2 — P2 produces output from nothing → miracle.
Step 3 — P3 consumes but produces nothing → black hole.
Answer: P2 miracle, P3 black hole.
Comparison
| Feature | «include» | «extend» |
|---|---|---|
| Behaviour | Mandatory, always executed | Optional or conditional |
| Arrow direction | Base → included use case | Extending use case → base |
| Purpose | Reuse of common mandatory steps | Insert optional features at an extension point |
| Base alone complete? | Yes, when the included part is present | Yes; base runs without the extension |
| Symbol | Yourdon/DeMarco DFD | Gane–Sarson DFD |
|---|---|---|
| Process | Circle (bubble) | Rounded rectangle |
| External entity | Rectangle | Square |
| Data store | Two parallel lines | Open-ended rectangle |
| Data flow | Labelled arrow | Labelled arrow |
| Model | Primarily captures |
|---|---|
| Use case diagram | Actor–system interactions toward goals |
| Class diagram | Static structure: classes, attributes, operations, relations |
| ER diagram | Data entities and their relationships |
| DFD | Data movement and transformation |
| State diagram | Life cycle of one object: states, events, guards |
| Activity diagram | Workflow and concurrency |
| Warnier–Orr diagram | Information hierarchy in compact nested form |
| Data dictionary | Definitions and formats of all data elements |
| Technique | Best suited when |
|---|---|
| Interview | Few stakeholders, need depth |
| Questionnaire | Many, dispersed stakeholders |
| Ethnography | Tacit, process-heavy operational work |
| Prototyping | Requirements unclear or user cannot verbalise |
| FAST/JAD | Need consensus and fast conflict resolution |
| Document analysis | Legacy system with existing paperwork |
Revision summary
- RE phases: elicitation → analysis and negotiation → specification → validation → management; “requirements design” is not a phase.
- Ethnography = observation in the real environment; prototyping = refine and establish requirements.
- FAST = Facilitated Application Specification Technique; QFD = Quality Function Deployment, House of Quality.
- An actor is a role — human, hardware or another system.
- «include»: base → included, always. «extend»: extending → base, optional, at an extension point.
- Context diagram = level 0: one process, external entities, no data stores.
- Balancing: child diagram must show the same external flows as its parent process.
- Black hole (in, no out), miracle (out, no in), gray hole (output not derivable from input).
- Data dictionary = definitions of data elements; CRUD matrix = entity vs process.
- A scenario is one path through a use case; the use case is the whole family of paths.
- Prioritisation and negotiation sit inside elicitation/analysis, not in validation.
- Warnier–Orr shows hierarchy; ER shows data structure; DFD shows data movement.
Previous-year exam insights
- Direct definition questions dominate: which technique is observational, which process gathers-analyses-documents requirements, what an actor or a data dictionary is.
Learn the one-line textbook definition of each. - Phase-list questions: “Which is not a step of requirement engineering?” — expect plausible decoys such as requirement design or requirement testing.
- Statement I/II questions test subtle wording: “a use case must always…”, “extend is mandatory” — absolute words usually mark the false statement.
- Match List-I with List-II pairs are almost always artefact → purpose: FAST, QFD, DFD, use case, CRUD, context diagram, extension point.
- Assertion–Reason items test direction and semantics of relationships: remember the arrow direction rule and that the reason must explain, not merely be true.
- Numeric items count use cases and dependencies (include chains are transitive: U includes V and V includes Z) or count boundary flows for balancing.
- Trap: confusing level-0 (context) with level-1; the context diagram never contains data stores.
- Trap: confusing validation (are these the right requirements — validity) with verification/completeness (are the requirements correctly written and complete).
Practice at PARIKSHA
You are ready for the PARIKSHA tests of this sub-topic when you can:
- List the five RE phases in order and reject a non-phase option instantly.
- Name six elicitation techniques and state the exact situation each suits, including ethnography and prototyping.
- Expand FAST, JAD, QFD, CRUD and state what each produces.
- Draw a use case diagram for a small system and defend the direction of every «include», «extend» and generalization arrow.
- Count use cases and dependencies in a nested include/extend description without double counting.
- Draw a context diagram and a balanced level-1 DFD, and compute the number of external flows.
- Identify black hole, miracle and gray hole errors in a given DFD.
- Distinguish use case, class, ER, state, activity and Warnier–Orr models by what each captures.
- Explain the purpose of a data dictionary and a CRUD matrix in one sentence each.
- Answer a mixed assertion–reason and match-the-list set on this topic without a single notation slip.
Attempt the sub-topic test first, then the subject test.