首页 > 其他分享 >Test Plan

Test Plan

时间:2023-04-17 09:12:16浏览次数:41  
标签:testing project test Plan Test scope

Refer to this website:

https://www.guru99.com/what-everybody-ought-to-know-about-test-planing.html#:~:text=How%20to%20write%20a%20Test%20Plan%201%20Analyze,7%20Schedule%20%26%20Estimation%208%20Determine%20Test%20Deliverables

TEST PLAN: What is, How to Create (with Example)

Test Plan

Test Plan is a detailed document that describes the test strategy, objectives, schedule, estimation, deliverables, and resources required to perform testing for a software product. Test Plan helps us determine the effort needed to validate the quality of the application under test. The test plan serves as a blueprint to conduct software testing activities as a defined process, which is minutely monitored and controlled by the test manager.

As per ISTQB definition: “Test Plan is A document describing the scope, approach, resources, and schedule of intended test activities.”

Let’s start with following Test Plan example/scenario: In a meeting, you want to discuss the Test Plan with the team members, but they are not interested - .

What is the Importance of Test Plan?

Making Test Plan document has multiple benefits

  • Help people outside the test team such as developers, business managers, customers understand the details of testing.
  • Test Plan guides our thinking. It is like a rule book, which needs to be followed.
  • Important aspects like test estimation, test scope, Test Strategy are documented in Test Plan, so it can be reviewed by Management Team and re-used for other projec

How to write a Test Plan

You already know that making a Test Plan is the most important task of Test Management Process. Follow the seven steps below to create a test plan as per IEEE 829

  1. Analyze the product
  2. Design the Test Strategy
  3. Define the Test Objectives
  4. Define Test Criteria
  5. Resource Planning
  6. Plan Test Environment
  7. Schedule & Estimation
  8. Determine Test Deliverables

     

    Step 1) Analyze the product

How can you test a product without any information about it? The answer is Impossible. You must learn a product thoroughly before testing it.

The product under test is Guru99 banking website. You should research clients and the end users to know their needs and expectations from the application

  • Who will use the website?
  • What is it used for?
  • How will it work?
  • What are software/ hardware the product uses?

You can use the following approach to analyze the site

 

 

 

Step 2) Develop Test Strategy

Test Strategy is a critical step in making a Test Plan in Software Testing. A Test Strategy document, is a high-level document, which is usually developed by Test Manager. This document defines:

  • The project’s testing objectives and the means to achieve them
  • Determines testing effort and costs

Back to your project, you need to develop Test Strategy for testing that banking website. You should follow steps below

 

 

 

Step 2.1) Define Scope of Testing

Before the start of any test activity, scope of the testing should be known. You must think hard about it.

  • The components of the system to be tested (hardware, software, middleware, etc.) are defined as "in scope"
  • The components of the system that will not be tested also need to be clearly defined as being "out of scope."

Defining the scope of your testing project is very important for all stakeholders. A precise scope helps you

  • Give everyone a confidence & accurate information of the testing you  are doing
  • All project members will have a clear understanding about what is tested and what is not

 

How do you determine scope your project?

To determine scope, you must –

  • Precise customer requirement
  • Project Budget
  • Product Specification
  • Skills & talent of your test team

Now should clearly define the "in scope" and "out of scope" of the testing.

  • As the software requirement specs, the project Guru99 Bank only focus on testing all the functions and external interface of website Guru99 Bank (in scope testing)
  • Nonfunctional testing such as stressperformance or logical database currently will not be tested. (out of scope)

Problem Scenario

The customer wants you to test his API. But the project budget does not permit to do so. In such a case what will you do?

Well, in such case you need to convince the customer that Api Testing is extra work and will consume significant resources. Give him data supporting your facts. Tell him if Api Testing is included in-scope the budget will increase by XYZ amount.

The customer agrees and accordingly the new scopes, out of scope items are

Step 2.2) Identify Testing Type

Testing Type is a standard test procedure that gives an expected test outcome.

Each testing type is formulated to identify a specific type of product bugs. But, all Testing Types are aimed at achieving one common goal “Early detection of all the defects before releasing the product to the customer”

The commonly used testing types are described as following figure

 

 

 

 

Step 2.4) Create Test Logistics

 In Test Logistics, the Test Manager should answer the following questions:

  • Who will test?
  • When will the test occur?

