CN108710575B - 基于路径覆盖测试用例自动生成的单元测试方法 - Google Patents
基于路径覆盖测试用例自动生成的单元测试方法 Download PDFInfo
- Publication number
- CN108710575B CN108710575B CN201810501975.0A CN201810501975A CN108710575B CN 108710575 B CN108710575 B CN 108710575B CN 201810501975 A CN201810501975 A CN 201810501975A CN 108710575 B CN108710575 B CN 108710575B
- Authority
- CN
- China
- Prior art keywords
- code
- node
- control flow
- flow graph
- test case
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3676—Test management for coverage analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
路径编码 | 控制流图中对应的节点组成的路径 |
路径1 | {0,1,2,4,5,6,7,9,10,12,13,14,16,17,19} |
路径2 | {0,1,2,4,5,6,8,9,10,11,13,14,16,17,19} |
路径3 | {0,1,2,4,5,6,8,9,10,12,13,14,15,17,19} |
路径4 | {0,1,3,4,5,18,19} |
Claims (7)
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810501975.0A CN108710575B (zh) | 2018-05-23 | 2018-05-23 | 基于路径覆盖测试用例自动生成的单元测试方法 |
US17/058,110 US11720477B2 (en) | 2018-05-23 | 2018-10-31 | Unit testing method based on automatic generation of path coverage test cases |
PCT/CN2018/113236 WO2019223247A1 (zh) | 2018-05-23 | 2018-10-31 | 基于路径覆盖测试用例自动生成的单元测试方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810501975.0A CN108710575B (zh) | 2018-05-23 | 2018-05-23 | 基于路径覆盖测试用例自动生成的单元测试方法 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108710575A CN108710575A (zh) | 2018-10-26 |
CN108710575B true CN108710575B (zh) | 2020-11-24 |
Family
ID=63869344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810501975.0A Active CN108710575B (zh) | 2018-05-23 | 2018-05-23 | 基于路径覆盖测试用例自动生成的单元测试方法 |
Country Status (3)
Country | Link |
---|---|
US (1) | US11720477B2 (zh) |
CN (1) | CN108710575B (zh) |
WO (1) | WO2019223247A1 (zh) |
Families Citing this family (33)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108710575B (zh) * | 2018-05-23 | 2020-11-24 | 华南理工大学 | 基于路径覆盖测试用例自动生成的单元测试方法 |
CN110543421B (zh) * | 2019-08-31 | 2022-03-29 | 华南理工大学 | 基于测试用例自动生成算法的单元测试自动执行方法 |
US11461508B2 (en) * | 2020-05-28 | 2022-10-04 | Izuma Tech, Inc. | Memory protection unit boundary partitioning based on compiled software objects |
CN111694754B (zh) * | 2020-07-30 | 2023-04-07 | 抖音视界有限公司 | 应用程序的测试方法、装置、电子设备及计算机介质 |
CN113760700A (zh) * | 2020-08-06 | 2021-12-07 | 北京京东振世信息技术有限公司 | 程序死循环检测方法、装置、电子设备及存储介质 |
CN112380120B (zh) * | 2020-11-13 | 2022-06-10 | 华南理工大学 | 单元测试代码结构自动解析与路径分析方法 |
CN112486808B (zh) * | 2020-11-20 | 2024-04-16 | 中国人寿保险股份有限公司 | 一种***测试方法、装置、电子设备及存储介质 |
CN112527587B (zh) * | 2020-12-03 | 2023-04-18 | 深圳大普微电子科技有限公司 | 一种验证进度确定方法、装置、设备及可读存储介质 |
CN112464502B (zh) * | 2020-12-28 | 2022-02-01 | 芯天下技术股份有限公司 | 优化加快存储器仿真验证方法、装置、存储介质和终端 |
CN113419955B (zh) * | 2021-06-25 | 2023-06-02 | 展讯通信(上海)有限公司 | 软件版本自动测试***、方法、介质及设备 |
CN113419964B (zh) * | 2021-07-14 | 2022-07-15 | 上海浦东发展银行股份有限公司 | 一种测试案例生成方法、装置、计算机设备及存储介质 |
CN113886245A (zh) * | 2021-09-30 | 2022-01-04 | 平安普惠企业管理有限公司 | 基于人工智能的***验收方法、装置、计算机设备和介质 |
CN114064453B (zh) * | 2021-10-12 | 2023-04-07 | 华南理工大学 | 基于聚类和进化算法的软件测试用例自动生成方法 |
WO2023060594A1 (en) * | 2021-10-15 | 2023-04-20 | Intel Corporation | A concept for generating a test specification |
CN114490339B (zh) * | 2021-12-30 | 2024-05-31 | 天津大学 | 一种基于搜索测试的智能种子策略方法 |
CN114491424B (zh) * | 2021-12-31 | 2024-05-03 | 西安电子科技大学 | 基于模糊测试的二进制代码裁剪方法 |
CN114416570B (zh) * | 2022-01-20 | 2024-05-28 | 哈尔滨工业大学 | 基于加权软件行为图的等价变异体检测方法 |
CN114238154B (zh) * | 2022-02-24 | 2022-05-06 | 湖南泛联新安信息科技有限公司 | 一种符号执行方法、单元测试方法、电子设备及存储介质 |
CN115576848B (zh) * | 2022-11-10 | 2023-04-07 | 江西财经大学 | 结合关键边概率与路径层接近度的多路径覆盖测试方法 |
CN116048958B (zh) * | 2022-11-17 | 2023-12-01 | 中山大学 | 医疗机器人控制软件测试数据的生成方法、注入方法 |
CN115576854B (zh) * | 2022-11-25 | 2023-03-28 | 微科智检(佛山市)科技有限公司 | 一种安卓自动化单元测试方法 |
CN115794658B (zh) * | 2023-01-09 | 2023-05-30 | 国网区块链科技(北京)有限公司 | 一种区块链的模糊测试方法及*** |
CN116302971A (zh) * | 2023-02-07 | 2023-06-23 | 北京大学 | 一种针对可编程数据平面可扩展的测试生成方法 |
CN116302994B (zh) * | 2023-02-28 | 2023-10-10 | 浙江大学 | 一种程序路径的层次化匹配方法、装置、设备及存储介质 |
CN116010291A (zh) * | 2023-03-28 | 2023-04-25 | 江西财经大学 | 基于均衡优化理论与灰色预测模型的多路径覆盖测试方法 |
CN116431522A (zh) * | 2023-06-12 | 2023-07-14 | 天翼云科技有限公司 | 一种低代码对象存储网关自动化测试方法及*** |
CN116932416B (zh) * | 2023-09-15 | 2023-12-22 | 北京华云安信息技术有限公司 | 基于敏感函数的模糊测试方法、装置、设备以及存储介质 |
CN117194731B (zh) * | 2023-11-06 | 2024-01-26 | 中国西安卫星测控中心 | 一种基于有向带环图的测控流程自动化调度方法 |
CN117520191B (zh) * | 2023-11-27 | 2024-06-21 | 浙江大学 | 一种基于程序路径的测试完备性检查方法、设备及存储介质 |
CN117851254A (zh) * | 2024-01-09 | 2024-04-09 | 浙江大学 | 一种基于符号执行和路径数缩减的mc/dc覆盖用例生成方法 |
CN117891733A (zh) * | 2024-01-17 | 2024-04-16 | 南京数睿数据科技有限公司 | 测试用例应用程序测试方法、装置、电子设备和介质 |
CN117951712A (zh) * | 2024-01-23 | 2024-04-30 | 烟台大学 | 基于静态分析与模糊测试结合的智能合约漏洞检测方法 |
CN117632770B (zh) * | 2024-01-25 | 2024-04-19 | 江西财经大学 | 一种多路径覆盖测试用例生成方法和*** |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102419728A (zh) * | 2011-11-01 | 2012-04-18 | 北京邮电大学 | 基于覆盖率量化指标确定软件测试过程充分性的方法 |
CN102708053A (zh) * | 2012-04-27 | 2012-10-03 | 北京邮电大学 | 程序路径中确定函数调用的上下文环境影响的方法 |
Family Cites Families (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5878054A (en) * | 1995-09-11 | 1999-03-02 | Digital Equipment Corporation | Method and apparatus for test data generation |
US5805795A (en) * | 1996-01-05 | 1998-09-08 | Sun Microsystems, Inc. | Method and computer program product for generating a computer program product test that includes an optimized set of computer program product test cases, and method for selecting same |
US7665072B2 (en) * | 2005-04-21 | 2010-02-16 | Microsoft Corporation | Generating test cases for software with complex preconditions |
AU2007299571B2 (en) * | 2006-09-20 | 2013-09-12 | National Ict Australia Limited | Generating a transition system for use with model checking |
CN102331966A (zh) * | 2011-01-10 | 2012-01-25 | 中国矿业大学 | 面向路径的软件测试数据进化生成*** |
CN102323906B (zh) * | 2011-09-08 | 2014-01-08 | 哈尔滨工程大学 | 一种基于遗传算法的mc/dc测试数据自动生成方法 |
US8966457B2 (en) * | 2011-11-15 | 2015-02-24 | Global Supercomputing Corporation | Method and system for converting a single-threaded software program into an application-specific supercomputer |
US9559928B1 (en) * | 2013-05-03 | 2017-01-31 | Amazon Technologies, Inc. | Integrated test coverage measurement in distributed systems |
US9619375B2 (en) * | 2014-05-23 | 2017-04-11 | Carnegie Mellon University | Methods and systems for automatically testing software |
US9329974B2 (en) * | 2014-06-26 | 2016-05-03 | Intel Corporation | Technologies for determining binary loop trip count using dynamic binary instrumentation |
CN104063325B (zh) * | 2014-07-11 | 2016-10-26 | 电子科技大学 | 一种针对嵌入式软件的测试用例自动化生成装置及其方法 |
US9928156B2 (en) * | 2015-10-23 | 2018-03-27 | Microsoft Technology Licensing, Llc. | Missing include suggestions for external files |
US10545739B2 (en) * | 2016-04-05 | 2020-01-28 | International Business Machines Corporation | LLVM-based system C compiler for architecture synthesis |
CN107590073B (zh) * | 2017-08-30 | 2021-03-30 | 华南理工大学 | 基于路径覆盖软件测试的测试用例自动生成方法 |
CN108519944B (zh) * | 2018-03-07 | 2019-04-05 | 北京航空航天大学 | 一种基于噪声共振的软件加速测试技术的构建方法 |
CN108710575B (zh) | 2018-05-23 | 2020-11-24 | 华南理工大学 | 基于路径覆盖测试用例自动生成的单元测试方法 |
-
2018
- 2018-05-23 CN CN201810501975.0A patent/CN108710575B/zh active Active
- 2018-10-31 WO PCT/CN2018/113236 patent/WO2019223247A1/zh active Application Filing
- 2018-10-31 US US17/058,110 patent/US11720477B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102419728A (zh) * | 2011-11-01 | 2012-04-18 | 北京邮电大学 | 基于覆盖率量化指标确定软件测试过程充分性的方法 |
CN102708053A (zh) * | 2012-04-27 | 2012-10-03 | 北京邮电大学 | 程序路径中确定函数调用的上下文环境影响的方法 |
Non-Patent Citations (1)
Title |
---|
基于节点概率的路径覆盖测试数据进化生成;夏春艳等;《软件学报》;20160113;第802-813页 * |
Also Published As
Publication number | Publication date |
---|---|
CN108710575A (zh) | 2018-10-26 |
US20210209008A1 (en) | 2021-07-08 |
US11720477B2 (en) | 2023-08-08 |
WO2019223247A1 (zh) | 2019-11-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108710575B (zh) | 基于路径覆盖测试用例自动生成的单元测试方法 | |
CN109739755B (zh) | 一种基于程序追踪和混合执行的模糊测试*** | |
CN110543421B (zh) | 基于测试用例自动生成算法的单元测试自动执行方法 | |
US8898647B2 (en) | Method and apparatus for test coverage analysis | |
Bertolino et al. | Automatic generation of path covers based on the control flow analysis of computer programs | |
US5761408A (en) | Method and system for generating a computer program test suite using dynamic symbolic execution | |
US8291399B2 (en) | Off-line program analysis and run-time instrumentation | |
US8739145B2 (en) | Super nested block method to minimize coverage testing overhead | |
EP0428560A1 (en) | Machine process for translating programs in binary machine language into another binary machine language | |
US20100162217A1 (en) | Debugging System Using Static Analysis | |
CN108763064B (zh) | 一种基于黑盒函数与机器学习的代码测试生成方法和装置 | |
US8752007B2 (en) | Automatic generation of run-time instrumenter | |
CN111026660A (zh) | 一种基于专家***知识库的渗透测试方法 | |
Zhang | SymPas: symbolic program slicing | |
CN104750608A (zh) | 一种程序中基于动态符号执行的自动错误定位方法 | |
CN113935041A (zh) | 面向实时操作***设备的漏洞检测***及方法 | |
WO2002001357A2 (en) | A method for allowing execution management of optimized code | |
Alalfi et al. | Automating coverage metrics for dynamic web applications | |
CN115617410B (zh) | 驱动接口识别方法、装置、设备及存储介质 | |
CN115858404A (zh) | 一种基于eda的图形用户界面的测试*** | |
CN109002723A (zh) | 一种分段式符号执行方法 | |
Gerasimov et al. | Reachability confirmation of statically detected defects using dynamic analysis | |
CN111221731B (zh) | 一种快速获取到达程序指定点测试用例的方法 | |
CN114691197A (zh) | 代码分析方法、装置、电子设备和存储介质 | |
CN109977019B (zh) | 一种基于增量采样的编译器优化序列测试方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220523 Address after: 510640 No. five, 381 mountain road, Guangzhou, Guangdong, Tianhe District Patentee after: SOUTH CHINA University OF TECHNOLOGY Patentee after: BEIMING SOFTWARE Co.,Ltd. Address before: 510640 No. five, 381 mountain road, Guangzhou, Guangdong, Tianhe District Patentee before: SOUTH CHINA University OF TECHNOLOGY |
|
TR01 | Transfer of patent right | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20181026 Assignee: Huizhou TCL Yunchuang Technology Co.,Ltd. Assignor: SOUTH CHINA University OF TECHNOLOGY Contract record no.: X2022440000252 Denomination of invention: A unit test method based on automatic generation of path coverage test cases Granted publication date: 20201124 License type: Common License Record date: 20221021 |
|
EE01 | Entry into force of recordation of patent licensing contract | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20181026 Assignee: BEIMING SOFTWARE Co.,Ltd. Assignor: SOUTH CHINA University OF TECHNOLOGY Contract record no.: X2022980018740 Denomination of invention: A unit test method based on automatic generation of path coverage test cases Granted publication date: 20201124 License type: Common License Record date: 20221025 |
|
EE01 | Entry into force of recordation of patent licensing contract |