Method for determining function point changing through code analysis

A technology for analyzing code and function points, applied in the direction of program control devices, etc., can solve the problems of unable to truly locate the code object, the risk of software changes cannot be considered, and the change of the callee cannot be known, so as to achieve precise positioning and code analysis. full effect of results

Active Publication Date: 2008-10-15
ARRAY NETWORKS BEIJING
View PDF0 Cites 52 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Commonly used software version management tools use traditional file-based analysis methods. In the process of comparing text differences, they can only locate text changes at the line or character level, and cannot truly locate code objects in software source files (such as : changes in functions, classes, constants, variables, etc.), and it is impossible to know the changes of the callee after the changes of these code objects
Therefore, the risk of software changes cannot be considered, and targeted testing cannot be carried out

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for determining function point changing through code analysis
  • Method for determining function point changing through code analysis
  • Method for determining function point changing through code analysis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0013] The present invention will be described in detail below with reference to the drawings and embodiments.

[0014] Such as figure 1 , figure 2 , image 3 As shown, the method of this embodiment includes the following steps:

[0015] 1. Through the code analysis user interface, the user adds the source code of the lower version (version 1) and higher version (version 2) (such as figure 2 Shown).

[0016] 2. The user configures the name of the functional interface function that the quality assurance department ultimately needs to test through the code analysis user interface, and the name is represented by a regular expression.

[0017] 3. The semantic diff (difference change) analyzer in the code analysis service module performs semantic-level analysis on the difference between version 1 and version 2 source code (such as C / C++, Java code), and calls the corresponding language analysis module. Find and collect all changes at the text level, including source code additions, ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method for determining the change of functional points by analysing the change of codes: firstly, all changes of source codes to be compared are searched and collected on textual level and a diff result is generated; secondly, an incidence relation between the modified source codes and an interface function or method by analysing the structure relation of the source codes to be compared and a call graph result is generated; the diff result and the call graph result are finally analysed, all affected interface functions or methods are output in the form of graph or statement to generate an affected result graph. By the code analysis, the external function point which is affected when the version is updated, thus effectively assisting the testing and updating operation of new software versions.

Description

Technical field [0001] The invention relates to a software code management method, in particular to a method for determining the function point change by analyzing the code change. Background technique [0002] With the increasing scale of software, the software development team is also rapidly expanding. How to ensure the stability of the new version of the software has become a hot topic in software management. Assuming that the currently used software system is stable, and the hardware environment, network environment, and customer usage patterns (such as concurrency) faced by the system have not undergone drastic changes, the risk of inducing a new version of the software system failure often lies in the software itself. In the traditional software development process, software changes are often proactively declared by the developers. However, the accuracy of such declarations cannot be verified and depends entirely on the quality of the developers. With the expansion of the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
Inventor 金龙飞王胜军王兴梁
Owner ARRAY NETWORKS BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products