A Genetic Algorithm-Based Method for Automatically Generating Data Flow Test Cases
A test case and genetic algorithm technology, applied in the field of automatic generation of data flow test cases based on genetic algorithm, can solve the problems of no comparison of maximum fitness value of offspring, destruction of good genes, low algorithm efficiency, etc., to improve algorithm efficiency, Ensure the transmission of good genes and improve the effect of efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0038] Such as figure 1 As shown, the present invention provides a method for automatically generating a data flow test case based on a genetic algorithm, and the steps are as follows:
[0039] (1) Using a pair (def, use) for a definition in the program P under test, find out the 1 Beginning and going through the dominator path dom of the use node use defining the node def def (n 1 , use);
[0040] dom def (n 1 ,use)=dom(n 1 , def)∪ dom(def, use)
[0041] Among them, dom(n 1 , def) means that by the entry node n 1 The path consisting of the nodes that must pass through to define the node def, dom(def, use) means the path composed of the nodes that must pass through from the definition node def to the use node use;
[0042] (2) According to the set genetic algorithm parameters and the value range and precision of the input variables, randomly generate the initial population InitPop, and assign it to the current population CurrentPop, that is, CurrentPop=InitPop, and as...
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