Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Test data generation and test case management method

A test case and management method technology, which is applied in the fields of electrical digital data processing, software testing/debugging, natural language data processing, etc., can solve the problems of difficult case merging, low case validity, and high case repetition, so as to reduce computational complexity degree, improve word segmentation accuracy, and improve the effect of calculation speed

Active Publication Date: 2022-06-17
杭州优诗科技有限公司
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. The validity of the case is low
Unit test cases need to have clear assertions, and automatically generated unit test cases, assertions may be inaccurate, resulting in low effectiveness of unit test cases
[0005] 2. High case repetition
The automatic generation methods of unit test cases mainly include data construction and data recording. The function paths corresponding to the cases may be repeated, and a large number of repetitions will lead to an exponential

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Test data generation and test case management method
  • Test data generation and test case management method
  • Test data generation and test case management method

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0094]下面结合附图并通过具体实施方式来进一步说明本发明的技术方案。

[0095]其中,附图仅用于示例性说明,表示的仅是示意图,而非实物图,不能理解为对本专利的限制;为了更好地说明本发明的实施例,附图某些部件会有省略、放大或缩小,并不代表实际产品的尺寸;对本领域技术人员来说,附图中某些公知结构及其说明可能省略是可以理解的。

[0096]本发明实施例的附图中相同或相似的标号对应相同或相似的部件;在本发明的描述中,需要理解的是,若出现术语“上”、“下”、“左”、“右”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此附图中描述位置关系的用语仅用于示例性说明,不能理解为对本专利的限制,对于本领域的普通技术人员而言,可以根据具体情况理解上述术语的具体含义。

[0097]在本发明的描述中,除非另有明确的规定和限定,若出现术语“连接”等指示部件之间的连接关系,该术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个部件内部的连通或两个部件的相互作用关系。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。

[0098]本发明实施例提供的测试数据生成及测试案例管理方法,如图1所示,包括:

[0099]步骤S1,构建变量命名规则最小单词库和数据库,构建方法为:获取各类软件测试过程中的每个被调用的测试函数的第一入参信息保存到数据库中(比如可通过现有的字节码增强技术来获取被调用的测试函数的入参信息),第一入参信息包括输入到测试函数的每个第一参数的参数名称、参数类型以及参数值,然后基于人为经验规则将每个第一参数的参数名称拆分为若干个单词并形成拆分结果与参数名称的拆分关系保存到数据库中,比如某个第一参数的参数名称为“payaccountname”,组织架构师、高级研发工程师通过专家评审可以将该参数名称拆分为“pay”、“account”、“name”3个最小单词,将这个拆分结果即“pay+account+name”与参数名称“payaccountname”形成拆分关系后保存到数据库中,拆分关系的表达式比如可以为“payaccountn...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a test data generation and test case management method, and belongs to the technical field of software testing. According to the method, parameter values of unknown parameters are obtained through parameter name similarity calculation, and the key step that the parameter values are difficult to obtain in test data construction is solved. In addition, effective management of different versions of the same unit test case in a multi-person coding scene is realized through modes of assertion data enhancement, test case deduplication and test function combination, and the delivery quality and delivery efficiency of developed software can be improved.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a test data generation and test case management method. Background technique [0002] In the process of software development, test data needs to be prepared. The more test data conforms to business rules, the more effective it is for subsequent test activities. In the existing technology, the test data is obtained through manual preparation or automatic construction. Whether the manually prepared data meets the test requirements depends on the individual's understanding of the software business architecture. Usually, the correlation between software services is not considered too much, resulting in artificial The prepared data test value is not high. Although the automatically constructed data considers the correlation between businesses, there are generally technical problems such as insufficient accuracy and large errors in the constructed test data. Therefore, it is...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36G06F40/289G06K9/62
CPCG06F11/3684G06F11/3688G06F11/3692G06F40/289G06F18/22
Inventor 吴平福陈鹏坤
Owner 杭州优诗科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products