Sample Test Case Template with Examples [Download]

I keep getting several requests to share a good Test Case Template. And I’m surprised that many testers are still documenting test cases with Word docs or Excel files. Most of them prefer excel spreadsheets because they can easily group test cases by test types and most importantly they can easily get test metrics with the Excel formulas. But I’m sure that as the volume of your tests goes on increasing, you will find it extremely difficult to manage.

If you are not using any test case management tool, then I would strongly recommend using an open source tool to manage and execute your test cases. 

Sample Test Case Template

Test case formats vary from one organization to another. But using a standard test case format for writing test cases is one step closer to setting up testing process on your project. It also minimizes ad-hoc testing done without proper test case documentation. But even if you use standard templates you need to set up test cases writing, review and approval, test execution and most importantly test report preparation process, all by using manual methods.

Also if you have a process to review test cases by the business team, then you must format these test cases in a template agreed by both the parties.

Here is how to make this manual test case management process a bit easier with the help of simple testing templates.

Note: I’ve listed maximum fields related to a test case. But it is advised to use only those fields which are used by your team. Also if you think any field used by your team is missing from this list, then feel free to add it to your customized template.

Below are the Standard Fields of a Sample Test Case Template

There are certain standard fields to be considered while preparing a Test case template.

Test case example

Several standard fields of a sample Test Case template are listed below.

Test case ID: Unique ID is required for each test case. Follow some convention to indicate types of the test. E.g. ‘TC_UI_1’ indicating ‘user interface test case #1’.

Test priority (Low/Medium/High): This is very useful while test execution. Test priority for business rules and functional test cases can be medium or higher whereas minor user interface cases can be of low priority. Test priority should always be set by the reviewer.

Module Name: Mention the name of the main module or the sub-module.

Test Designed By Name of the Tester

Test Designed Date: Date when it was written

Test Executed By Name of the Tester who executed this test. To be filled only after test execution.

Test Execution Date: Date when the test was executed.

Test Title/Name: Test case title. E.g. verify login page with a valid username and password.

Test Summary/Description: Describe test objective in brief.

Pre-condition: Any prerequisite that must be fulfilled before execution of this test case. List all the pre-conditions in order to execute this test case successfully.


Dependencies: Mention any dependencies on other test cases or test requirement.

Test Steps: List all the test execution steps in detail. Write test steps in the order in which they should be executed. Make sure to provide as many details as you can. Tip – In order to manage a test case efficiently with a lesser number of fields use this field to describe test conditions, test data and user roles for running the test.

Test Data: Use of test data as an input for this test case. You can provide different data sets with exact values to be used as an input.

Expected Result:  What should be the system output after test execution? Describe the expected result in detail including message/error that should be displayed on the screen.

Post-condition: What should be the state of the system after executing this test case?

Actual result: Actual test result should be filled after test execution. Describe system behaviour after test execution.

Status (Pass/Fail): If actual result is not as per the expected result mark this test as failed. Otherwise, update it as passed.

Notes/Comments/Questions: If there are some special conditions to support the above fields, which can’t be described above or if there are any questions related to expected or actual results then mention them here.

Add following fields if necessary:

Defect ID/Link: If the test status is failed, then include the link to the defect log or mention the defect number.

Test Type/Keywords: This field can be used to classify tests based on test types. E.g. functional, usability, business rules etc.

Requirements: Requirements for which this test case is being written for. Preferably the exact section number of the requirement doc.

Attachments/References: This field is useful for complex test scenarios. To explain test steps or expected result using a Visio diagram as a reference. Provide the link or location to the actual path of the diagram or document.

Automation? (Yes/No): Whether this test case is automated or not. Useful to track automation status when test cases are automated.

With the help of above fields I’ve prepared a test case example template for your reference:

Download Test Case Template with Example

DOC file and
XLS file

xls template

Also, refer few more articles on writing effective test cases here and here. Use these test writing guidelines and the above template to write and manage test cases effectively on your project.

Conclusion

Personally, I prefer to use a test case management tool. You can start with any open source tool. It will be a good addition to your efforts to set up testing process and meanwhile, it will also save a lot of time instead of manually maintaining these documents.

Are you an expert in preparing Test cases? Then kindly share few valuable tips with us.

