Carleton University

Total Page:16

File Type:pdf, Size:1020Kb

Carleton University

Carleton University School of Computer Science COMP 4004 – Fall 2008 Assignment #2 Due: Tuesday November 25th 2008 at 11:55pm

ACCEPTANCE and SCENARIO BASED TESTING

In this assignment, you will develop an application system test suite for an Automatic Teller Machine by modeling its essential capabilities as Extended Use Cases. For this assignment you should use Binder’s Extended Use Case Test pattern (pages 722-731), and complete the following steps:

1. Define the major responsibilities for withdraw and deposit tasks 2. Draw the use case maps for each task (Bounded and UnBounded), include different stubs and alternatives that you need 3. Define the pre- and post- conditions in use case maps, where applicable 4. Extract a set of scenario definitions from the use case map models (UCMs) that achieve branch coverage, and define the path for each extracted scenario 5. Write a test case for each extracted scenario in Java, using JUnit for running your test cases/ suites (www.JUnit.org) 6. Build an ANT build.xml file, a Java based build tool that runs your JUnit test (http://ant.apache.org/manual/index.html) 7. Run your test cases

DELIVERABLES Write a test report consisting of the following information: - All your assumptions, diagrams and results for above 5 items - Tables and figures related to your work, like table 14.3 and figure 14.1 in Binder - Listing of test cases with relevant test drivers, make sure to add enough comments for each test case, and also your ANT build file - A brief explanation that why you chose the number of test cases you did, and if they are necessary and sufficient from a black-box test design perspective for test coverage purpose - The test result (passed or failed) after running each test case. If it failed, also include the corresponding error in the code - A printed document should also be delivered to me or to the TA, before the deadline

MARKING SCHEME [Total 100] 10% - Responsibilities and Assumptions 20% - Use case maps 20% - Scenarios 20% - Test cases 10% - JUnit test drivers 20% - ANT build file

Recommended publications