You are on page 1of 3

TD INF3075

Question one: With the aid of a diagram explain two categories of software
testing.

Question two:
Assuming you are to develop a software for Mobile Money Application that
requires automation.

(a) List the steps to perform automated testing and hence state the goal of
verifying and validation the above software
(b) List 5 automated software testing tools

Question Three
Assuming you are to develop a software for the Management of Student Results
in University of Yaounde I using the grading scheme accepted by the University.
(a) Depict the Control Flow Graph (CFG) and hence calculate the cyclomatic
complexity of the of the CFG (10mks)

(b) With respect to the above project, explain in details: Disruptive Testing and
Exhaustive Testing (3mks)
(c) Identify five paths in (a) and hence Produce the Coverage Table, stating explicitly
valid and invalid inputs. (7mks)
(d) Represent the Test Case document for the above system (5mks)

Question Four
Below is a faulty program (Program A) that includes test inputs that result in
failure. Answer the following questions about the program.
(a) Explain what is wrong with the given code. Describe the fault precisely by proposing
a modification to the code and hence the CFG.

(b) If possible, give a test case that does not execute the fault. If not, briefly explain
why not.

(c) If possible, give a test case that executes the fault, but does not result in an error
state. If not, briefly explain why not.

(d) If possible give a test case that results in an error state, but not a failure.
Hint: Don’t forget about the program counter. If not, briefly explain why not.

(e) For the given test case, describe the first error state. Be sure to describe the complete
state.

Program A Program B

Question One (30 Mks)


(a) Above is a program (Program B) for the identification of various angles in a
triangle. Write the Java program in NetBeans and display its corresponding CFG and
hence depict the related Coverage Table for the Java Program, stating explicitly valid
and invalid inputs.
(b) Complete the table below:

Complete the table below:


Path Data Flow Types of Level of Verification Static Testing
Coverage Testing Performance structural and Validation Techniques
Techniques Techniques Testing/Goals Testing/Goal Techniques
1. 1. 1. 1. 1. 1.
2. 2. Goal : Goal : 2. 2.
3. 3. 2. 2. 3. 3.
4. 4. Goal : Goal : 4. 4.
3. 5.
Goal :
4.
Goal :

You might also like