Test Case For Control and Decision Making Statements. Sr. No 1 2 3 4 5 6 7 8 9 10 11 12 13 14
This document contains a test case for control and decision making statements. It has 17 test cases to check if, else, else if, for initialization, condition checking, incrementing, while, do, do while, switch, case, and break statements. The expected and actual results are recorded to check if the test cases pass or fail.
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 ratings0% found this document useful (0 votes)
266 views
Test Case For Control and Decision Making Statements. Sr. No 1 2 3 4 5 6 7 8 9 10 11 12 13 14
This document contains a test case for control and decision making statements. It has 17 test cases to check if, else, else if, for initialization, condition checking, incrementing, while, do, do while, switch, case, and break statements. The expected and actual results are recorded to check if the test cases pass or fail.
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/ 1
Test case for Control and decision making Statements.
Sr. Testcase Testcase Objective Expected Result Actual Result Status
no ID 1 TC_1 Check if Should print the Do not satisfy Pass if block condition 2 TC_2 Check if Should print of Print the if block Pass block 3 TC_3 Check else Should print the Error occurred Pass else block 4 TC_4 Check else Should print the Print the else Pass else block block 5 TC-5 Check else if Should check if Checks the if and Pass condition print the if block 6 TC_6 Check for Should start at Do not start at Pass initialization initialize point initialize point 7 TC_7 Check for Should start at Starts at initialize Pass initialization initialize point point 8 Tc_8 Check for Should satisfy Condition is Pass condition condition satisfied 9 TC_9 Check for Should Increment by Pass Increment increment by condition condition 10 TC_10 Check while Should print the Error occurred Pass while block 11 TC_11 Check while Should print the Print the while Pass while block block 12 TC_12 Check do Should execute Error occurred Pass the block once 13 TC_13 Check do Should execute Execute the do Pass the block once block once 14 TC_14 Check do while Should check Checks the while Pass while condition condition after do after do execution execution 15 TC_15 Check switch Should get valid Gets the valid Pass input input 16 TC_16 Check case 1 Should satisfy Print the case 1 Pass condition block 17 TC_17 Check break Should end the Ends the switch Pass switch block block