Who will test?

You may not know exact names of the tester who will test, but the type of tester can be defined.

To select the right member for specified task, you have to consider if his skill is qualified for the task or not, also estimate the project budget. Selecting wrong member for the task may cause the project to fail or delay.

Person having the following skills is most ideal for performing software testing:

  • Ability to understand customers point of view
  • Strong desire for quality
  • Attention to detail
  • Good cooperation

Step 2.3) Document Risk & Issues

Risk is future’s uncertain event with a probability of occurrence and a potential for loss. When the risk actually happens, it becomes the ‘issue’.

In the article Risk Analysis and Solution, you have already learned about the ‘Risk’ analysis in detail and identified potential risks in the project.

In the QA Test Plan, you will document those risks

 

There are tons of Testing Types for testing software product. Your team cannot have enough efforts to handle all kind of testing. As Test Manager, you must set priority of the Testing Types

  • Which Testing Types should be focused for web application testing?
  • Which Testing Types should be ignored for saving cost?
  • In your project, the member who will take in charge for the test execution is the tester. Base on the project budget, you can choose in-source or outsource member as the tester.

    When will the test occur?

    Test activities must be matched with associated development activities.

    You will start to test when you have all required items shown in following figure

 

 

 

Step 3) Define Test Objective

Test Objective is the overall goal and achievement of the test execution. The objective of the testing is finding as many software defects as possible; ensure that the software under test is bug free before release.

To define the test objectives, you should do 2 following steps

  1. List all the software features (functionality, performance, GUI…) which may need to test.
  2. Define the target or the goal of  the test based on  above features

Let’s apply these steps to find the test objective of your Guru99 Bank testing project

You can choose the ‘TOP-DOWN’ method to find the website’s features which may need to test. In this method, you break down the application under test to component and sub-component.

 

In the previous topic, you have already analyzed the requirement specs and walk through the website, so you can create a Mind-Map to find the website features as following

 

 

This figure shows all the features which the Guru99 website may have.

Based on above features, you can define the Test Objective of the project Guru99 as following

  • Check that whether website Guru99 functionality(Account, Deposit…) is working as expected without any error or bugs in real business environment
  • Check that the external interface of the website such as UI is working as expected and & meet the customer need
  • Verify the usability of the website. Are those functionalities convenient for user or not?

Step 4) Define Test Criteria

Test Criteria is a standard or rule on which a test procedure or test judgment can be based. There’re 2 types of test criteria as following

 

Suspension Criteria

Specify the critical suspension criteria for a test. If the suspension criteria are met during testing, the active test cycle will be suspended until the criteria are resolved.

Test Plan Example: If your team members report that there are 40% of test cases failed, you should suspend testing until the development team fixes all the failed cases.

 

 

Exit Criteria

It specifies the criteria that denote a successful completion of a test phase. The exit criteria are the targeted results of the test and are necessary before proceeding to the next phase of development. Example: 95% of all critical test cases must pass.

Some methods of defining exit criteria are by specifying a targeted run rate and pass rate.

  • Run rate is ratio between number test cases executed/total test cases of test specification. For example, the test specification has total 120 TCs, but the tester only executed 100 TCs, So the run rate is 100/120 = 0.83 (83%)
  • Pass rate is ratio between numbers test cases passed / test cases executed. For example, in above 100 TCs executed, there’re 80 TCs that passed, so the pass rate is 80/100 = 0.8 (80%)

This data can be retrieved in Test Metric documents.

  • Run rate is mandatory to be 100% unless a clear reason is given.
  • Pass rate is dependent on project scope, but achieving high pass rate is a goal.

Test Plan Example:Your Team has already done the test executions. They report the test result to you, and they want you to confirm the Exit Criteria.

 

 In above case, the Run rate is mandatory is 100%, but the test team only completed 90% of test cases. It means the Run rate is not satisfied, so do NOT confirm the Exit Criteria 

 

Step 5) Resource Planning

Resource plan is a detailed summary of all types of resources required to complete project task. Resource could be human, equipment and materials needed to complete a project

The resource planning is important factor of the test planning because helps in determining the number of resources (employee, equipment…) to be used for the project. Therefore, the Test Manager can make the correct schedule & estimation for the project.

This section represents the recommended resources for your project.

