Testcase Template
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.
Subscribe to my newsletter
Read articles from Akshatha A J directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Akshatha A J
Akshatha A J
I am Akshatha Janakaraju from Bengaluru. With a passion for sharing knowledge, I am bring valuable insights to the world of blogging. I'm a Junior Quality specialist by day, with keen interest in writing to craft engaging blogs in my spare time. Drawing from my professional experience in quality assurance, I am providing readers with informative content they can trust. Whether it is discussing the latest industry trends or exploring broader topics, my articles showcase both expertise and enthusiasm. Though just starting out on my blogging journey, I am sure of building an audience of eager readers looking to learn from my unique perspective.