Docsity

Software Testing Lecture: Identifying and Reporting Bugs, Summaries of Software Engineering

Partial preview of the text

Download Software Testing Lecture: Identifying and Reporting Bugs and more Summaries Software Engineering in PDF only on Docsity!

Software Testing

Lecture (2)

Dr. Manar Elkady [email protected] These material are retrieved from previous courses offering by Dr. Soha Makady and Prof. Amr Kamel (^) 1

Outline

  • A Software bug
  • An Effective Bug Report
  • Severity and Priority
  • A Bug’s Lifecycle
  • Bug/Defect Tracking Systems

Our Calculator! (Cont’d)

  • Should you consider the following a bug, or no?
    1. As a tester, you press the + key, and nothing happens.
    2. The spec. states that the calculator should never crash or freeze.
  • You pound on the keys, and you get the calculator to stop responding to your input.
  1. Besides addition, subtraction, multiplication, and division, the calculator correctly performs square roots.

Our Calculator! (Cont’d)

  • Should you consider the following a bug, or no?
    1. When the battery gets weak, you start getting wrong answers for your calculations.
  • The spec. ever considered how the calculator should react in such mode.
  1. You find the buttons too small. The display is difficult to read.
  • ALL of the above ARE bugs.

A Software Bug

  • A bug occurs when one, or more of the following rules is true: Besides addition, subtraction, multiplication, and division, the calculator correctly performs square roots.
    • Rule 3: The software does something that the spec. does not mention. When the battery gets weak, you start getting wrong answers for your calculations.
  • Rule 4: The software doesn’t do something that the specification does not mention but should.

A Software Bug

  • A bug occurs when one, or more of the following rules is true: You find the buttons too small. The display is difficult to read.
    • Rule 5: The software is difficult to understand, hard to use, slow …etc. (i.e., something is just plain not right).

An Effective Bug Report

  • Minimal:
    • It explains just the facts and the details necessary to demonstrate and describe the bug.
    • Be short and to the point.
  • Singular:
    • There should be only one bug per report.
    • When in doubt, enter individual bugs. You’re looking for symptoms, not causes.
    • Examples:
      • “The following words are misspelled on 15 different pages in the online help file: ….”. What do you think of that report?
      • “The login dialog won't accept passwords or login IDs with uppercase characters”. What do you think of that report?

An Effective Bug Report

  • Reproducible.
    • To be taken seriously, a bug report must show the bug to be reproducible —following a predefined set of steps will cause the software to achieve the same state and the bug to occur again.
    • E.g., Try to isolate what seems like a random behavior. How?
  • But … Are all bugs equal?
    • No!

Bugs Are NOT Equal (Cont’d)

  • Priority: indicates how much emphasis should be placed on fixing the bug.
  • Priority possible values:
    1. Immediate fix: blocks further testing, very obvious.
    2. Must fix before the product is released.
    3. Should fix when the time permits.
    4. Would like to fix but the product can be released as is.
  • Let’s see some examples.

Bugs Are NOT Equal (Cont’d)

What are the severities/priorities of the bugs below? A. A data corruption bug that happens very rarely. B. A misspelling in the setup instructions that causes users to phone in for help. C. A software release (for testing) that crashes on startup D. A button should be moved a little bit to the left

A Bug’s Lifecycle

A Bug’s Lifecycle

A complicated Bug’s Lifecycle

A complicated Bug’s Lifecycle