Human Resource

The following table represents various members in your project team

 

No.

Member

Tasks

1.     

Test Manager

Manage the whole project

Define project directions

Acquire appropriate resources

2.     

Tester

Identifying and describing appropriate test techniques/tools/automation architecture

Verify and assess the Test Approach

Execute the tests, Log results, Report the defects.

Tester could be in-sourced or out-sourced members, base on the project budget

For the task which required low skill, I recommend you choose outsourced members to save project cost.

3.     

Developer in Test

Implement the test cases, test program, test suite etc.

4.     

Test Administrator

Builds up and ensures Test Environment and assets are managed and maintained

SupportTester to use the test environment for test execution

5.     

SQA members

Take in charge of quality assurance

Check  to confirm whether the testing process is meeting specified requirements

System Resource

For testing, a web application, you should plan the resources as following tables:

No.

Resources

Descriptions

1.     

Server

Install the web application under test

This includes a separate web server, database server, and application server if applicable

2.     

Test tool

The testing tool is to automate the testing, simulate the user operation, generate the test results

There are tons of test tools you can use for this project such as Selenium, QTP…etc.

3.     

Network

You need a Network include LAN and Internet to simulate the real business and user environment

4.     

Computer

The PC which users often use to connect the web server

 

Step 6) Plan Test Environment

What is the Test Environment

A testing environment is a setup of software and hardware on which the testing team is going to execute test cases. The test environment consists of real business and user environment, as well as physical environments, such as server, front end running environment.

How to setup the Test Environment

Back to your project, how do you set up test environment for this banking website?

To finish this task, you need a strong cooperation between Test Team and Development Team

 

 

You should ask the developer some questions to understand the web application under test clearly. Here’re some recommended questions. Of course, you can ask the other questions if you need.

  • What is the maximum user connection which this website can handle at the same time?
  • What are hardware/software requirements to install this website?
  • Does the user's computer need any particular setting to browse the website?

 

 

Task

Members

Estimate effort

Create the test specification

Test Designer

170 man-hour

Perform Test Execution

Tester, Test Administrator

80 man-hour

Test Report

Tester

10 man-hour

Test Delivery

 

20 man-hour

Total

 

280 man-hour

Step 7) Schedule & Estimation

In the article Test estimation, you already used some techniques to estimate the effort to complete the project. Now you should include that estimation as well as the schedule to the Test Planning

In the Test Estimation phase, suppose you break out the whole project into small tasks and add the estimation for each task as below

Task

Members

Estimate effort

Create the test specification

Test Designer

170 man-hour

Perform Test Execution

Tester, Test Administrator

80 man-hour

Test Report

Tester

10 man-hour

Test Delivery

 

20 man-hour

Total

 

280 man-hour

 

Then you create the schedule to complete these tasks.

Making schedule is a common term in project management. By creating a solid schedule in the Test Planning, the Test Manager can use it as tool for monitoring the project progress, control the cost overruns.

To create the project schedule, the Test Manager needs several types of input as below:

  • Employee and project deadline: The working days, the project deadline, resource availability are the factors which affected to the schedule
  • Project estimation:  Base on the estimation, the Test Manager knows how long it takes to complete the project. So he can make the appropriate project schedule
  • Project Risk : Understanding the risk helps Test Manager add enough extra time to the project schedule to deal with the risks

Let’s practice with an example:

Suppose the boss wants to complete the project Guru99 in one month, you already estimated the effort for each tasks in Test Estimation. You can create the schedule as below

 

 

Step 8) Test Deliverables

Test Deliverables is a list of all the documents, tools and other components that has to be developed and maintained in support of the testing effort.

There are different test deliverables at every phase of the software development lifecycle.

 

 

Test deliverables are provided before testing phase.

  • Test plans document.
  • Test cases documents
  • Test Design specifications.

Test deliverables are provided during the testing

  • Test Scripts
  • Simulators.
  • Test Data
  • Test Traceability Matrix
  • Error logs and execution logs.

Test deliverables are provided after the testing cycles is over.

  • Test Results/reports
  • Defect Report
  • Installation/ Test procedures guidelines
  • Release notes

 

Person having the following skills is most ideal for performing software testing:

  • Ability to understand customers point of view
  • Strong desire for quality
  • Attention to detail
  • Good cooperation

