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

Contact Test Case Week5

The document outlines the development of a Contact Form with specific validation requirements for fields such as Name, Email, Subject, and Message. It includes a Test Case Report with ten scenarios, detailing input data, expected outputs, and results for each case. Validation checks implemented cover required fields, email format, minimum length, and security against SQL injection.

Uploaded by

fivasax997
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)
11 views2 pages

Contact Test Case Week5

The document outlines the development of a Contact Form with specific validation requirements for fields such as Name, Email, Subject, and Message. It includes a Test Case Report with ten scenarios, detailing input data, expected outputs, and results for each case. Validation checks implemented cover required fields, email format, minimum length, and security against SQL injection.

Uploaded by

fivasax997
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

Name – Keshav Kant Mishra

Register No. - EA2432251010576


Student ID – 672390
Software Testing Week 5 Contact Test Case

Problem Statement:

Develop a Contact Form with the following fields:


 Name (Required, only alphabets, min 3 characters)
 Email (Required, valid email format)
 Subject (Required, min 5 characters)
 Message (Required, min 10 characters)
Implement form validations, including required fields and valid email format. Prepare a Test
Case Report covering various scenarios.

Test Case Report for Contact Form

Test Scenario Input Data Expected Result


Case Output
ID

TC001 Valid Name: John Doe, Email: Form submitted ✅ Pass


Submission [email protected], Subject: successfully
Inquiry, Message: "Hello, I need
help with my order."

TC002 Empty Name Name: "", Email: Error: "Name is ✅ Pass


Field [email protected], Subject: required"
Inquiry, Message: "Hello, I need
help with my order."

TC003 Invalid Name Name: "J@hn123", Email: Error: "Name ✅ Pass


(Numbers or [email protected], Subject: must contain
Special Inquiry, Message: "Hello, I need only alphabets"
Characters) help with my order."

TC004 Empty Email Name: John, Email: "", Subject: Error: "Email is ✅ Pass
Field Inquiry, Message: "Hello, I need required"
help with my order."

TC005 Invalid Email Name: John, Email: Error: "Invalid ✅ Pass


Format "johnexample.com", Subject: email format"
Inquiry, Message: "Hello, I need
help with my order."
TC006 Empty Subject Name: John, Email: Error: "Subject ✅ Pass
Field [email protected], Subject: "", is required"
Message: "Hello, I need help with
my order."

TC007 Short Subject Name: John, Email: Error: "Subject ✅ Pass


(Less than 5 [email protected], Subject: "Hi", must be at least
characters) Message: "Hello, I need help with 5 characters"
my order."

TC008 Empty Message Name: John, Email: Error: "Message ✅ Pass


Field [email protected], Subject: is required"
Inquiry, Message: ""

TC009 Short Message Name: John, Email: Error: "Message ✅ Pass


(Less than 10 [email protected], Subject: must be at least
characters) Inquiry, Message: "Hi there" 10 characters"

TC010 SQL Injection Name: "John", Email: Error: "Invalid ✅ Pass


Attempt "[email protected]", Subject: input"
"Inquiry", Message: "' OR '1'='1"

Validation Checks Implemented:


✔ Required Field Validation (Name, Email, Subject, Message)
✔ Email Format Check
✔ Minimum Length Validation (Subject & Message)
✔ Security Measures (SQL Injection & Special Characters Handling)

You might also like