590 likes | 788 Views
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 .
E N D
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.
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 77577
System testing SUT
System testing SUT
System testing SUT
[Extra] who wants maximum publicity Do you want maximum publicity for your mistakes?
[Extra] who wants maximum publicity Do you want maximum publicity for your mistakes?
Never too early to test: An Introduction to Early Developer Testing CS2103/T, Lecture 4, Part 2, [Sep 6, 2013]
MSLogic History UI MSLogic History UI Storage Unit testing Storage
MSLogic History UI MSLogic History UI Storage Unit testing Storage
Unit testing SUT UI MSLogic History Storage
Unit testing SUT UI MSLogic History Storage
Unit testing Test Driver SUT Stub UI MSLogic History Stub Storage
Unit testing Test Driver SUT Stub UI MSLogic History Stub Storage String getItem (int key){ if(key==1) return “Item for key 1”; if(key==2) return “Item for key 2”; …
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”); …
String item = msLogic.getItem(1); if(!item.equals(“Item1”) print(“Case 1 failed”); … assertEquals(msLogic.getItem(1), “Item1”); … Testing frameworks
UI MSLogic History Storage Unit testing
UI MSLogic History Storage Unit testing
UI MSLogic History Storage Integration testing
UI MSLogic History Storage Integration testing
UI MSLogic History Storage Integration testing
SUT Test-Driven Development (TDD)
Write a failing test Write code to pass test Test-Driven Development (TDD)
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java Clementi true Novena true Eunos true Changi false Clementi --- Eunos Eunos --- Novena
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java CityConnect.java
CityConnectTest.java Note: more test cases required. CityConnect.java
Write a failing test Write code to pass test Test-Driven Development (TDD)