当前位置:网站首页>Basic Theoretical Knowledge of Software Testing - Use Cases
Basic Theoretical Knowledge of Software Testing - Use Cases
2022-08-01 03:04:00 【@ dream west state】
What is a test case
Test Case (Test Case) is a set of sets provided to the system under test in order to implement the test. This set contains: test environment, operation steps, test data, expected results and other elements
Concept of Requirements
Meet user expectations or formally specify the conditions and capabilities of documents (contracts, standards, specifications), including user requirements and software requirements
Requirements-based approach to designing test cases
(1) Verify that the requirements are correct, complete, unambiguous, and logically consistent.
(2) From the perspective of "black box", design a sufficient and necessary test set to ensure that the design and code can fully meet the requirements.
Equivalent class design method (emphasis)
①Design concept: According to the requirements, the input (output will be considered in special cases) is divided into several equivalence classes, and a test case is selected from the equivalence class. If the test case passes the test, it is considered to represent theThe equivalence class test is passed, so that as many functions as possible can be covered with fewer test cases, which solves the problem that cannot be
exhaustive testing
②Effective equivalence class: It is reasonable for the specification of the program, A collection of meaningful input data, using the valid equivalence class to verify whether the program implements the functions and performance specified in the specification.
Boundary value design method (emphasis)
Design concept: Boundary value analysis is a black-box testing method to test the boundary value of input or output
Remarks: Equivalence class and boundary value are usually designed together to complement each other
Scenario Design (emphasis)
Design concept: Almost all software today uses event triggering to control the process. The scene when an event is triggered forms a scene, and the different triggering sequences and processing results of the same event form an event flow.
Bad guessing (emphasis)
Design concept: Almost all software today uses event triggering to control the process. The scene when the event is triggered forms the scene, and the different triggering sequences and processing results of the same event form the event flow
Cause and effect diagram design method (know)
①Design concept: A cause-and-effect diagram is a simplified logic diagram that can intuitively show the relationship between program input conditions (causes) and output actions (results).Cause-and-effect diagram method is a systematic method of designing test cases by means of graphs, especially suitable for various situations where the program under test has multiple input conditions and the output of the program depends on the input conditions
②Commonly usedRelationship: Identity, And, Or, Not
③Operation steps: (
(1) Analyze all possible inputs and possible outputs.
(2) Find out the correspondence between the input and the output.
(3) Draw a cause and effect diagram.
(4) Convert the cause and effect diagram into a decision table.
(5) Correspond the decision table to each test case.
Orthogonal Table Design
①Design concept: Orthogonal experimental design (Orthogonal experimental design) is a design method to study multi-factor and multi-level. It selects some representative points from all levels of experimental factors according to orthogonality.Carry out the test, understand the overall test situation by analyzing the results of this part of the test, and find the optimal level combination
②Properties:
1. Each number in each column appears the same number of times.,
2. The number of pairs of ordinal numbers formed by any two columns is the same.
③Design steps: 1. What are the factors (variables)
2. What are the levels of each factor?(values of variables)
3. Select a suitable orthogonal table
4. Map the values of variables to the table
5. Use the combination of the factor levels in each row as a test case
br> 6. Add the use case combination that you think is suspicious and does not appear in the table
边栏推荐
- [uniCloud] Application and Improvement of Cloud Objects
- [SemiDrive source code analysis] series article link summary (full)
- July Bootcamp (Day 31) - Status Compression
- HCIP (14)
- 北京突然宣布,元宇宙重大消息
- opencv 缩小放大用哪种插值更好??
- leetcode6132. 使数组中所有元素都等于零(简单,周赛)
- How to download the Keil package
- 带wiringPi库在unbutu 编译 并且在树莓派运行
- 链式编程、包、访问权限
猜你喜欢

HCIP(15)

Raspberry pie arm version of GCC installed configuration and environment variables

数据中台建设(七):数据资产管理

Beijing suddenly announced that yuan universe big news

【数据分析】基于matlab GUI学生成绩管理系统【含Matlab源码 1981期】

JS new fun(); 类与实例 JS基于对象语言 只能通过书写构造函数充当类

Introduction to machine learning how to?

how to edit the table of contents of an epub ebook

MYSQL master-slave replication

Open source project site must-have & communication area function
随机推荐
"Youth Pie 2": The new boyfriend stepped on two boats, and the relationship between Lin Miaomiao and Qian Sanyi warmed up
MYSQL-Batch insert data
Simple vim configuration
Basic use of vim - command mode
The kernel of the decompression process steps
高维高斯分布基础
One service layer needs to call the other two service layers to obtain data and assemble it into the final data. The data is all lists. How to design the cache?
<JDBC> 批量插入 的四种实现方式:你真的get到了吗?
内核的解压缩过程详解
How is the tree structure of the device tree reflected?
IDEA无法识别module(module右下角没有蓝色小方块)
RTL8762DK WDG (six)
How to download the Keil package
[Search topic] After reading the inevitable BFS solution to the shortest path problem
This map drawing tool is amazing, I recommend it~~
HCIP (14)
Parse the bootargs from the device tree (dtb format data)
After specifying set 'execution.savepoint.path', restart flinksql and report this error
Lua introductory case of actual combat 1234 custom function and the standard library function
Nmap 操作手册 - 完整版