You are on page 1of 9

c Condition Description Expected Result Actual Result in

Iteration 1
Screen Name/No. C Code
Positive Scenario
1.01 Check whether the text The text file should The text file has
file has extension .cpp have extension .cpp extension .cpp

1.02 Check whether all All directories should All directories are
library files are included be included included

1.03 Check if main function Main function should Main function


is available be available for included
execution
1.04 Check for all prototypes All prototypes should All prototypes are
declared before main be declared before declared before
function main fuction main fuction
1.05 Check for all classes All classes should be All classes declared
declared and defined declared and defined and defined with
with unique identifier with unique identifier unique identifier

1.06 Check for all All variables,data All variables,data


variables,data members members declared in members declared
declared in class are class should not be in class are not
not initialised initialised initialised
1.07 Check for variables are All variables are All variables are
initialised using initialised using initialised using
constructors constructors constructors
1.08 Check for all variables All variables should All variables are
declared in main be declared in main declared in main
function function function
1.09 Check the code for The code should have The code has no
syntatical errors no syntatical errors syntatical errors

Negative Scenario
1.03 User enter Error message should Error message
alphanumeric value for display . displayed
variable of integer
datatype
1.04 User enter invalid Error message should
choice display that invalid
choice.

1.05 Try to Devide by Zero Error message should display


Exceptional Scenario

2.01 System crash Program terminate corrctly


Actual Result in Data Used Status
Iteration 2 Iteration 3

Not Required Not Required

Not Required Not Required Passed

Not Required Not Required Passed

Not Required Not Required Passed

Not Required Not Required

Not Required Not Required

Not Required Not Required

Not Required Not Required Passed

Not Required Not Required Passed

Not Required Not Required Passed


Remarks
c Condition Description Expected Result Actual Result in
Iteration 1
Screen Name/No. C Code
Positive Scenario
1.01 Check whether the text The text file should The text file has
file has extension .c have extension .c extension .c

1.02 Check whether all All directories should All directories are
library files are included be included included

1.03 Check if main function Main function should Main function


is available be available for included
execution
1.04 Check for all prototypes All prototypes should All prototypes are
declared before main be declared before declared before
function main fuction main fuction
1.05 Check for all variables All variables should All variables are
declared firstly in main be declared firstly in declared firstly in
function main function main function
1.06 Check the code for The code should have The code has no
syntatical errors no syntatical errors syntatical errors

Negative Scenario
1.03 User enter Error message should Error message
alphanumeric value for display . displayed
variable of integer
datatype
1.04 User enter invalid Error message should
choice display that invalid
choice.

1.05 Try to Devide by Zero Error message should display

Exceptional Scenario

2.01 System crash Program terminate corrctly


Actual Result in Data Used Status
Iteration 2 Iteration 3

Not Required Not Required

Not Required Not Required Passed

Not Required Not Required Passed

Not Required Not Required Passed

Not Required Not Required Passed

Not Required Not Required Passed

Not Required Not Required Passed


Remarks