当前位置:网站首页>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
边栏推荐
猜你喜欢

RTL8762DK UART (two)

RTL8762DK RTC (5)

更换树莓派内核

Four ways the Metaverse is changing the way humans work

You need to know the TCP wave four times

SC7A20 (Silan Micro-Accelerometer) Example

【消息通知】用公众号模板消息怎么样?

What practical projects can machine learning beginners learn?

IDEA modifies the annotation font

win10 固定本机IP
随机推荐
【分层强化学习】HIRO:Data-Efficient Hierarchical Reinforcement Learning
【SemiDrive源码分析】系列文章链接汇总(全)
IDEA无法识别module(module右下角没有蓝色小方块)
初出茅庐的小李第114篇博客项目笔记之机智云智能浇花器实战(3)-基础Demo实现
ARM cross compilation
MySQL modifies SQL statements to optimize performance
OSF understands the agile development model in one minute
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?
MYSQL master-slave replication
Handwritten binary search tree and test
2. # 代码注释
SC7A20 (Silan Micro-Accelerometer) Example
High dimensional Gaussian distribution basics
在打开MYSQL表时,有的可以显示编辑,有的没有,如何设置。
Summary of JVM interview questions (continuously updated)
"Youth Pie 2": The new boyfriend stepped on two boats, and the relationship between Lin Miaomiao and Qian Sanyi warmed up
IDEA 找不到或无法加载主类 或 Module “*“ must not contain source root “*“ The root already belongs to module “*“
HCIP(15)
链式编程、包、访问权限
Fat interface in JQESAP system