Data flow test case generating method
A test case generation and test case technology, applied in software testing/debugging, genetic models, etc., can solve problems such as less research on test case automatic generation algorithms, slow algorithm convergence, fitness function design, etc., and achieve strong practical significance , increase the convergence speed, and improve the effect of the fitness function
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0016] The method for generating data flow test cases of the present invention uses a genetic algorithm to search for test cases that meet the data flow test criteria. In the method, the degree of fitness is calculated by the following formula:
[0017]
[0018] Among them, fitness(t) represents fitness, m represents the number of paths covered by test case t, n represents the total number of paths that the program needs to cover, and p represents the branch predicates contained in the uncovered (n-m) paths Quantity, the branch predicate is the conditional expression of the program branch, α represents the influence weight factor of the branch predicate on the fitness, take 0.5, f i (x) represents the branch function value of the i-th branch of the program, and the construction method of the branch function is:
[0019] (1) If the branch predicate is A>B or A≥B, then the branch function is ;
[0020] (2) If the branch predicate is A ;
[0021] (3) If the branch predicat...
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