当前位置:网站首页>Test cases that testers must master
Test cases that testers must master
2022-06-13 10:17:00 【Software test network】
The test case (Test Case) Is a set of test inputs designed for a specific purpose 、 Documentation of execution conditions and expected results . Its function is to test whether a specific requirement is met . Test cases are the basis for guiding the test work .
Composition of test cases
Standard test cases usually consist of the following modules :
· Use case number : Unique identification of the test case .
· modular : Indicate which module the tested requirements belong to , Mainly to better identify and maintain use cases .
· Use case title : Also known as test point , Is to describe the focus of test cases in one sentence . Each use case corresponds to a test purpose .
· priority : Define according to the priority of the requirements . High priority should cover the core business , Important features and parts with high frequency of use .
· Prerequisite : Some conditions that the use case needs to meet before execution , Otherwise, the test case cannot be executed . For example, some test environments , Or operations that need to be performed in advance .
· Test data : When performing tests , You need to input some external data to complete the test . These data are determined according to the statistics of test cases , With parameters 、 Files or database records, etc .
· testing procedure : Step description of test case , The executor can complete the execution of the test according to the test steps .
· Expected results : Is the most important part of the test case , It is mainly used to judge whether the tested object is normal . Describe the user's expectations according to the requirements
· The actual result :PASS adopt ,FAIL Failure ,N/A unexecuted .
Test case priority
At work , Test cases are divided into different levels according to system requirements :
· P0: Core function test cases ( Smoke testing ), Test case to determine whether this version is testable . This part of the test case if FAIL, Other test cases don't need to be executed , You need to call back and retest the developer .
· P1: High priority test cases , The most common implementation is to ensure that the function is stable . Contains basic functional tests and important errors 、 Boundary test .
· P2: Medium priority test cases , More comprehensive verification of all aspects of the function , Include exception tests 、 The border 、 interrupt 、 The Internet 、 Fault tolerance 、UI Wait for test cases .
· P3: Low priority test cases , Not always executed , Generally include performance 、 pressure 、 Compatibility 、 Security 、 Availability, etc .
In different companies , There may be some differences in the grading of test cases , But basically the same .
The role of test cases
What are the benefits of writing test cases ?
First , You can have a good idea by using useful examples , It will not be repeated many times at one test point , There are ideas , Avoid missing test points . And the test data can be prepared in advance in the test case , In this way, some important data will not be missed .
The execution results of test cases are also the measurement benchmark for evaluating test results . If you design use cases that fully cover the requirements , All test cases are executed and passed , All problems found are modified , It can be delivered to customers with confidence .
Test cases are also the standard for analyzing defects . Because the expected results will be described in detail in the test case , The expected result is to analyze whether there is Bug A standard of . Consistent with the expected results , No Bug. conversely , Inconsistent with the expected results , Is there Bug, Need R & D and repair .
Test case design tool
When writing use cases , You can use mind mapping to clarify the design ideas of modules and use cases . After the mind map is completed, you can review . After the review , If you need to modify something, you can modify it directly in the mind map .
If you are required to write test cases in a tabular way , The test ideas in mind mapping can be transformed into tabular form .
Later, we will introduce the specific design method of test cases ~ Coming soon !
边栏推荐
- 【20220526】UE5.0.2 release d11782b
- Cynthia項目缺陷管理系統
- [51nod p3047] displacement operation [bit operation]
- [image denoising] image denoising based on MATLAB Gaussian + mean + median + bilateral filtering [including Matlab source code 1872]
- [51nod p3111] xiaoming'ai intercepts [Las]
- MySQL到底怎么优化?
- 软件测试常问,你真的会搭建测试环境吗?
- Leetcode (question 15) - sum of three numbers
- Redundancy code question type -- the difference between adding 0 after
- Information document management and configuration management
猜你喜欢

C 11 more practical NAMEOF

Consolas-with-Yahei
![[51nod p2106] an odd number of times [bit operation]](/img/f4/600395cd0ecb44235c65805f379bd4.jpg)
[51nod p2106] an odd number of times [bit operation]

C Oracle multi table query

A hot MySQL training topic, making you a master of SQL

【轴承故障分解】基于matlab ITD轴承故障信号分解【含Matlab源码 1871期】

MySQL到底怎么优化?

Node red series (25): integrate Gaode map and realize 3D map and track playback

Sunyuchen, head of Grenada delegation, attended the WTO MC12 and emphasized the development of digital economy

【图像去噪】基于matlab高斯+均值+中值+双边滤波图像去噪【含Matlab源码 1872期】
随机推荐
在 Kubernetes 集群上部署 VSCode
go-zero微服务实战系列(三、API定义和表结构设计)
SQL server cannot find user or group when creating windows login account
Cynthia project defect management system
修饰模式和代理模式的异同
记一次水平越权漏洞的利用
deepin系统中Qt5.12无法输入中文(无法切换中文输入法)解决办法
JS local storage
C language structure
【图像去噪】基于matlab高斯+均值+中值+双边滤波图像去噪【含Matlab源码 1872期】
中国SaaS产业全景图谱
Execution order of subclass and parent constructor
[51nod p2527] or and sum [bit operation]
Implementation of fruit mall wholesale platform based on SSM
虚拟机内存结构简述
WebRTC服务端工程实践和优化探索
【工具链系列】 Notepad++
电解电容、钽电容、普通电容
一文读懂简单查询代价估算【这次高斯不是数学家】
vivo大规模 Kubernetes 集群自动化运维实践