Download presentation
Presentation is loading. Please wait.
Published byAnissa York Modified over 6 years ago
1
COMPUTER 2430 Object Oriented Programming and Data Structures I
2
Expected Learning Outcomes
Develop software using elementary data structures. Design, implement, and test programs using classes, inheritance, and polymorphism. Compare and contrast algorithm efficiency at a very basic level. Write module tests, system tests, and develop test specifications. Perform simple object-oriented analysis and design. Work in a small team (two or three people) on the analysis, design, implementation, and testing of a project.
3
Testing JUnit tests TestBed main System test
4
Junit Tests Testing individual public methods of a class
A separate class Verify expected result against actual result assertEquals assertNotEquals set precision for float/double values No input and output Need programming skills
5
Testbed Main Testing all methods of a class Inside the same class
Specify input and verify output Need programming skills
6
System Tests Testing the program as a whole
Independent of any particular decomposition (classes and methods) Don’t require programming skills
7
System Testing Developed based on the program requirements
Use explicit data for input. Specify explicit expected results / outputs. Multiple test cases may be needed for one requirement Test cases must be separated and independent of each other.
8
System Testing If you give someone a program and a test document, they should be able to go through and run each test, and record whether the test passes or not. Need to know The commands to run the program Provide input Check output
9
System Testing on GolfLeague
Test Case Description Command Expected result / output 1 Add a golfer to empty golf league Print Add Frank Regular 75 All members of the League: Regular Member Frank was added Regular Member Frank: 0,75,75,75,75,75 Test Case Description Command Expected result / output 2 Cannot add golfers with the same name Add Frank Regular 73 Print Regular Member Frank was added All members of the League: Regular Member Frank: 0,73,73,73,73,73 Frank was not added Regular Member Frank: 0, 73,73,73,73,73
10
System Testing on GolfLeague
Test Case Description Command Expected result / output 3 Cannot add golfers with the same name (Robustness test) Add Frank Regular 73 Print Add Frank Regular 72 Delete Frank Regular Member Frank was added All members of the League: Regular Member Frank: 0,73,73,73,73,73 Frank was not added Regular Member Frank: 0, 73,73,73,73,73 Frank was deleted Regular Member Frank: 0,72,72,72,72,72
11
Prog4 Process Requirements
Students in one group may receive different scores on the program. In SE_Tools, enter time estimate and detailed plan of how you will finish by due date. It must specify what you plan to work on during each period. Each person enters their own; however, you work together to agree on this. You must indicate the periods you plan to work together and the periods you plan to work separately. Failure to do so by 5:00 pm November 10 will result in a 5 point deduction. Time Log in SE_Tools - individually. Comment should say what you worked on and also if you worked alone or as a group during that time. Failure to do so will result in a 5 point deduction.
12
Expected Learning Outcomes
Develop software using elementary data structures. Design, implement, and test programs using classes, inheritance, and polymorphism. Compare and contrast algorithm efficiency at a very basic level. Write module tests, system tests, and develop test specifications. Perform simple object-oriented analysis and design. Work in a small team (two or three people) on the analysis, design, implementation, and testing of a project.
13
Quiz 4
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.