A method for generating unit test cases based on method similarity
A technology of unit testing and test cases, which is applied to the generation of unit test cases in software testing, software testing and program analysis, and can solve the problems of low quality and slow generation of unit test cases
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0115] In order to better understand the technical content of the present invention, specific embodiments are given and described below in conjunction with the accompanying drawings.
[0116] figure 1 It is a flow chart of a method for generating unit test cases based on method similarity implemented by the present invention.
[0117] A method for generating unit test cases based on method similarity is characterized by comprising the following steps.
[0118] S1 test cluster analysis, build the class hierarchy graph CHG of the source program based on the interface, the implementation between classes, and the generalization relationship. On this basis, analyze the access rights of members and methods of each class, and select non-private ones Members and methods build sets of accessible members and sets of accessible methods, which provide basic elements for subsequent building of unit test cases.
[0119] S2 distance matrix construction, extracting the return value type and...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com