当前位置:网站首页>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 !
边栏推荐
- [image denoising] image denoising based on MATLAB Gaussian + mean + median + bilateral filtering [including Matlab source code 1872]
- 上周热点回顾(6.6-6.12)
- Docker部署Mysql
- Oracle custom data type question
- 记一次水平越权漏洞的利用
- 五分钟内编写Pytorch模型
- ADG备库MRP0状态WAIT_FOR_GAP
- 一文读懂简单查询代价估算【这次高斯不是数学家】
- 云计算企业崛起 甲骨文数据库市场主导地位动摇
- 微信小程序客服自动回复——PHP实现
猜你喜欢
[51nod p2106] an odd number of times [bit operation]
Thingsboard tutorial (21): save data after processing using message types and data processing nodes
[51nod p2653] interval XOR [bit operation]
Redundancy code question type -- the difference between adding 0 after
信息文档管理与配置管理
WebRTC服务端工程实践和优化探索
Standard template library (STL)
The rise of cloud computing enterprises and the shaking of Oracle database market dominance
Oracle自定义数据类型Type疑问
等个有“源”人|OpenHarmony 成长计划学生挑战赛报名启动
随机推荐
Weekend book: power BI data visualization practice
Analysis and implementation of variable parameters in C language
UNIX Environment advanced programming --8- process control ---8.5 function exit-8.6 function wait and waitpid
[51nod 3062] n queen problem V2 [bit operation DFS]
Index query list injects MySQL and executes Oracle
The rise of cloud computing enterprises and the shaking of Oracle database market dominance
MySQL中redo日志和undo日志简述
【ELM分类】基于粒子群优化卷积神经网络CNN结合极限学习机ELM实现数据分类附matlab代码
架构师必备:系统容量现状checklist
Smart210 uses SD card to burn uboot
中国SaaS产业全景图谱
[ssl1271] sort I [heap]
GCC compilation process
[51nod p3047] displacement operation [bit operation]
JS local storage
聊聊 C# 方法重载的底层玩法
Protocol UART of schematic diagram
Programming principles
[ssl1280] full arrangement
Docker deployment MySQL