Warning
Download
1 / 28

WARNING - PowerPoint PPT Presentation


  • 153 Views
  • Uploaded on

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 .

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' WARNING' - regina


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
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.

  • These slides contain a lot of animations. For optimal results, watch in slideshow mode.



Bug fix break other code
Bug fix → break other code? else in the world?


Bug fix break other code1
Bug fix → break other code? else in the world?

REGRESSIONS

[undesirable side effects of modifications]


Bug fix break other code2
Bug fix → break other code? else in the world?

REGRESSIONS

[undesirable side effects of modifications]


Bug fix break other code3
Bug fix → break other code? else in the world?

REGRESSIONS

[undesirable side effects of modifications]


Stop butterflies from causing tornadoes: else in the world?

  • preventing

REGRESSIONS

CS2103/T, Lecture 1, Part 3, [Jan 17, 2014]


Stop butterflies from causing tornadoes: else in the world?

  • preventing

REGRESSIONS

CS2103/T, Lecture 1, Part 3, [Jan 17, 2014]


Stop butterflies from causing tornadoes: else in the world?

  • preventing

REGRESSIONS

CS2103/T, Lecture 1, Part 3, [Jan 17, 2014]


other test else in the world? cases

TEST CASE

test input

expected output

Compare

Regression testing

mismatch =

Software Under Test (SUT)

actual output

Locate bug

modify

How to prevent?

bug located!


other test else in the world? cases

TEST CASE

test input

expected output

Compare

Regression testing

mismatch =

Software Under Test (SUT)

actual output

Locate bug

modify

… is the re-running of existing tests to detect regressions.

bug located!


other test else in the world? cases

TEST CASE

test input

expected output

Compare

Regression test

mismatch =

Software Under Test (SUT)

actual output

Locate bug

modify

bug located!


other test else in the world? cases

TEST CASE

test input

expected output

Compare

Regression test

mismatch =

Software Under Test (SUT)

actual output

Debug

modify

bug located!


other test else in the world? cases

TEST CASE

test input

expected output

Compare

Regression test

mismatch =

Software Under Test (SUT)

actual output

Debug

modify

bug located!


other test else in the world? 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!


Example sut text ui minesweeper
Example SUT ( else in the world?Text UI Minesweeper)


Example sut text ui minesweeper1
Example SUT ( else in the world?Text UI Minesweeper)


Example sut text ui minesweeper2
Example SUT ( else in the world?Text UI Minesweeper)


Example sut text ui minesweeper3
Example SUT ( else in the world?Text UI Minesweeper)


Example sut text ui minesweeper4
Example SUT ( else in the world?Text UI Minesweeper)


1 document test cases
1. Document test else in the world? cases

exploratory

  • testing

  • scripted testing

Test case 1:

input:

expected:

Test case 2:


2 automate testing for text uis
2. Automate testing (for Text UIs) else in the world?

TEST CASE 1

test input

expected output

TEST CASE 2

test input

expected output

TEST CASE 3

test input

expected output


2 automate testing for text uis1
2. Automate testing (for Text UIs) else in the world?

TEST CASE 1

test input

expected output

TEST CASE 2

test input

expected output

TEST CASE 3

test input

expected output


2 automate testing for text uis2
2. Automate testing (for Text UIs) else in the world?

expected output

test input

expected output

test input

expected output

test input


2 automate testing for text uis3
2. Automate testing (for Text UIs) else in the world?

C:\MinesweeperTextUI.exe

FC actual.txt expected.txt

Comparing files actual.txt and expected.txt

FC: no differences encountered

<input.txt >actual.txt

C:\


  • Do else in the world?regression testing.

REGRESSIONS

exploratory or scripted?

manual orautomated?


ad