Genetic-algorithm-based method for automatically generating data stream test cases
A test case and genetic algorithm technology, which is applied in the field of automatic generation of data flow test cases based on genetic algorithm, can solve the problems of no comparison of the maximum fitness value of offspring, destruction of good genes, low algorithm efficiency, etc., to improve algorithm efficiency, The effect of ensuring the transmission of excellent genes and improving the efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Example Embodiment
[0038] Such as figure 1 As shown, the present invention provides a method for automatically generating data flow test cases based on genetic algorithm, and the steps are as follows:
[0039] (1) For a definition use pair (def, use) in the tested program P, find out the entry node n 1 Start and go through the dominance path dom that defines the use of 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 the entry node n 1 The path composed of the nodes that must pass to define the node def, dom (def, use) represents the path composed of the nodes that must pass from the definition node def to the use node use;
[0042] (2) According to the set genetic algorithm parameters and the value range and accuracy of the input variables, randomly generate the initial population InitPop and assign it to the current population CurrentPop, namely CurrentPop=InitPop, and assign CurrentPop to the parent population Parent...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap