Sample Test Case Template with Test Case Examples [Download]

Every day I keep on getting several requests for 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 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 you to use an open-source tool to manage and execute your test cases. 

Sample Test Case Template

Test case formats may vary from one organization to another. But using a standard test case format for writing test cases is one step closer to set up a testing process for your project.

It also minimizes Ad-hoc testing that is done without proper test case documentation. But even if you use standard templates, you need to set up test cases writing, review & approve, test execution and most importantly test report preparation process, etc by using manual methods.

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


Recommended Tools

Before continuing to the Test case writing process, we recommend downloading these Test case management tools. This will ease your test plan and test case writing process mentioned in this tutorial.

#1) TestRail

=> Download TestRail Test Case Management Tool

Test Plan 728


#2) TestMonitor

TestMonitor new logo

TestMonitor – Top-level online Test Management. Revolutionary easy.

TestMonitor is an end-to-end test management tool for every organization. A simple, intuitive approach to testing. Whether you’re implementing enterprise software, need QA, building a quality app or just need a helping hand in your test project, TestMonitor has you covered.

TestMonitor

=> Visit TestMonitor Website


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 the maximum number of 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.

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 the types of the test. For Example, ‘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 a 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. For Example, verify the login page with a valid username and password.

Test Summary/Description: Describe the test objective in brief.

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

Dependencies: Mention any dependencies on the other test cases or test requirements.

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.

Pro Tip: In order to manage a test case efficiently with a lesser number of fields use this field to describe the 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: The actual test result should be filled after test execution. Describe the system behavior after test execution.

Status (Pass/Fail): If an actual result is not as per the expected result, then 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 the 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 the tests based on test types. For Example, 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 in order to explain the test steps or expected results 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. It is useful to track the automation status when test cases are automated.

With the help of the above fields, I've prepared an example test case template for your reference.

Download Test Case Template With Example (Format #1)

Test case DOC file template and
Test case Excel file template

Test case template format

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

Sample Test Cases:

Tutorial #1: 180+ Sample Test Cases for Web and Desktop Applications

One More Test Case Format (#2)

Undoubtedly, the test cases will differ depending upon the functionality of the software that it is intended for. However, given below is a template that you can always use for documenting the test cases without bothering about what your application is doing.

Ideal Test Case Template

Sample Test Cases

Based on the above template, below is an example that showcases the concept in a much understandable way.

Let's assume that you are testing the login functionality of any web application, say Facebook.

Below are the Test Cases for the same:

Test Case Example

Test Case Example

=> Download the above Test case format with example data

Test Case Example For Manual Testing

Below given is an example of a live project that demonstrates how all the above-listed tips and tricks are actually implemented.

[Note: Click on any image for an enlarged view]

Test Case Template

Case Illustration

Sample Template from Live Project

Conclusion

Personally, I prefer to use a Test Case Management tool. You can start with an open-source tool. It will be a good addition to your efforts to set up the testing process and meanwhile, it will also save a lot of time instead of manually maintaining these documents.

We have also seen test case templates and a few examples using very good, quality documentation. I hope this article would have been helpful to you.

We would be glad to know your thoughts, comments/suggestions about this article.

PREV Tutorial | NEXT Tutorial

Recommended Reading

98 thoughts on “Sample Test Case Template with Test Case Examples [Download]”

  1. 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.

    Reply
  2. @ 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.

    Reply
  3. 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.

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

    Reply
  5. 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?

    Reply
  6. 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

    Reply
  7. 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

    Reply
  8. 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.

    Reply
  9. 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

    Reply
  10. 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

    Reply
  11. 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

    Reply

Leave a Comment