Download presentation
Presentation is loading. Please wait.
Published byBrice Powell Modified over 8 years ago
1
Developing Computer Games Testing & Documentation
2
KC 2008DCG 0802 What you will learn By the end of the lesson you should have the skills to: Task 6D –Compile a data dictionary for the objects in your program –Create flow charts for major functional elements of the game including ifs/case/loop –Document your code with full annotations –Record the variable & constants used in your program –Task 6B –Create a test strategy –Create a test plan for your program
3
KC 2008DCG 0803 Activity 1 – Identifying what a object data dictionary is! 5 mins Open DCG 083 Data Dictionary Objects Example and tell me what you think it is used for! Designers use it to instruct developer as to what properties must be set per object
4
KC 2008DCG 0804 Activity 2 – Try creating an Object Data Dictionary – 5 mins Open DCG 081 DDO template and put some entries in for your game objects.
5
KC 2008DCG 0805 System Flowchart Symbols Terminator – Start or End Flow indicator – to show the movement of a packet of data Process – to show a data process such as ‘create invoice’ Input or Output Decision- (if)
6
KC 2008DCG 0806 Activity 3 - Task 6D flowcharts – 20 mins Get into groups of 4 (someone you don’t normally work with) Member 1 – Open DCG 090 P2 and create a flowchart for Process MoveCars Member 2 – Open DCG 090 p4 and create a flow chart for Process WhoWins Member 3 – Open DCG 090 p4 and create flowchart for Process OverallWinner Member 4 – Open DCG 100 p3 and do a flowchart for process WinningStakes/Bankrupt
7
KC 2008DCG 0807 Task 6 d Code Annotation It is essential to annotate your code as you build your program Annotation is used so that anyone having to maintain or repair your code in the future known the rational behind your code design Use the ‘ symbol at the start of each piece of annotation Use the annotation on the handouts as a guide to the type of information you need to include
8
KC 2008DCG 0808 Task 6 d Variables & Constants Each time you create a new variable or constant you need to add it to the following table found in your assignments task 6d. Variable / Constant NameData Type What Variable / Constant is Used For Reason for Choice of Data Type
9
KC 2008DCG 0809 Why do we test? Identifies flaws in the programming code –Easier to de-bug little & often –Errors in the early build stages can cause greater problems later that are harder to detect Identifies flaws in the design –Doesn’t do what you think the code should make it do! –Might need additional objects or processes added to ensure correct working
10
KC 2008DCG 08010 When do we test? CONSTANTLY!!! From the outset – as soon as you start to build –Leaving testing till the end makes de-bugging very difficult –Testing each module of the build ensures you are OK to progress to the next stage
11
KC 2008DCG 08011 How do we test? Planning –Test plans to identify what needs to be tested at each stage Testing –Modular testing – identifies problems at each stage –Completed testing – ensures the completed project works when put together Error correcting –Mainly completed as you go –Remedial action & retest needs to be recorded on the test plan
12
KC 2008DCG 08012 How to Write a Test Strategy for Task 6 b –I am going to use test data which is valid and invalid –I will use test data to test all formulae –I will work out what the answers should be and test against this. –I will try to test the whole of the system including design testing, input testing, process testing and output testing. –I will work through the tests in the following order:
13
KC 2008DCG 08013 Task 6 b Test Strategy I will include: –Design Testing – I will get the user to check they are happy with the designs –Unit/Integration testing - –I will Test each object –Integration Testing – I will test those functions which feed into other parts of a sequence System testing I will test items linked objects or forms
14
KC 2008DCG 08014 Activity 4 - Test Plan - 20 mins Identify tests for each stage of the build (split by module if multi form) Say: –what you need to do to perform the test –Data to be used –what you expect to happen –what actually happens using DCG 082 do test plan Test NoDescription Data Entered / Action Taken Expected ResultActual Result
15
KC 2008DCG 08015 Failed tests State in the failed test (actual result) what happened & what you plan to do to correct the error Add a new test to the test plan to re-test after remedial action
16
KC 2008DCG 08016 What you have learned You should now be able to: –Compile a data dictionary for the objects in your program –Create flowcharts for all major functional elements case/ifs/loops –Record the variable & constants used in your program –Annotate your programming code. –Create a test strategy and plan for your program –Create testing screenshots
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.