7 September 2010 George Fairbanks –RhinoResearch.com 17
4. QA scenario structure
QA Scenario Templates
•Basic template: stimulus and response
• Stimulus: agent or situation that
triggers scenario
• Response: reaction to stimulus
•Ideal template: Add source, environment,
response measure
• Stimulus: as above
• Response: as above
• Source: Who/what creates stimulus
• Environment: mode of the system.
E.g., normal or low demand.
• Response measure: testable response
(e.g., “happens in 2ms”)
QA Scenario Examples
•Basic scenario: System allows
rapid scanning of book copies.
•Ideal scenario: Under normal
conditions, when a librarian
scans a book copy for
checkout, the system updates
its records and is ready to
scan the next one within 0.25
seconds.
QA scenarios from Bass et al., Software Architecture in Practice, 2003
7 September 2010 George Fairbanks –RhinoResearch.com 18
Architecture drivers
Architecture Drivers
• Each QA scenario can be graded by:
• Importance to stakeholder
(high, medium, low)
• Difficulty to implement (high,
medium, low)
• Architecture drivers are
• QA scenarios
• or functional scenarios (eg use
cases)
• that are rated (H,H)
Examples
• S1 (H,H): When a librarian scans a
book copy for checkout, the system
updates its records and is ready to
scan the next one within 0.25
seconds.
• S2 (M,H): When librarian station
cannot contact the main system,
librarians can continue to check
books in and out.
• S3 (H,M): The system can be
modified to use a different source of
borrower entitlements within 1
programmer week of effort.
8