Test Design Techniques
Test Design Techniques
Pavithra Subashini
Senior lecturer
Faculty of Computing
Test case is defined as
• A set of test inputs, execution conditions and expected results,
developed for a particular objective.
• Documentation specifying inputs, predicted results and a set of
execution conditions for a test item.
• Specific inputs that will be tried and the procedures that will be
followed when the software tested.
• Sequence of one or more subtests executed as a sequence as the
outcome and/or final state of one subtests is the input and/or initial
state of the next.
• Specifies the pretest state of the AUT and its environment, the test
inputs or conditions.
• The expected result specifies what the AUT should produce from
the
test inputs.
Test Cases
Find Defects
• Have high probability of finding a new defect.
• Unambiguous tangible result that can be inspected.
• Repeatable and predictable
• Traceable to requirements or design documents
• Push systems to its limits
• Execution and tracking can be automated
• Do not mislead
• Feasible
Test Case Design Technique
Example:
If one application is accepting input range from 1 to 100, using equivalence class we
can divide inputs into the classes, for example, one for valid input and another for
invalid input and design one test case from each class.
In this example test cases are chosen as below:
• One is for valid input class i.e. selects any value from input between ranges 1 to
100. So here we are not writing hundreds of test cases for each value. Any one
value from this equivalence class should give you the same result.
• One is for invalid data below lower limit i.e. any one value below 1.
• One is for invalid data above upper limit i.e. any value above 100.
Boundary
Advantages:-
1) It provide complete coverage of test cases which help to reduce the
rework on writing test scenarios & test cases.
2) Any complex business flow can be easily converted into the test scenarios
& test cases using this technique.
3) Simple to understand and everyone can use this method design the test
scenarios & test cases.
4) These tables guarantee that we consider every possible combination of
condition values. This is known as its “completeness property”.
Cause Effect Graph
A “Cause” represents a distinct input condition that brings about an internal
change in the system.
• Prerequisite
• Test Steps
• Input Data
• Expected Result
• Actual Result
• Status
• Severity
• Priority
• Executed by
• Comments
Project details
• Project name
• Module name
• Created by
• Created date
• Reviewed by
• Reviewed date
Sample 1
Equivalence Partitioning
Boundary value analysis
Open excel sheet
Start test case writing
Activity