WARNING - PowerPoint PPT Presentation

warning n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
WARNING PowerPoint Presentation
play fullscreen
1 / 60
WARNING
166 Views
Download Presentation
ardith
Download Presentation

WARNING

- - - - - - - - - - - - - - - - - - - - - - - - - - - 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. 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

  3. [Extra] 100 fish

  4. System testing SUT

  5. System testing SUT

  6. System testing SUT

  7. [Extra] who wants maximum publicity Do you want maximum publicity for your mistakes?

  8. [Extra] who wants maximum publicity Do you want maximum publicity for your mistakes?

  9. Never too early to test: An Introduction to Early Developer Testing CS2103/T, Lecture 4, Part 2, [Feb 7, 2014]

  10. MSLogic History UI MSLogic History UI Storage Unit testing Storage

  11. MSLogic History UI MSLogic History UI Storage Unit testing Storage

  12. Unit testing SUT UI MSLogic History Storage

  13. Unit testing SUT UI MSLogic History Storage

  14. Unit testing Test Driver SUT Stub UI MSLogic History Stub Storage

  15. 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”; …

  16. 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”); …

  17. 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”); …

  18. 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

  19. UI MSLogic History Storage Unit testing

  20. UI MSLogic History Storage Unit testing

  21. UI MSLogic History Storage Integration testing

  22. UI MSLogic History Storage Integration testing

  23. UI MSLogic History Storage Integration testing

  24. SUT Test-Driven Development (TDD)

  25. Write a failing test Write code to pass test Test-Driven Development (TDD)

  26. CityConnectTest.java CityConnect.java

  27. CityConnectTest.java CityConnect.java

  28. CityConnectTest.java CityConnect.java Clementi true Novena  true Eunos true Changi false Clementi --- Eunos Eunos --- Novena

  29. CityConnectTest.java CityConnect.java

  30. CityConnectTest.java CityConnect.java

  31. CityConnectTest.java CityConnect.java

  32. CityConnectTest.java CityConnect.java

  33. CityConnectTest.java CityConnect.java

  34. CityConnectTest.java CityConnect.java

  35. CityConnectTest.java CityConnect.java

  36. CityConnectTest.java CityConnect.java

  37. CityConnectTest.java CityConnect.java

  38. CityConnectTest.java CityConnect.java

  39. CityConnectTest.java CityConnect.java

  40. CityConnectTest.java CityConnect.java

  41. CityConnectTest.java CityConnect.java

  42. CityConnectTest.java CityConnect.java

  43. CityConnectTest.java CityConnect.java

  44. CityConnectTest.java CityConnect.java

  45. CityConnectTest.java CityConnect.java

  46. CityConnectTest.java Note: more test cases required. CityConnect.java

  47. Write a failing test Write code to pass test Test-Driven Development (TDD)