Unit test method which is automatically generated based on a path coverage test case
A path coverage test and automatic generation technology, which is applied in software testing/debugging, error detection/correction, instruments, etc., to achieve strong usability, wide application space, and improve test efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0032] The embodiment of the present invention will be further described below in conjunction with the examples, but the implementation of the present invention is not limited thereto. understand.
[0033] Such as figure 1 , the unit test method automatically generated based on the path coverage test case includes the following steps:
[0034]The first step is to input the source program to be tested, preprocess the source program file, analyze and compile the source code to generate a control flow graph (CFG); analyze each input, output, judgment, and loop branch, and use these Based on the information, draw the control flow graph (CFG) of the tested functional unit, such as image 3 shown. According to the judgment node in the control flow diagram, the path encoding table and node encoding table are generated to determine the dimension of the test case. After the control flow graph is obtained, the number of paths existing in the program under test is obtained according ...
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