warning
Download
Skip this Video
Download Presentation
WARNING

Loading in 2 Seconds...

play fullscreen
1 / 60

WARNING - PowerPoint PPT Presentation


  • 149 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' - ardith


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.
extra 100 fish

How long will they take to catch all fish?

Less than 1 hour

Around 1 hour

About 100 hours

Forever

[Extra] 100 fish

If 100 people trying to catch 100 piranha fish in a lake. On average, one person can catch one fish within 1 hour

fish {a|b|c|d}

e.g. fish c

77577OR tinyurl.com/answerpost

extra who wants maximum publicity
[Extra] who wants maximum publicity

Do you want maximum publicity for your mistakes?

extra who wants maximum publicity1
[Extra] who wants maximum publicity

Do you want maximum publicity for your mistakes?

slide10

Never too early to test:

An Introduction to Early Developer Testing

CS2103/T, Lecture 4, Part 2, [Feb 7, 2014]

slide11

MSLogic

History

UI

MSLogic

History

UI

Storage

Unit testing

Storage

slide12

MSLogic

History

UI

MSLogic

History

UI

Storage

Unit testing

Storage

slide13

Unit testing

SUT

UI

MSLogic

History

Storage

slide14

Unit testing

SUT

UI

MSLogic

History

Storage

slide15

Unit testing

Test Driver

SUT

Stub

UI

MSLogic

History

Stub

Storage

slide16

Unit testing

Test Driver

SUT

Stub

UI

MSLogic

History

Stub

Storage

String retrieveFromDatabasse (intkey){

if(key==1) return “Item for key 1”;

if(key==2) return “Item for key 2”;

slide17

Unit testing

Test Driver

SUT==MSLogic

Stub

UI

MSLogic

History

Stub

Storage

String item = msLogic.getItem(1);

if(!item.equals(“Item1”) print(“Case 1 failed”);

slide18

Unit testing

Test Driver

SUT==MSLogic

Stub

UI

MSLogic

History

Stub

Storage

String item = msLogic.getItem(1);

if(!item.equals(“Item1”) print(“Case 1 failed”);

slide19

String item = msLogic.getItem(1);

if(!item.equals(“Item1”) print(“Case 1 failed”);

assertEquals(msLogic.getItem(1), “Item1”);

JUnit (Java)

Visual Studio Native Tests (C++)

Testing frameworks

slide22

UI

MSLogic

History

Storage

Unit testing

slide23

UI

MSLogic

History

Storage

Unit testing

slide24

UI

MSLogic

History

Storage

Integration testing

slide25

UI

MSLogic

History

Storage

Integration testing

slide26

UI

MSLogic

History

Storage

Integration testing

slide27

SUT

Test-Driven Development (TDD)

slide28

Write a failing test

Write code to pass test

Test-Driven Development (TDD)

slide29

CityConnectTest.java

CityConnect.java

slide30

CityConnectTest.java

CityConnect.java

slide31

CityConnectTest.java

CityConnect.java

Clementi true

Novena  true

Eunos true

Changi false

Clementi --- Eunos

Eunos --- Novena

slide32

CityConnectTest.java

CityConnect.java

slide33

CityConnectTest.java

CityConnect.java

slide34

CityConnectTest.java

CityConnect.java

slide35

CityConnectTest.java

CityConnect.java

slide36

CityConnectTest.java

CityConnect.java

slide37

CityConnectTest.java

CityConnect.java

slide38

CityConnectTest.java

CityConnect.java

slide39

CityConnectTest.java

CityConnect.java

slide40

CityConnectTest.java

CityConnect.java

slide41

CityConnectTest.java

CityConnect.java

slide42

CityConnectTest.java

CityConnect.java

slide43

CityConnectTest.java

CityConnect.java

slide44

CityConnectTest.java

CityConnect.java

slide45

CityConnectTest.java

CityConnect.java

slide46

CityConnectTest.java

CityConnect.java

slide47

CityConnectTest.java

CityConnect.java

slide48

CityConnectTest.java

CityConnect.java

slide49

CityConnectTest.java

Note: more test cases required.

CityConnect.java

slide50

Write a failing test

Write code to pass test

Test-Driven Development (TDD)

slide53

75,000 Lines of Code

70+ developers

slide59

It can save your career.

Must do developer testing

Can do in TDD fashion

Only system testing? NO

Use automated test driver frameworks

slide60

↙ ?

Should do this too

Everyone should do some

Do in CE2,

Optional in project

Use these

ad