Test case generating method based on modified particle swarm algorithm
A technology for generating test cases and improving particle swarms. It is applied in software testing/debugging, computing, and artificial life. It can solve problems such as unreasonable fitness function design, enhance local exploration capabilities, improve generation efficiency, and improve solution accuracy. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0020] The present invention will be further described below in conjunction with the accompanying drawings and through specific embodiments.
[0021] figure 2 It is a flowchart of the core improved particle swarm algorithm in the method of the present invention.
[0022] The test case generation method described in the present invention optimizes the standard particle swarm algorithm, introduces a learning factor with a weight function, searches again, and improves it by factors such as reverse learning. According to the pros and cons of different branch nodes, Design a more reasonable fitness function evaluation, such as figure 1 shown, including the following steps:
[0023] Step 1: Randomly generate a set of test cases within the defined domain.
[0024] Step 2: Statically analyze the program under test. On the basis of the existing test case generation technology and the basic principle of the particle swarm algorithm, select the test coverage standard of branch covera...
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