Docsity

CSIS 370 Lecture 6: The Purpose of Testing Software, Study notes of Civil Engineering

Toggle sidebar
bg1
CSIS 370 โ€“ Lecture 6
Announcements
Design Documentation: due Thursday, February 9 (two weeks from today). Description
of what I expect on course web site in the Projects section.
Test Plan Template. Your Functional Test Plan will be due in mid-March. I have posted
an MS-Word template on the course web site for you to use (Projects section). This
template is for documenting your formal test plan (as opposed to the exploratory tests that
we read about in Chapter 1). We will be reading more about this soon.
At this time, you should be thinking about how you are going to test your applications.
Start making notes about potential tests. Think about boundary conditions. Use your fit
criteria to help define the tests.
Testing Computer Software: Chapter 2 (Objectives and Limits of Testing)
Key Points:
- Can't test everything (pages 18-22)
- Even if you found the last bug in a program, you wouldn't know it
- A program that satisfies its requirements specification may still have errors:
oSpecification incorrect
oSpecification incomplete
oUser Interface problems
- The objective of testing is not to verify that the program works. Why not?
oFirst of all, it's mistaken โ€“ the program has bugs, so you can't verify that it
works.
oSecond of all, it's not possible. There are too many things to test, so it is
impossible to verify correctness.
oThird, it sets up testers to fail.
oFourth, it encourages an ineffective attitude โ€“ if you expect a program to
work, you won't notice some of the bugs.
- "Purpose of Testing a program is to find problems in it" (page 25)
- A test that reveals a problem is a success
- A test that does not reveal a problem is a waste of time
Some questions to ask:
- What is the purpose of testing?
oIsn't it to show that the program works?
o"Purpose of Testing a program is to find problems in it" (page 25)
- What is goal of testing?
oTo get the problems fixed, so that the overall quality of the program is
improved.
- What did you think about the discussion of psychological attitude?
pf2

Partial preview of the text

Download CSIS 370 Lecture 6: The Purpose of Testing Software and more Study notes Civil Engineering in PDF only on Docsity!

CSIS 370 โ€“ Lecture 6

Announcements Design Documentation: due Thursday, February 9 (two weeks from today). Description of what I expect on course web site in the Projects section. Test Plan Template. Your Functional Test Plan will be due in mid-March. I have posted an MS-Word template on the course web site for you to use (Projects section). This template is for documenting your formal test plan (as opposed to the exploratory tests that we read about in Chapter 1). We will be reading more about this soon. At this time, you should be thinking about how you are going to test your applications. Start making notes about potential tests. Think about boundary conditions. Use your fit criteria to help define the tests. Testing Computer Software: Chapter 2 (Objectives and Limits of Testing) Key Points:

  • Can't test everything (pages 18-22)
  • Even if you found the last bug in a program, you wouldn't know it
  • A program that satisfies its requirements specification may still have errors: o Specification incorrect o Specification incomplete o User Interface problems
  • The objective of testing is not to verify that the program works. Why not? o First of all, it's mistaken โ€“ the program has bugs, so you can't verify that it works. o Second of all, it's not possible. There are too many things to test, so it is impossible to verify correctness. o Third, it sets up testers to fail. o Fourth, it encourages an ineffective attitude โ€“ if you expect a program to work, you won't notice some of the bugs.
  • "Purpose of Testing a program is to find problems in it" (page 25)
  • A test that reveals a problem is a success
  • A test that does not reveal a problem is a waste of time Some questions to ask:
  • What is the purpose of testing? o Isn't it to show that the program works? o "Purpose of Testing a program is to find problems in it" (page 25)
  • What is goal of testing? o To get the problems fixed, so that the overall quality of the program is improved.
  • What did you think about the discussion of psychological attitude?

o What does this suggest that the appropriate attitudes in your group should be? o Doesn't this set up an adversarial relationship between members of a group that is supposed to be a team? Remember, teams are supposed to have a common goal).

  • Author states that, "A test that reveals a problem is a success. A test that does not reveal a problem is a waste of time". What does this suggest about your approach to testing? o What kinds of tests are more likely to find problems?