A test case is way to determine whether an application, software system or feature is working as expected.
A Test case document must include the following parameters:
Version Id: before starting to test an application, tester should make sure that the application under test is of the version mentioned in release notes
Module Name: Name of the main module or the sub-module for which Test Cases are written
Test Designed By: Name of the Tester
Test Designed Date: Date when test case was designed
Test Description: here a short description of the case should be given
Ex: verify URL loading home page or not
Test case ID: It is a Unique ID required for each test case.
Test priority (Low/Medium/High): Test priority for business rules and functional test cases can be high or medium. User interface cases can be of low priority.
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
Ex: network details, browser details etc.
Testing Steps: Chalk down test steps in the order in which they are executed. All the details to perform test need to be furnished here
Test Data: Inputs required for this test case. You can provide different data sets with exact values to be used as an input
Ex: login user name and password used for test
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
Actual result: Actual test result should be filled after test execution. Describe the system behavior after test execution
Status (Pass/Fail): whenever there is discrepancy between expected result and actual result, then test case is marked as failed. Otherwise, update it as passed.
Test Executed By: Name of the Tester who executed this test. To be filled only during test execution
Test Execution Date: Date when the test was executed
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