You are on page 1of 2

Test Case Documentation

Email Spam Classifier


Introduction
This document provides an overview of functional test cases for the Email Spam Classifier project .
1.1

Purpose
This document enumerates test cases for the flows described in the Use Case Scenario.

1.2

Scope
The test cases described in this document cover all techniques by which a user can check whether a mail is a spam or not.

1.3

Definitions, Acronyms and Abbreviations

S No.
1.

Term
E-mail

2.

Accuracy

It is simply the ratio of correctly predicted observations.

3.

Precision

Precision looks at the ratio of correct positive observations. The

Recall

formula is True Positives / (TruePositives + False Positives).


Recall is also known as sensitivity or true positive rate. Its the ratio

4.

Definition
1.
Electronic Mail

of correctly predicted positive events. Recall is calculated as True

5.

F1 Score

1.4

References

1.5

Positives / (True Positives + False Negatives).


The F1 Score is the weighted average of Precision and Recall.

Use Case Specification

Overview
This subsection should describe what the rest of the Functional Test Cases document contains and explain how the
document is organized.

Test Cases
In each of these test cases, the results are verified by visual inspection.

1.6
Test Case Group 1: User Interface

TC ID
UITC_Ck
Ot1
UITC_Ck
Ot2
UITC_Ck
Ot3

1.7

Condition
Being Tested
Working of text
box
Classify Button

Expected Result

Actual Result

Lets user enter all the contents of an


Email
Should open a Dialog Box with the
results displayed.

Text box works fine.

Info Button

Should open a Dialog Box with the


various scores displayed.

Dialog box appears


each time the button is
clicked.
A Dialog box appears
each time the button is
clicked.

Test Case Group 2: Checkout Functionality

Expected Result
The program should correctly predict the nature of email.

Actual Result
The program was tested with
multiple sample and real email
content of both variety. The
prediction was true in most of the
times .The cases where
prediction went wrong were
mostly false positive ie. Non
spam emails were classified
as spam.

You might also like