Professional Documents
Culture Documents
College of Computer and Information Systems
College of Computer and Information Systems
Table of Contents
Exercise 1: Creating a template to document test cases............................................1
Exercise 2: Identifying Test cases using Boundary value analysis and Equivalence
partitioning..................................................................................................1
Exercise 3: Identifying test cases using logic coverage..............................................2
Exercise 4: Create a Defect Tracking Excel sheet....................................................3
Exerciset 5: Testing a program using the test cases and logging Test Results and Defects....4
Problem Description: Create an Excel sheet with the columns shown below.
Step 1: Identify the test cases based on boundary value analysis and document them in the
Excel sheet created earlier.
Step 2: Identify the test cases based on Equivalence partitioning and document them in the
Excel sheet created earlier.
Objective: To identify and document test cases using Logic coverage technique for the Bank
Teller User Interface of Global Commerce Bank given below.
Problem Statement: Consider the User Interface given below.
When the Teller selects the option “Balance Enquiry”, the Amount field should get disabled.
In other cases (Deposit and Withdraw), the amount field is enabled. Should accept amounts
less than 10,000 USD only. Larger amounts results in a message “Unable to process. Amount
Limit crossed USD 10,000. Please contact the bank manager”
Problem Statement: Create a defect tracking excel sheet as shown in the diagram below.
Summary of this exercise:
In this exercise we have learnt:
Creating a Defect Tracking Excel sheet
Exerciset 5: Testing a program using the test cases and logging Test
Results and Defects
Objective: To test code using test cases documented in earlier assignments and to log defects
into the Defect Tracking Excel sheet created earlier.
Step 3: Compile the program. The program should compile with Zero errors and warnings.
Step 4: Open the Unit Test Plan Excel sheet containing the test cases identified using
Boundary value analysis and Equivalence partitioning. Add an additional column to the Excel
Sheet “Results”.
Step 5: Execute test cases one by one and compare if the expected result is the same as what
is documented in the Test Plan.
If the expected result is the same, mark the test case as “PASSED” in the “Results1” column.
If the expected result in the Test Plan is different from the result returned by the program:
Mark the test case as “FAILED” in the “Results1” column
Add an entry into the Defect Tracking Excel sheet
The description of the defect in the Defect Tracking Excel sheet should contain full
details of the preconditions if any, inputs, output, the expected output and any other
information that will help a developer to debug and fix the defect.
Step 6: Execute all the test cases. Mark the test result for all the tests.