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

WB Boxes

The document outlines two testing projects for a palindrome checking module, one focusing on white box testing and the other on black box testing, both created by B Nithin Kumar. It includes code snippets, test cases with inputs, actual and expected outputs, and the status of each test case. The results indicate that all test cases passed successfully, confirming the functionality of the palindrome check.

Uploaded by

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

WB Boxes

The document outlines two testing projects for a palindrome checking module, one focusing on white box testing and the other on black box testing, both created by B Nithin Kumar. It includes code snippets, test cases with inputs, actual and expected outputs, and the status of each test case. The results indicate that all test cases passed successfully, confirming the functionality of the palindrome check.

Uploaded by

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

Project Name: Whitebox Testing

Module Name: Palindrome


Created By: B Nithin Kumar
Creation Date: 3/26/2025
Reviewed by: Ms.Devika
Review date

n = int(input()) ----> S1
a=n ----> S2
s=0 ----> S3
while n != 0: ----> S4
(Loop starts)
t = n % 10 ----> S5
s = s * 10 + t ----> S6
n = n // 10 ----> S7
if (s == a): ----> S8
(Branch starts)
print("palindrome") -
---> S9
else:
print(" not
palindrome") ----> S10
Test ID Test Data (Input) Actual Output Expected Output Decision
TC01 121 "palindrome" "palindrome" Covered
TC02 123 "not palindrome" "not palindrome" Covered
TC03 0 "palindrome" "palindrome" Covered
TC04 1 "palindrome" "palindrome" Covered
TC05 1221 "palindrome" "palindrome" Covered
TC06 12321 "palindrome" "palindrome" Covered
TC07 -121 "not palindrome" "palindrome" Covered

Project Name Black Box Testing


Module Name Palindrome Check
Created by B.Nithin Kumar
Creation Date 3/26/2025
Reviewed by MS.Devika
Review Date [Date]
n = int(input()) ----> S1
a=n ----> S2
s=0 ----> S3
while n != 0: ----> S4
(Loop starts)
t = n % 10 ----> S5
s = s * 10 + t ----> S6
n = n // 10 ----> S7
if (s == a): ----> S8
(Branch starts)
print("palindrome") -
---> S9
else:
print(" not
palindrome") ----> S10

Test ID Test Data Expected Output Actual Output Status


TC01 121 palindrome palindrome PASS
TC02 1221 palindrome palindrome PASS
TC03 123 not palindrome not palindrome PASS
TC04 0 palindrome palindrome PASS
TC05 1 palindrome palindrome PASS
TC06 -121 not palindrome not palindrome PASS
TC07 12321 palindrome palindrome PASS
TC08 12345 not palindrome not palindrome PASS
TC09 a Error (invalid input) Error (invalid input) PASS
TC10 123 321 Error (invalid input) Error (invalid input) PASS
Branch Status Comment
1-2-3-4-5-6-7-8 PASS S1, S2, S3, S4, S5, S6, S7, S8 executed
1-2-3-4-5-6-7-9 PASS S1, S2, S3, S4, S5, S6, S7, S9 executed
1-2-3-4-5-6-7-8 PASS S1, S2, S3, S4, S5, S6, S7, S8 executed
1-2-3-4-5-6-7-8 PASS S1, S2, S3, S4, S5, S6, S7, S8 executed
1-2-3-4-5-6-7-8 PASS S1, S2, S3, S4, S5, S6, S7, S8 executed
1-2-3-4-5-6-7-8 PASS S1, S2, S3, S4, S5, S6, S7, S8 executed
1-2-3-4-5-6-7-9 PASS S1, S2, S3, S4, S5, S6, S7, S9 executed
Comment
TESTED
TESTED
TESTED
TESTED
TESTED
TESTED
TESTED
TESTED
TESTED
TESTED

You might also like