Docsity

CSIS 370 Lecture 5: Testing and Test Case Development, Study notes of Civil Engineering

Toggle sidebar
bg1
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
pf2

Partial preview of the text

Download CSIS 370 Lecture 5: Testing and Test Case Development and more Study notes Civil Engineering in PDF only on Docsity!

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? o Lengths must be positive, so test a small number and 0

o sum of two shorter sides > longer side, so test a + b = c (and a + c = b, and b+c = a) Last bullet item shows that testers need to understand the problem domain. In business applications, this means that you have to understand what the business is.