0% found this document useful (0 votes)
7 views2 pages

STE Practical7

Uploaded by

dnyanda0407
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

STE Practical7

Uploaded by

dnyanda0407
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

TEST CASES FOR CONTROL AND DECISION MAKING STATEMENT

Test Input Condition Expected Output Actual Output Status


Case ID
TC_01 Age = 17 Age < 18 Not Eligible Not Eligible Pass

TC_02 Age = 18 Age >= 18 Eligible Eligible Pass

TC_03 Age = 25 Age >= 18 Eligible Eligible Pass

TC_04 Age = 0 Age < 18 Not Eligible Eligible Fail

Control Statement (if-else)


Scenario: Determine if a person is eligible to vote (age >= 18)

Decision-Making (switch-case)
Scenario: Get Day of the Week Based on Number Input (1 = Monday, 7 = Sunday)

Test Input Condition Expected Output Actual Output Status


Case ID
TC_01 Age = 17 Age < 18 Not Eligible Not Eligible Pass

TC_02 Age = 18 Age >= 18 Eligible Eligible Pass

TC_03 Age = 25 Age >= 18 Eligible Eligible Pass

TC_04 Age = 0 Age < 18 Not Eligible Eligible Fail

Test Case ID Input Condition Expected Output Actual Output Status

TC_01 1 Monday Monday Sunday Fail

TC_02 4 Thursday Thursday Thursday Pass

TC_03 7 Sunday Sunday Monday Fail

TC_04 9 Default Invalid Day Invalid Day Pass

Test Input Condition Expected Output Actual Output Status


Case ID
TC_01 Age = 17 Age < 18 Not Eligible Not Eligible Pass

TC_02 Age = 18 Age >= 18 Eligible Eligible Pass


TEST CASES FOR CONTROL AND DECISION MAKING STATEMENT

TC_03 Age = 25 Age >= 18 Eligible Eligible Pass

TC_04 Age = 0 Age < 18 Not Eligible Eligible Fail

You might also like