
CSIS 370 – Lecture 9
Announcements
Get your source code into Subversion if you haven't done so already.
Software Testing, Chapter 5
Test-to-Pass and Test-to-Fail – You will also see the terms 'positive test case' and
'negative test case' for these.
Why is it good to do test-to-pass first?
- Well, just to see if the software works under normal conditions
- If it doesn't work under normal conditions, it’s a waste of time to try abnormal
ones.
What’s the relationship between boundary conditions and test-to-pass/test-to-fail?
How can you apply the ideas in this chapter to your projects?
Page 74: Example of writing to a CD – can you think of any other boundaries? Book uses
file size, but what other measures might there be? Number of files, others?
Page 75, table: any comments or observations?
- doesn't include signed values
- assumes word is 4 bytes, not always true.
Page 78: Invalid, wrong, incorrect, garbage. This is a good idea, can find funny bugs. Tell
story about my 2 year old daughter.
Page 85: What are some of the challenges of testing race conditions, stress testing, etc.?
What if you find a bug? (Repeatability can be a big challenge!)
Stress Testing: note that this is also a type of boundary testing. Specification and/or
marketing literature might provide the boundary values.
Scenarios:
Shopping Web Site with search function. What are some boundary tests?
- Search with empty result
- Search with single product result
- Search with multiple product result
What if results are displayed in multiple pages, with 10 products per page?
What if user can change the number of products displayed on a page?