You are on page 1of 2

TEST CASES FOR EVEN-ODD PROGRAM

Test Case ID Test case Objective Input Data Expected Result Actual Result Status

Check whether written


The main() method It should give It displays error's
TC_01 program contains any Pass
not declared multiple errors message
error or not

It allows the user to


Check whether we are It must allow to edit
Compiler to edit the edit or update the
TC_02 able to edit written or update the Pass
program program
program in comiler program
successfully

Check the if-else


Statement must be Statement is
statement is correct for If-else statement
TC_03 correct to check correct and it can Pass
checking even-odd written in program
even-odd number check the numbers
number

Check whether written


Compiler to run the It must run the Compiler ran the
TC_04 program is running or Pass
program written program program
not

Compiler in which
Check whether program
program already It should accept Input value
TC_05 asking to enter value or Pass
executed || Input = input from user accepted from user
not
Num : 20
Compiler in which Message displayed
Check whether written It must display
program already successfully as
TC_06 program provides message as "Given Pass
executed || Input = "Given no. is
correct output or not no. is EVEN"
Num : 20 EVEN"

You might also like