Let us know if you have any queries, comments/suggestion about this post.




Recommended reading

78 comments ↓

#1 Ketan Shingate

thanks for sharing. we will add some of these fields in our template

#2 Guest

Its a very detailed document mentioning each and every thing. I use to keep my test cases as simple as i can but really i love this format as well.Definitely i will include some of them to my test case document.

#3 Muzaffar A.

Can you please share some good open source test management tools as well?

#4 Kanif

Nice article Vijay..

Here you can get a most popular free and paid Testing Tools list used in the testing of the software application:
http://www.softwaretestingclass.com/software-testing-tools-list/

#5 varma

you can use test link – http://www.teamst.org/

#6 Vijay

@ Muzaffar – Here is a list of some good open source test management tools. Remember when it’s open source there are very few choices and many tools have limitations for advance use. You can’t find every solution in one tool.

Use these tools and find which is best for your needs. I find TestLink good for small projects. Features – manage test cases, keywords, requirements, test plan, test case assignments, builds and many more good features.

TestLink (http://www.teamst.org/) – It’s a web based tool to manage test cases and requirements.

Bugzilla Testopia (http://www.mozilla.org/projects/testopia/) – It’s and extension to Bugzilla defect tracking tool.

TestCube (http://www.jatakasource.org/testcube/) – web based test case management

RTH-turbo (http://requirementsandtestinghub.wordpress.com/faq/) – One more web based test management tool

Testitool (http://www.majordojo.com//testitool/) – manage test plan and test cases

This should be enough for you to get started. I’ll cover more recommendations with details for both open source and commercial test case management tools in a separate post.

#7 mahesh

thanks for sharing. we will add some of these fields in our template

#8 shruthi

Very usefull article.

Thanks a lot for sharing these.

#9 shruthi

Very useful article.

Thanks a lot for sharing these.

#10 anu

Thanks for this article. It is very useful for me. Since a long time i am searching for this.

#11 anu

Thanks for this article. It is very useful for me…..

#12 Fuad Mak

Thank you for sharing this information. It will be useful to our testers at RentTesters and SQA Solution.

#13 radha krishna

good information

#14 aruna

Very very useful site….As a newbie in the field of software testing…this site helps me a lot…..great job….God bless u

#15 Testingwalk

I want to add one more field before Test Steps as “Description”. We can describe here that what we are testing Like: Testing the functionality of …… Page.

#16 m

mokka

#17 raw

thanks allot for this ,this is realy awesome for us

#18 Manpreet

Very Useful site..Thanks for all your help…:) Keep it up…!!

#19 kumar

very useful n valuable

#20 CrazyTexan4

very good test case template. Anyone wanting to take Software Testing to another level can buy exam papers @ ISEB-sofwaretesting.weebly.com

#21 Partap

Can Anybody send me User Acceptance Test Cases for any VOIP application ?

#22 Vimala

I am very much interested in software testing jobs, I have completed a course, I understand well but I am not sure if I can check for jobs because I am 38 now, is there any age bar for that?

#23 aparna

Hi i connected to your site, its helpful for me thanks…

#24 Sugam

Thanks for sharing the info friend. It’s really useful.

#25 Rajaram

Hi.. this is very useful to me thanks..

#26 lokesh sharma

which testing perform first either retest and regression test after bug fixing.

send answer on lokesh22sharma@gmail.com

#27 arun

MY query is …I’m asked “write testcase for bottle” .Should i use the table format like test case template or test scenario ……or just 1.Description and Expected result alone ?please reply ASAP

#28 Sindhuja M

Hi,This description is very much useful for testers like us.Thanks a lot.

#29 bhumi

very useful site …. good

#30 Aditi

good1..

#31 glad

Hi, this test case is useful and help us a lot. Thanks.

#32 Shrabani

Hi,
This is really very much useful. But I am still not clear regarding the difference between “precondition” and “dependencies”. Can you explain it in more details with example?
Thanks in advance

#33 karthika

This is very useful to me and every one will like this thank u

#34 Cynthia Mitchell

I like the template you provided. Can you complete the template with a real live example so I know how interpret and enter the information in the template. I am new to this and need lots of help. If you could use an example of logging into a system to test querying an individual’s contact information. Thanks.

#35 Kals

Good work.. will be helpful..!

#36 mamta

Hello Sir,
Can you please tell me, how i will write the testcases of clinic management web application

#37 mamta

Hello Sir, please tell how to write test cases of prescription templete.

#38 Rajesh Modi

Hi,
I am a graduate. I am searching for job in software testing. can you guide me to get job.

Thanks in advance,
Rajesh. Modi
9742773880

#39 sravani

This is very useful to me and every one will like this thank u

#40 Saint

very useful

#41 karunakar

if they asked u to write test case template then u need to write in test case template itself only.

#42 Sathish

Nice Article

#43 Radhika

Very nice Article….Thank You

#44 sarath

I need software testing sample project with templates

#45 SUDHEER

Hello sir,
can u please tell me the test cases for ambulance dispatch system

#46 nivetha

i want testing answer for online course reservation system

#47 saravanan

hi,
can u plz send me any test case sample template..i am fresher and i am joined in content QA job.so plz help me frds

#48 javeed ashraf

can u plzz give the comments for writing step by step manner test cases i am going for testing interview i am not able to write the test cases in crct step by step process. i am not able to deliver the test cases in the interviews

#49 Rajath

This is very useful article and nice one

#50 Rajan

word doc check spelling, line space, format cheking tools i want

#51 John

How we can calculate the Radio/ TV Channel programs total customers ?
How we will get the total users of a particular channel ?
How we will get the total users of a particular channel programs ?
How we can trace the application Users ?
can we use the selenium with FF ? please give me a answer ? thanking you

#52 Vijayakumar

very useful article and nice one.

#53 Tej

Thanks, it’s good to read specific knowledge in depth by you.
Thanks again!

#54 suraj

can anyone help me to configure bugzilla on windows 8 64-bit OS.

#55 robbidarwis

nice

#56 ch.sathish

Hello sir..

I have one doubt can i write test cases for any application in the form of like testcase id, testcase discription and actual and expectd result these 4 cases is enough for any test cases..

#57 ch.sathish

Hello sir……….
MY query is …I’m asked “write testcases for train ticket reservation system” .Should i use the table format like test case template or test scenario ……or just 1.Description and Expected result alone ?please reply as soon as possible…

#58 Max Vignesh

Hello Sir,

this is very usefel …really a great man .. thank and regards

#59 Blank

Hi. Im following the STD(software test description) template given by IEEE. Im confused on what to write in the section where you have to specify a unique identifier. Please help me, thanks.

#60 Daljinder Kaur

Can i have test cases for a real estate website?

like for
about us
sell your house
buyer home search
and so on…

#61 Prasad

Con you please help me for installing bugzila tracking tool on my local windows copy.

#62 anant

Thank you for help..

#63 Ranjith

please give the full document report which you have tested in the Excel sheet document.and send to mailid please

#64 Kiptoo

I need system test template on journal Entries

#65 Durga Prasad Palepu

Very informative and suites my requirement, I will use many of the fields from this template.

#66 viresh

Hi guys
I am getting one issue that is like “” Recurring 3D Secure order is not allowed “‘ while adding cards i am getting this issue so please anyone suggest me
Thanks
viresh
8553755806

#67 krish

PLEASE GIVE ME ALL the scenarios of Client and Manager LOGIN page………………………………………………………..

#68 jaychand

its v.usefull but i am trainee…so plz help me out that i had to be best in testing…

#69 Gurpreet

send me the test case based on functional testing for product detail page of online shopping like amazon,flipkart etc

#70 Pablo

Hi, you said that Excel could be a bad solution for the long term. Which alternative you consider better?

Thank you very much.

#71 Asd

good very helpful..!!!!!!!!!!!

#72 journalspider

Very useful template for all startup testers

#73 Honey

It is a helpful document to understand test cases and how to write it.

#74 sankar

Thanks for detailed information.

#75 suraksha

my confusions are cleard.thanks for this information.

#76 Farees Haqimi

Iam diva living la vida, come to me….. sayang sayang sayang . muah :* mioww

#77 wan

stay with me…sayang sayang sayang…meowww say with me sayang sayang sayang

#78 Ram

very nice artical

Leave a Comment