标签:testing,project,test,Plan,Test,scope
From: https://www.cnblogs.com/tzmok/p/14836496.html

相关文章

  • IDE-Visual Studio Code-Extension-离线安装PlantUML
    IDE-VisualStudioCode-Extension-离线安装PlantUMLhttps://www.hd2y.net/archives/plantuml-installation-and-usePlantUML+Graphviz+JavaPlantUMLExtensionvscodemarketplace注意路径,我第一次下载的vs的插件。https://marketplace.visualstudio.com/vscodeh......
  • AtCoder Beginner Contest 295
    ThreeDaysAgo我们定义一个只由数字构成的字符串中的字符能够被重排成相同的两份,我们称这个字符串是个好字符串,比如12341234现在给定一个字符串\(S\),找出所有的\([l,r]\),使得在这段区间中的子段是个好字符串题解:思维+组合计数首先我们根据题意得到:一个好字符串中所有相......
  • 什么是软件测试领域的 Flaky test?
    在软件测试领域,Flakytest是指那些在多次执行中产生不一致结果的测试用例。具体来说,这些测试用例在某些情况下可以成功通过测试,而在其他情况下则会失败,即使是相同的测试环境和测试数据。Flakytest可能是由于多种原因引起的,如测试代码中存在的竞态条件、网络延迟或不稳定的测试......
  • googleTest demo
    googletest的目录在的官方目录在https://github.com/google/googletest.git。作为用户,googleTest的库可以认为提供了两个东西:各种宏,如TEST,TEST_F,通过#include"gtest/gtest.h",即可使用。gtest_main的库libgtest_main.a,即提供了一个主函数,可以和一个测试套的“容器”。静态库......
  • AtCoder Regular Contest 104 F Visibility Sequence
    洛谷传送门AtCoder传送门考虑连边\((i,p_i)\)(若\(p_i=-1\)则不连边),可以发现形成了一篇内向树森林且这个森林存在一个dfs序为\(1,2,...,n\)。这棵森林有如下性质:\(\forallv\inson_u,h_u>h_v\)\(\forallv,w\inson_u\landv<w,h_v\leh_w\)考虑一个\(p......
  • go test main包报错
    前言先提出问题,再说明原因.有如下一段代码:当执行gotest测试时,会报如下错误:main.test/var/folders/55/47pl3jxx6rg7m0r6xvn4f7wr0000gn/T/go-build2769402238/b001/_testmain.go:13:8:couldnotimportmain(cannotimport"main")FAILmain[buildfailed]......
  • AtCoder Beginner Contest 223(D,E,F)
    AtCoderBeginnerContest223(D,E,F)D(拓扑排序)D大意就是有\(n\)个点,\(m\)个关系,其中关系是指\(u\)和\(v\),在排序里面使得\(u\)的位置再\(v\)的位置的前面要求找到一个排序满足上述条件的序列中字典序最小的那一个这个使用拓扑排序,并加上优先队列即可只要找到\(n\)个数,即为......
  • AtCoder Beginner Contest 293 补题记录 (E-G)
    E题意:给定A,X,M,计算(A0+A1+A2+...+AX-1)modM(1<=A,M<=109,1<=X<=1012)。 根据等比数列求和公式,(A0+A1+A2+...+AX-1)modM=((AX-1)/(A-1))modM。然而,此题如果用求和公式来求解显然是行不通的,下面会给出原因。 如果我们要用求......
  • 2022 Shanghai Collegiate Programming Contest B
    知识点:差分约束Link:https://codeforces.com/gym/103931/problem/B。被卡SPFA了呃呃。一看出题人是这个人:如何看待SPFA算法已死这种说法?-fstqwq的回答-知乎,那没事了。简述给定参数\(n,q\),表示有一个长度为\(n\)的合法括号序列,且有\(q\)组限制。每组限制均为......
  • C++ 测试框架 GoogleTest 初学者入门篇 丙
    theme:channing-cyan*以下内容为本人的学习笔记,如需要转载,请声明原文链接微信公众号「ENG八戒」https://mp.weixin.qq.com/s/RIztusI3uKRnoHVf0sloeg开发者虽然主要负责工程里的开发任务,但是每个开发完毕的功能都是需要开发者自测通过的,所以经常会听到开发者提起单元测试的......