Presentation is loading. Please wait.

Presentation is loading. Please wait.

WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010.

Similar presentations


Presentation on theme: "WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010."— 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. 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

4

5 Bug fix → break other code?

6 [undesirable side effects of modifications] Bug fix → break other code?

7 [undesirable side effects of modifications] Bug fix → break other code?

8 [undesirable side effects of modifications] Bug fix → break other code?

9 Stop butterflies from causing tornadoes: preventing CS2103/T, Lecture 1, Part 3, [Aug 15, 2014]

10 Stop butterflies from causing tornadoes: preventing CS2103/T, Lecture 1, Part 3, [Aug 15, 2014]

11 Stop butterflies from causing tornadoes: preventing CS2103/T, Lecture 1, Part 3, [Aug 15, 2014]

12 TEST CASE Software Under Test (SUT) test input actual output expected output Compare Locate bug modify other test cases Regression testing mismatch = bug located! How to prevent?

13 TEST CASE Software Under Test (SUT) test input actual output expected output Compare Locate bug modify other test cases Regression testing mismatch = bug located! … is the re-running of existing tests to detect regressions.

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

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

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

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

18 Example SUT (Text UI Minesweeper)

19

20

21

22

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

24 2. Automate testing (for Text UIs) TEST CASE 1 expected output TEST CASE 2 expected output TEST CASE 3 expected output test input

25 2. Automate testing (for Text UIs) TEST CASE 1 expected output TEST CASE 2 expected output TEST CASE 3 expected output test input

26 2. Automate testing (for Text UIs) expected output test input

27 2. Automate testing (for Text UIs) C:\MinesweeperTextUI.exe FC actual.txt expected.txt Comparing files actual.txt and expected.txt FC: no differences encountered C:\MinesweeperTextUI.exe FC actual.txt expected.txt Comparing files actual.txt and expected.txt FC: no differences encountered actual.txt C:\

28 To prevent ……………….. exploratory or …………..? manual or ……………….?

29


Download ppt "WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010."

Similar presentations


Ads by Google