Method for automatically generating data flow test case based on particle swarm optimization algorithm
A technology of particle swarm algorithm and test case, which is applied in the fields of electrical digital data processing, software testing/debugging, calculation, etc., and can solve problems such as the inability to better guide the evolution of test cases and the difficulty of particle swarm algorithm to converge to the global optimum.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0047] A verification experiment of the present invention, the present invention is below described in further detail in conjunction with accompanying drawings and specific embodiments:
[0048] like figure 1 , The method of automatically generating test data stream based on particle swarm, firstly PSO improvements, including the design of new fitness function according to the distance from the branch, to adjust the update rate of particle inertia weight factor, and to provide a chaotic perturbation strategy; then automatically generate improved particle swarm test set data stream.
[0049] Specifically, the following steps:
[0050] Step 1: obtaining the program under test P, P to parse the corresponding control flow graph constructed of CFG (P), and the set of variables obtained P N.
[0051] Step 2: The method of depth-first traversal traversal CFG (P), to obtain all paths Path (P) program.
[0052] Step 3: Since the bottom up to each of the executable paths, according to N get...
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