Sunteți pe pagina 1din 4

Test Case Format with Example

© https://www.softwaretestinghelp.com
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:

S.No 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:

S.No Action Inputs Expected Actual Test Test Test


Output Output Brows Result Comments
er
1 Launch https://www.fac Facebook Facebook IE -11 Pass [Priya
application ebook.com/ home home 12/17/2016

© https://www.softwaretestinghelp.com Page 1
11:44 AM]:
Launch
successful
2 Enter Email id : Login success Login IE -11 Pass [Priya
correct test@xyz.com 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:

S.No Action Inputs Expected Actual Test Test Test


Output Output Browser Result Comments
1 Launch https://www.facebo Facebook Facebook IE -11 Pass [Priya
application ok.com/ 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@xyz.com 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@xyz.com password password 12/17/201
incorrect Password: ****** that you've that 6 11:46
Password entered is you've AM]:
incorrect. entered is

© https://www.softwaretestinghelp.com 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:

© https://www.softwaretestinghelp.com 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)

© https://www.softwaretestinghelp.com
Check Original Article here: Sample Test Case Template [Download]

© https://www.softwaretestinghelp.com Page 4

S-ar putea să vă placă și