Test Requirements: The Basis of Testing
Test Requirements: The Basis of Testing
1
Test Requirements
Test
Generates M Requirement
1
Test
Scenarios/ M Executes/Runs
Generates M Cases 1
Test
Procedure/
Script
8
Test
Requirement
Test
Scenarios/
Then we’ll look Cases
at this relationship: Test
Gernerating TR’s Procedure/
from what feeds into Script
our testing process 9
These are test requirements NOT tests because they do not describe the
data element being used (like $20, $40, $60, $1)
The data is irrelevant at this level, it will appear in the test cases used
to cover these test requirements
11
14
Generating TR’s
Also...
Maintain a level of balance between too much & too little
- Too High level: won’t be useful, vague, can’t generate test cases
from it.
- Too low level: Over-process, over documentation, no productivity
- General rule: 5-7 levels deep in an outline format
Organize them!
- Outline/Hierarchy format recommended
- Look at how the BA breaks down the project into areas
- Look at how the PA breaks down the project into areas
- Organize by functional areas
- Organize by “types” of testing (Function vs. System vs. Non-Functional)
15
Generating TR’s
Organizing by Functional areas….
16
Organizing TR’s
Organizing by Functional areas….
Most testers also perform User
Interface Style Tests
- These are generally separate from the
functionality that the software will
provide
- Usually encompass the architectural
standards & compliance (like Windows
Design Standards)
- Also includes tests of navigation, menus,
admin functions (like printing, saving)
17
Organizing TR’s
Remember this?…Drilling down
Business
Requirement
Test
Requirement
Test
Scenarios/
Cases
Test
Procedure/
Script
18
Business
Function
Tasks within the
Business Function
Transactions to
Requirement perform a task
Field Validation
Test
Requirement
20
Decomposing TR’s
Test Requirement Decomposition
Transactions to
perform a task
Lower level
Data Entry Types
Functional Areas:
for transactions
usually from
“Technical Spec” type
docs regarding Field Validation
internal logic,
21
or PA work
Decomposing TR’s
Test Requirement
Decomposition
You can start on the high level functional areas early
into the project & build in lower level areas as they
become available
Any level can contain a test requirement which can also
be made up of (or broken down into) lower level test
requirements
22
Decomposing TR’s
Example 3: Rental Car Application
1. Validate that a Rental can occur.
1.1 Check Customer policy coverage
1.2 Query Car availability
Let’s look at
1.3 Query Car rates
the lower levels
1.4 Open a Rental ticket for this one
Decomposing TR’s
Example 3: Rental Car Application
1. Validate that a Rental can occur.
1.4 Open a Rental ticket
1.4.1 Validate that a customer record can be entered
1.4.1.1 Validate that a new customer can be added to
the customer table
1.4.1.1.1 Validate that the first name is all alpha
1.4.1.1.2 Validate that the age is > 21.
1.4.1.1.3 Validate that the phone number is
numeric
1.4.1.1.4 Validate area code is an existing area
code number.
1.4.1.2 Validate changing an existing customer
24
Decomposing TR’s
Example 3: Rental Car Application
1. Validate that a Rental can occur.
1.4 Open a Rental ticket
1.4.2 Validate that credit card approval is obtained
Decomposing TR’s
What did you come up with?
1. Validate that a Rental can occur.
1.4 Open a Rental ticket
1.4.2 Validate that credit card approval is obtained
_________________________________________
_________________________________________
_________________________________________
_________________________________________
_________________________________________
_________________________________________
_________________________________________
_________________________________________
26
Decomposing TR’s
Possible Test Requirements...
1. Validate that a Rental can occur. Function
27
Decomposing TR’s
Test Coverage Measures
Test Requirements are the “what” of testing & are the basis for
establishing the completion of testing
TR’s give us the point of measurement for test coverage
Each TR should receive a Priority, Risk, and Weight
Each TR should be tracked for Verification () and Validation (%)
28