Open In App

Test plan – Software Testing

In software testing, documentation is very important. Testing should be documented to provide efficient resource control monitoring. For successful testing, a test plan plays a very important role. Here, we will discuss the following points:

  1. What is Test Plan.
  2. Why are Test Plan Important.
  3. Objectives of the Test Plan
  4. Components and Attributes of Test Plan.
  5. How to create a Test Plan.
  6. Types of Test Plans.

What is Test Plan:

A test plan is a document that consists of all future testing-related activities. It is prepared at the project level and in general, it defines work products to be tested, how they will be tested, and test type distribution among the testers. Before starting testing there will be a test manager who will be preparing a test plan. In any company whenever a new project is taken up before the tester is involved in the testing the test manager of the team would prepare a test Plan.



Factors Roles
Who writes Test Plans? Test lead, Test Manager, Test Engineer
Who reviews the Test Plan? Test Lead, Test Manager, Test Engineer, Customer, Development Team
Who approves the Test Plan? Customer, Test Manager
Who writes Test Cases? Test Lead, Test Engineer
Who reviews Test Cases? Test Engineer, Test Lead, Customer, Development Team
Who approves Test Cases? Test Manager, Test Lead, Customer

Why are Test Plans Important:

The following are some of the key benefits of making a test plan:

Objectives of the Test Plan:

  1. Overview of testing activities: The test plan provides an overview of the testing activities and where to start and stop the work.
  2. Provides timeline: The test plan helps to create the timeline for the testing activities based on the number of hours and the workers needed.
  3. Helps to estimate resources: The test plan helps to create an estimate of the number of resources needed to finish the work.
  4. Serves as a blueprint: The test plan serves as a blueprint for all the testing activities, it has every detail from beginning to end.
  5. Helps to identify solutions: A test plan helps the team members They consider the project’s challenges and identify the solutions.
  6. Serves as a rulebook: The test plan serves as a rulebook for following rules when the project is completed phase by phase.

Types of Test Plans:

The following are the three types of test plans:



Components and Attributes of Test Plan:

There is no hard and fast rule for preparing a test plan but it has some standard 15 attributes that companies follow:

Components and Attributes of Test Plan

1. Objective: It describes the aim of the test plan, whatever the good process and procedure they are going to follow to give quality software to customers. The overall objective of the test is to find as many defects as possible and to make software bug-free. The test objective must be broken into components and sub-components. In every component following activities should be performed.

2. Scope: It consists of information that needs to be tested concerning an application. The scope can be divided into two parts:

Example: In an application A, B, C, and D features have to be developed, but the B feature has already been designed by other companies. So the development team will purchase B from that company and perform only integrated testing with A, B, and C.

3. Testing Methodology: The methods that are going to be used for testing depend on application to application. The testing methodology is decided based on the feature and application requirements.

Since the testing terms are not standard, one should define what kind of testing will be used in the testing methodology. So that everyone can understand it.

4. Approach: The approach of testing different software is different. It deals with the flow of applications for future reference. It has two aspects:

5. Assumption: In this phase, certain assumptions will be made.

Example:

6. Risk: All the risks that can happen if the assumption is broken. For Example, in the case of wrong budget estimation, the cost may overrun. Some reason that may lead to risk is:

7. Mitigation Plan: If any risk is involved then the company must have a backup plan, the purpose is to avoid errors. Some points to resolve/avoid risk:

8. Roles and Responsibilities: All the responsibilities and role of every member of a particular testing team has to be recorded.

Example:

9. Schedule: Under this, it will record the start and end date of every testing-related activity. For Example, writing the test case date and ending the test case date.

10. Defect Tracking: It is an important process in software engineering as lots of issue arises when you develop a critical system for business. If there is any defect found while testing that defect must be given to the developer team. There are the following methods for the process of defect tracking:

Example: The bug can be identified using bug-tracking tools such as Jira, Mantis, and Trac. 

11. Test Environments: It is the environment that the testing team will use i.e. the list of hardware and software, while testing the application, the things that are said to be tested will be written under this section. The installation of software is also checked under this.

Example:

12. Entry and Exit Criteria: The set of conditions that should be met to start any new type of testing or to end any kind of testing.

Entry Condition:

Exit Condition:

Example: If the team member reports that 45% of the test cases failed, then testing will be suspended until the developer team fixes all defects.

Example of Test Plan

13. Test Automation: It consists of the features that are to be automated and which features are not to be automated.

14. Effort Estimation: This involves planning the effort that needs to be applied by every team member.

15. Test Deliverables: It is the outcome from the testing team that is to be given to the customers at the end of the project.

Before the testing phase:

During the testing phase:

After the testing phase:

It contains a test plan, defect report, automation report, assumption report, tools, and other components that have been used for developing and maintaining the testing effort.

16. Template: This is followed by every kind of report that is going to be prepared by the testing team. All the test engineers will only use these templates in the project to maintain the consistency of the product.

How to create a Test Plan:

Below are the eight steps that can be followed to write a test plan:

Create Test Plan

1. Analyze the product: This phase focuses on analyzing the product, Interviewing clients, designers, and developers, and performing a product walkthrough. This stage focuses on answering the following questions:

2. Design the test strategy: The test strategy document is prepared by the manager and details the following information:

3. Define test objectives: This phase defines the objectives and expected results of the test execution. Objectives include:

4. Define test criteria: Two main testing criteria determine all the activities in the testing project:

5. Resource planning: This phase aims to create a detailed list of all the resources required for project completion. For example, human effort, hardware and software requirements, all infrastructure needed, etc. 

6. Plan test environment: This phase is very important as the test environment is where the QAs run their tests. The test environments must be real devices, installed with real browsers and operating systems so that testers can monitor software behavior in real user conditions. 

7. Schedule and Estimation: Break down the project into smaller tasks and allocate time and effort for each task. This helps in efficient time estimation. Create a schedule to complete these tasks in the designated time with a specific amount of effort.

8. Determine test deliverables: Test deliverables refer to the list of documents, tools, and other equipment that must be created, provided, and maintained to support testing activities in the project.

Deliverables required before testing Deliverables required during testing Deliverables required after testing
Test Plan Test Scripts Test Results
Test Design Simulators Defect Reports
  Test Data Release Notes
  Error and Execution Logs  

Article Tags :