1 / 20

WARNING

WARNING. These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010. They may not show up well on other PowerPoint versions . You can download PowerPoint 2010 viewer from here .

abe
Download Presentation

WARNING

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. WARNING • These slides are not optimized for printing or exam preparation. These are for lecture delivery only. • These slides are made for PowerPoint 2010. They may not show up well on other PowerPoint versions. You can download PowerPoint 2010 viewer from here. • These slides contain a lot of animations. For optimal results, watch in slideshow mode.

  2. Can a butterfly flapping its wings cause a tornado somewhere else in the world?

  3. Bug fix → break other code?

  4. Bug fix → break other code? REGRESSIONS [undesirable side effects of modifications]

  5. Stop butterflies from causing tornadoes: preventing regressions CS2103/T, Lecture 1, Part 3, [Aug 16, 2013]

  6. other test cases TEST CASE test input expected output Compare Regression test mismatch = Software Under Test (SUT) actual output Locate bug modify bug located!

  7. other test cases TEST CASE test input expected output Compare Regression test mismatch = Software Under Test (SUT) actual output Locate bug modify bug located!

  8. other test cases TEST CASE test input expected output Compare Regression test mismatch = Software Under Test (SUT) actual output Debug modify bug located!

  9. other test cases TEST CASE test input expected output Compare Regression test mismatch = Software Under Test (SUT) actual output Debug modify bug located!

  10. other test cases TEST CASE test input expected output Compare Regression test mismatch = Software Under Test (SUT) actual output Debug modify For this to work: 1. Document test cases 2. Automate testing bug located!

  11. Example SUT (Text UI Minesweeper)

  12. Example SUT (Text UI Minesweeper)

  13. Example SUT (Text UI Minesweeper)

  14. Example SUT (Text UI Minesweeper)

  15. Example SUT (Text UI Minesweeper)

  16. 1. Document test cases exploratory • testing • scripted testing Test case 1: input: expected: Test case 2:

  17. 2. Automate testing (for Text UIs) C:\Java MinesweeperTextUI C:\ FC actual.txt expected.txt Comparing files actual.txt and expected.txt FC: no differences encountered <input.txt >actual.txt

  18. let us do regression testing, REGRESSIONS preferably scripted, preferably automated.

More Related