
CSIS 370 โ Lecture 5
Announcements
Read chapter 3
Subversion problems
Discuss Triangle Example.
Get students to develop test cases. What's a test case?
- list of input values, and the expected result. If you donโt know
what you expect, how can you know if the software is right or
wrong?
positive testing โ test case that shows software responds as we expect
it to when we supply good data
negative testing โ test case that shows that software behaves
reasonably when we give it bad data.
How many test cases do we have just for this simple program? Could
we test all possible combinations of the 3 input values?
[Book example: 39,601 combinations of numbers only!]
How could you possibly test a complex application?
Can't test everything โ
- too many combinations
What can we do to reduce number of test cases? How do we decide
what to test?
Equivalence classes
- For example, if you test 5,5,5 what is likelihood that 7,7,7 will
produce different results?
Risk based testing
- test the things that are the most critical/important/most likely to
cause serious problems if there are bugs.
- Test the parts of the program that are the most complex.
- Focus effort on these things.
Boundary testing:
- what are some boundary conditions with triangles?
oLengths must be positive, so test a small number and 0