Test Cases need to be simple and transparent: Create test cases that are as simple as possible. They must be clear and concise as the author of the test case may not execute them. Use assertive language like go to the home page, enter data, click on this and so on. This makes the understanding the test steps easy and tests execution faster. Create Test Case with End User in Mind The ultimate goal of any software project is to create test cases that meet customer requirements and is easy to use and operate.

Author:Najas Brazil
Language:English (Spanish)
Published (Last):4 December 2006
PDF File Size:16.90 Mb
ePub File Size:14.87 Mb
Price:Free* [*Free Regsitration Required]

Each test case would, in turn, have steps to address how we can check a particular test condition is satisfied or not. Practically anything can be used to create test cases.

So, as long as there is a field for each of the types of information to be included in a test, the format of the template does not matter.

However, my personal favorite happens to be the excel sheet, because it is easy to expand, collapse, sort, etc. But again, choose any format that works best for you. Fields In Test Cases Let us take a moment, to observe the fields that are part of a test case. Test case Id and Test case description are the generic ones. Input: Data entry steps. For these steps, it is important to note what kind of input info is required — Test data. Click of a button or toggle or the link access. Make sure there is at least one validation point to a test case- otherwise it is all going to be data entry with nothing to look for.

Also to ensure that we have enough modularity, try not to combine too many validation points into one test case. Output: Expected result. Postcondition: This is additional information that is provided for the benefit of the tester, just to make the test case more insightful and informative.

This includes an explanation of what happens or what can be expected of the AUT once all the test case steps are done. Based on the process mentioned above we have created some sample test cases for the OrangeHRM account module. These should give you an exact test case format and idea on how to approach writing test cases. Note: There are few images referred to sample test cases XLS document.

If you are viewing this on the older MS Office version, you may face compatibility issues. We have listed those images below as per their names in the XLS files:.


Oh no! Some styles failed to load. 😵



How to Write Test Cases: Sample Template with Examples


Related Articles