Method for evolving and generating path coverage test data facing defects
A path coverage test, defect-oriented technology, applied in the field of automatically generating test data that traverses the target path, can solve the problem that the program cannot run normally or can be found by the compilation system, cannot be detected by the compilation system, and the program running result is incorrect, etc. problems, to achieve high efficiency, improved effectiveness, and strong pertinence
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0030] Embodiments of the present invention will be described in detail below in conjunction with specific drawings and examples.
[0031] Step 1. Establishment of mathematical model
[0032] 1.1 Decision variables
[0033] Considering a program under test, because different input data will traverse different paths of the program, and may detect different defects on the path, therefore, when establishing a mathematical model of the defect-oriented path coverage test data generation problem, choose the program under test The input of is used as the decision variable, denoted as x(x 1 , x 2 ,...,x n ), where n is the number of data that needs to be input to run the program under test, x i , i 1.2,..., n is the component of the input data, which can be a real number, an integer, or even a character, etc. For example, in a bubble sorting program with 5 integers, n=5, x i , i=1, 2, . . . , 5 are integers.
[0034] 1.2 Constraint function
[0035] The path representation meth...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com