1 test cases csse 376, software quality assurance rose-hulman institute of technology march 13, 2007
Post on 18-Dec-2015
213 views
TRANSCRIPT
1
Test Cases
CSSE 376, Software Quality Assurance
Rose-Hulman Institute of Technology
March 13, 2007
3
Test Design Process
1. Design tests elaborate test plan based on requirements
2. Develop test cases based on knowledge of system behavior
3. Verify test cases verify procedures debug test cases
4
1. Design Tests
Define test objectives what, not how based on requirements
Define input specifications files, databases not keyboard or mouse input
5
1. Design Tests (continued)
Define test configuration for each test operating system version network configuration
Review test designs for coverage and accuracy all requirements covered? all inputs identified? all configurations identified?
6
2. Develop Test Cases
Develop detailed test procedures use black-box techniques like equivalence
partitioning and boundary value analysis specify actions and expected results
Define test setup and cleanup, noting inter-case dependencies restart computer at start of testing reset system to known configuration at
start of each test
7
Equivalence Partitioning
Divide the input into independent categories (partitions) use the requirements specification consider type of each input
Select a value from each category Why is this a good idea?
10
Boundary Value Analysis
For each input partition identified earlier: pick values on the boundary pick values on each side of the
boundary Why is this a good idea?
11
3. Verify Test Cases
Review test procedures are the inputs unambiguous? are the outputs unambiguous?
Debug test cases (during first run) run the test as specified note flaws in test case as well as
flaws in software