1 / 15

Introduction to Software Testing Lecture 5: Supporting Material Dr Kathryn Merrick Tuesday 17 th March, 2009

Introduction to Software Testing Lecture 5: Supporting Material Dr Kathryn Merrick Tuesday 17 th March, 2009. Overview. Types of software errors Types of testing Developing a test plan Reference: Text book Ch 10. Quiz. Why do programmers need to test their software?

dalila
Download Presentation

Introduction to Software Testing Lecture 5: Supporting Material Dr Kathryn Merrick Tuesday 17 th March, 2009

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Software Testing Lecture 5: Supporting Material Dr Kathryn Merrick Tuesday 17th March, 2009

  2. Overview • Types of software errors • Types of testing • Developing a test plan Reference: Text book Ch 10.

  3. Quiz • Why do programmers need to test their software? • To keep management happy • To ensure the program works as required • They don’t • What is a bug? • Something you find in the garden • A syntax or logic error in program code • Don’t know, I doesn’t get them • When should testing occur? • At the end of development • Throughout development • As infrequently as possible Joking A  Management B  Tester C  Programmer

  4. 1. Why Test Software? • Ensure it meets client requirements • Health and safety of future users • Protect your reputation as a programmer

  5. 2. What is a Bug? • The term has been seen in texts as far back as 1878 • Problems with radar electronics during World War II were referred to as bugs • Operators at the Harvard Faculty Computation Laboratory traced an error in the Mark II to a moth trapped in a relay • In programming a bug is an error. It can be: • A syntax error • A logic error

  6. Demo 1: Common Syntax Errors in MATLAB

  7. Logic Errors Program compiles and runs BUT… Does not produce correct results OR Program produces logically correct results BUT… Does not meet client specifications

  8. 3. When to Test? • Different types of testing should occur at different stages of software development: • White box testing: done by programmers throughout development. • Black box testing: done by a test team towards the end of development.

  9. Demo 2: White box testing using code tracing

  10. Demo 3: White box testing using the MATLAB debugger

  11. Black Box Testing: Developing a Test Plan • Include tests for: • Normal usage scenarios • Abnormal usage scenarios • Boundary cases

  12. Demo 4: Black box testing for the meteor_simulator

  13. Testing Abnormal Usage Scenarios

  14. Summary • After today’s lecture you should be able to: • Describe the difference between syntax and logic errors • Define white box and black box testing • Develop a test plan for black box testing • Use code tracing and graphical debuggers as tools for white box testing

More Related