Docsity

CSIS 370 Lecture 8: Software Testing and Defect Reporting, Study notes of Civil Engineering

Toggle sidebar
bg1
CSIS 370 โ€“ Lecture 8
Announcements
Exam 1: Current Schedule โ€“ Feb 23. Change to March 2?
Testing Computer Software: Chapter 5
Bebugging โ€“ Last reading had discussion of "bubugging" - what did you think of this
idea? Do you think it would work to make testing more effective? Do you see any
problems with it?
Are you testing the code that you intend to release? No, so you have to remove the bugs
that were intentionally put in the code. What does this mean?
State Diagram โ€“ defect report lifecycle
Open: New defect reported by a tester (customer, tech support rep, etc).
Assigned: Defect assigned to a developer to be analyzed/repaired
Fixed: developer has implemented a fix
Resolved/Closed: Tester verifies that fix corrects the bug
Deferred: Defects that are being put off until a future release
Book shows only 2 categories, but in my experience there are more.
Note that this is different from resolution code: Not a bug, irreproducible, as designed,
duplicate, fixed, โ€ฆ
Problem Report Form
Does the information on this make sense? Do you think that there is any important
information that is missing? (OS version)
Does the form suggest anything important about your software that may not be in the
requirements spec? (version number!). Why is this important to you?
Key Points
What do you think are the key points?
- Report defects immediately
obut, take the time to understand them
- Make sure that your reports are as simple and understandable as possible
- Make sure that you have found the necessary steps to reproduce the defect.
- Bug reporting involves extensive analysis before submitting the report!
- "Easy bugs get fixed even if they are minor" (page 78). In this context, easy
means that the defect report made the bug easy to find.
pf3

Partial preview of the text

Download CSIS 370 Lecture 8: Software Testing and Defect Reporting and more Study notes Civil Engineering in PDF only on Docsity!

CSIS 370 โ€“ Lecture 8

Announcements Exam 1: Current Schedule โ€“ Feb 23. Change to March 2? Testing Computer Software: Chapter 5 Bebugging โ€“ Last reading had discussion of "bubugging" - what did you think of this idea? Do you think it would work to make testing more effective? Do you see any problems with it? Are you testing the code that you intend to release? No, so you have to remove the bugs that were intentionally put in the code. What does this mean? State Diagram โ€“ defect report lifecycle Open: New defect reported by a tester (customer, tech support rep, etc). Assigned: Defect assigned to a developer to be analyzed/repaired Fixed: developer has implemented a fix Resolved/Closed: Tester verifies that fix corrects the bug Deferred: Defects that are being put off until a future release Book shows only 2 categories, but in my experience there are more. Note that this is different from resolution code: Not a bug, irreproducible, as designed, duplicate, fixed, โ€ฆ Problem Report Form Does the information on this make sense? Do you think that there is any important information that is missing? (OS version) Does the form suggest anything important about your software that may not be in the requirements spec? (version number!). Why is this important to you? Key Points What do you think are the key points?

  • Report defects immediately o but, take the time to understand them
  • Make sure that your reports are as simple and understandable as possible
  • Make sure that you have found the necessary steps to reproduce the defect.
  • Bug reporting involves extensive analysis before submitting the report!
  • "Easy bugs get fixed even if they are minor" (page 78). In this context, easy means that the defect report made the bug easy to find.
  • Lots of techniques for trying to reproduce 'irreproducible bugs' Separation of Development/Testing One thing that the book does not appear to discuss is a testing environment. What do you think I mean by this? This is a separate system/area where you can install the version of the software that you want to test. It must be separate from the development area โ€“ you don't want developers making changes while you are trying to test! So, you need to plan for this also! Testing Draw and discuss figure 23.2 from XXX. What is the goal of testing? Is it to improve software quality? G.J. Myers: "Testing is a process of executing a program with the intent of finding an error". E. W. Dijkstra: "Testing demonstrates the presence of bugs, not their absence". Where does testing fit as part of software quality assurance? Some practices are better at detecting defects than others, and different methods find different types of defects. Let's look at the % of defects detected by each of 10 common defect-detection techniques: Detection Step Lowest Rate Modal Rate Highest Rate Personal Checking of Design Documents

Informal group design reviews

Formal design inspections

Formal code inspections 30% 60% 70% Modeling or prototyping 20% 40% 50% Personal desk-checking of code

Unit Testing (single routines)