Professional Documents
Culture Documents
19-CS-30 Lariab Fatima SQA Assignment 03
19-CS-30 Lariab Fatima SQA Assignment 03
Assurance
[CS 303]
Answer:
Project overview:
Introduction:
The project titled as “Online Crime file Management “is a web-based application. This software provides
facility for reporting online crimes, complaints, missing persons, show most wanted person details
mailing as well as chatting. Any Number of clients can connect to the server. Each user first makes their
login to sever to show their availability. The server can be any Web Server. SMTP Server must be
maintained for temporary storage of emails and chat jar files for enable the chatting facilities.
Here we will be taking following five types of white box testing by designing and executing the test
cases:
A. Unit Testing
B. Condition Testing
C. Branch Testing
D. Domain Testing
1. Unit Testing:
Test Case for the Unit Testing:
2. Condition Testing:
Test case for Condition testing is given below in which the condition in the Predicate is checked and
based on which outputs are generated.
Test Case Predicate Inputs Expected Actual Status(Pass/Fail)
Id Output Output
TC-01 If(age>=18){ Age=18 Child Crime Child Crime Pass
Case case
Printf(“Child Crime
case ”);}
TC-02 If(age>=18){ Age=15 Child Crime Age Greater Fail
Case than 18 NOT
Printf(“Child Crime a child Crime
Case”);} case
TC-03 If(age>=18){ Age=20 Child Crime Child Crime Pass
Case Case
Printf(“Child Crime
Case”);}
3. Branch Testing:
Test case for the branch coverage is:
4. Domain Testing:
Following is the test case for domain testing that will ensure
int main()
int n, index;
index = 2;
if (n % index == 0)
break;
index++;
if (index == n)
Independent Path
Test case ID Input Number Output covered
TC-01 1 No Output A-B-F-H
TC-02 2 It is a prime no A-B-F-G-H
TC-03 3 Its is a prime no A-B-C-E-B-F-G-H
TC-04 4 It is not a prime no A-B-C-D-F-H