In every company, Test engineer will write the test cases in a test case template, which is nothing but a Standard Test case template which can vary from project to project or from company to company.
Test case template can be prepared in a Test case management tool, MS Excel, MS Word.
Test case templated can be divided into 3 sections -
Header:
Test case name/ ID-
Here a Unique testcase name for individual test cases are given, if test case management tool is used test case ID will be automatically generated.
Project name-
Name of the project should be mentioned.
Release name -
Based on the name/ number of release it should be mentioned.
Requirement number -
Requirement number is nothing but a ticket number for which the test cases are written for.
Module Name-
These are the major Sub- modules of the product/ Software.
Pre Conditions-
These are set of settings or actions that need to be performed before the execution of the Test cases.
As part of pre- condition the below settings need to be checked-
1. Check whether the software is installed or not.
2. Check for Internet connection.
3. Check for Browser settings.
4. Check for "Role and Permissions".
5. Check for Username and Password.
Example- Gmail.com(Application)-
Testcase: Login as User A, compose mail to User B, Click on Sent Items and check if the mail is displayed inSent Items
menu.Pre- Condition:
Check for Internet connection.Test Data or Test Harness-
It is the data created using the same application before executing the Test cases.
Example- Gmail.com(Application)-
Testcase: Login as User A, compose mail to User B, Click on Sent Items and check if the mail is displayed inSent Items
menu.Test Data
Create User A and User B account.Severity-
This describes the impact of feature on the application. Test engineer will test execute the testcases based on the severity.
There are 3 types of severity
1. Critical
2. Major
3. Minor
Test case type-
Test case type is classified based on the type of testing that is to be done
Example-
Smoke testing, System testing, Adhoc testing, Compatibility testing....Test case execution hours-
It is the total time taken to write test cases and execute the written test cases in the application.
BODY:
Test case body will have
Serial no-
Specific serial number for each Test scenario.
Test scenario-
Summary/ action of the test that is being done.
Steps by step procedure-
Unique step number for the Steps to executed.
Action/ Description-
It consists of the navigation steps.
Input-
The data that need to be entered into the application while testing the software.
Expected Result-
Detail about how the application should behave when a test case is is executed.
Status-
"Pass/ Fail"
of the testcase based on expected result and actual result comparisonComments(Optional)-
If the testcase is failed, the reason can be mentioned in the comment section.
FOOTER:
It has the details such as
Author name-
Person one who writes the Test cases.
Reviewed by-
Person who reviews the Test cases.
Approved by-
Person one who approves the Test cases.
Approval date-
The date of Test case approval.