Home
Browse
Create
Search
Log in
Sign up
Upgrade to remove ads
Only $2.99/month
CISC 327 Quiz 2 succinct
STUDY
Flashcards
Learn
Write
Spell
Test
PLAY
Match
Gravity
Terms in this set (17)
Validation
The process of checking that what has been specified is what the user actually wanted. Usually involves meetings, reviews, and discussions to check what has been specified is what was intended.
Verification
The checking or testing of software for conformance and consistency with a given specification. Testing is most useful in verification, but only one part of it.
Debugging
The process of analyzing and locating bugs when the software does not behave as expected. Supports testing but cannot replace it as it fixes the bugs found in testing.
Testing
Methodically searches for and exposes bugs, not just fixing those that happen to show up by playing with the software
White Box Methods
1. Statement coverage
2. Basic block coverage
3. Decision coverage
4. Condition coverage
5. Branch coverage
6. Loop coverage
7. Path coverage
8. Mutation Testing
Black Box Methods
1. Shotgun testing
2. Functionality Coverage
3. Output Coverage
4. Input Coverage
5. Exhaustive Testing
6. Robustness Testing
Input Coverage - Test case selection & completion criterion
Test case selection: all possible inputs
Completion criterion: show software correctly handles all allows inputs
Shotgun testing - Test case selection & completion criterion
Test case selection: large number of random input values
Completion criterion: None
Statement Coverage testing - test case selection & completion criterion
Test case selection: each independent statement in the program
Completion criterion: a test case for every statement
Basic block coverage - test case selection & completion criterion
Test case selection: identify basic blocks, which are sequence of statements in a row such that if first is executed then following are executed
Completion criterion: test case for every basic block
Decision coverage - test case selection & completion criterion
Test case selection: a test case to exercise each decision in the program each way
Completion criterion: a test case for each side of each decision
Loop coverage - test case selection & completion criterion
Test case selection: devise test cases to exercise each loop with zero, one, two or many repetitions
Completion criterion: a test for each of these cases for each loop, verified using instrumentation injection
Path coverage - test case selection & completion criterion
Test case selection: make one test case for each independent path analyzing which inputs are needed to exercise the path
Completion criterion: a test case for each path
Data path coverage - test case selection & completion criterion
Test case selection: identify output variables, analyze code to find data flow paths that affect their value
Completion criterion: test for each data flow path to output
What is a test harness?
Sets up an appropriate environment to use a unit and invokes it with test input, checking the test outcome, and reporting any failure
How is a test harness used?
It automates testing by running test cases and generating test reports. It's a special standalone program that calls the method that is being tested
What is a stub method?
Programmed to give typical outcomes of the real methods they take the place of, allowing us to test independently of the real unit the stub replaces
OTHER SETS BY THIS CREATOR
CISC 325 Midterm
28 terms
CISC 327 Test 3
40 terms
CISC 322 QUIZ 2
37 terms
CISC 327 QUIZ 2 REVIEW
84 terms