Test Case Format with Example
© [Link]
Check Original Article here: Sample Test Case Template [Download]
An ideal test case template
Below is a template which you can always use for documenting the test cases without bothering with
what your application is doing.
Test Scenario ID Test Case ID
Test Case Test Priority
Description
Pre-Requisite Post-Requisite
Test Execution Steps:
[Link] Action Inputs Expected Actual Test Test Test
Output Output Browser Result Comments
Example Scenario
Based on the above template, below is an example that showcases the concepts in a more
understandable way.
Suppose you are testing the login functionality of any web application, say Facebook. Below are the test
cases for the same:
Test Scenario ID Login-1 Test Case ID Login-1A
Test Case Login – Positive test case Test Priority High
Description
Pre-Requisite A valid user account Post-Requisite NA
Test Execution Steps:
[Link] Action Inputs Expected Actual Test Test Test
Output Output Brows Result Comments
er
1 Launch [Link] Facebook Facebook IE -11 Pass [Priya
application [Link]/ home home 12/17/2016
© [Link] Page 1
11:44 AM]:
Launch
successful
2 Enter Email id : Login success Login IE -11 Pass [Priya
correct test@[Link] success 12/17/2016
Email & Password: 11:45 AM]:
Password ****** Login
and hit successful
login
button
Test Scenario ID Login-1 Test Case ID Login-1B
Test Case Login – Negative test case Test Priority High
Description
Pre-Requisite NA Post-Requisite NA
Test Execution Steps:
[Link] Action Inputs Expected Actual Test Test Test
Output Output Browser Result Comments
1 Launch [Link] Facebook Facebook IE -11 Pass [Priya
application [Link]/ home home 12/17/201
6 11:44
AM]:
Launch
successful
2 Enter Email id : The email The email IE -11 Pass [Priya
invalid invalid@[Link] address or address or 12/17/201
Email & Password: ****** phone phone 6 11:45
any number number AM]:
that you've that
Password Invalid
entered you've
and hit doesn't entered
login
login match any doesn't attempt
button account. match any stopped
Sign up for account.
an account. Sign up
for an
account.
3 Enter valid Email id : The The IE -11 Pass [Priya
Email & valid@[Link] password password 12/17/201
incorrect Password: ****** that you've that 6 11:46
Password entered is you've AM]:
incorrect. entered is
© [Link] Page 2
and hit Forgotten incorrect. Invalid
login password? Forgotten login
button password attempt
? stopped
Samples from a Live Project
Below is an example from a live project that demonstrates how all the above listed tips and tricks are
actually implemented:
© [Link] Page 3
Suggested Articles
Below are recommended readings for you:
How to write effective Test cases, procedures and definitions
180+ Sample Test Cases for Testing Web and Desktop Applications
Writing Test Cases from SRS Document (Download Live Project Sample Test Cases)
© [Link]
Check Original Article here: Sample Test Case Template [Download]
© [Link] Page 4