CN-122018975-A - Software scale measurement method, device and equipment
Abstract
The invention discloses a software scale measurement method, a device and equipment, which are used for solving the problems that the existing software scale measurement method is complex in process, long in time consumption, strong in dependence on professional ability of measurement personnel and influences measurement accuracy and consistency. The method comprises the steps of determining functions of software to be measured, abstracting names of the functions to obtain abstract function names, determining scale values of the functions based on matching conditions of the abstract function names and a scale measurement dictionary, and determining the function scale of the software to be measured based on the scale values of the functions.
Inventors
- LIU LING
- QI XIANG
- LIAO QICHUN
- ZHOU CHUNSHAN
- YI XINGHUI
- XIAO XIUQIN
- Zhan Linhan
Assignees
- 中国移动通信集团设计院有限公司
- 中国移动通信集团有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251210
Claims (10)
- 1. A software scale measurement method, comprising: determining the function of the software to be measured, and carrying out abstract processing on the name of the function to obtain an abstract function name; determining a scale value of the function based on the matching condition of the abstract function name and a scale measurement dictionary; And determining the function scale of the software to be measured based on the scale value of the function.
- 2. The method according to claim 1, characterized in that: the scale measurement dictionary comprises a scale measurement dictionary catalog and corresponding quick scale values; the scale measurement dictionary catalog contains abstract function names of the software, and the abstract function names in the scale measurement dictionary catalog are used for matching with abstract function names to be measured; the fast scale value is a scale value corresponding to the abstract function name one by one.
- 3. The method of claim 1, wherein determining the scale value of the function based on the matching of the abstract function name to a scale metric dictionary comprises: under the condition that the abstract function name is successfully matched with a scale measurement dictionary, determining the fast scale value matched in the scale measurement dictionary as the scale value of the function; In the event that the abstract function name fails to match the scale metric dictionary, calculating a calculation scale value for the function, and recording the calculation scale value for the function as a scale value for the function.
- 4. A method according to claim 3, characterized in that the method further comprises: Storing the calculation scale value under the condition that the abstract function name fails to be matched with a scale measurement dictionary; When the data quantity of the calculation scale value corresponding to the abstract function name reaches a threshold value, adding the abstract function name and the corresponding calculation scale value into the scale measurement dictionary, wherein the calculation scale value is recorded as a quick scale value in the scale measurement dictionary.
- 5. The method according to any one of claims 1 to 4, further comprising: Constructing the scale metric dictionary, comprising: collecting historical measurement data, wherein the historical measurement data comprises a demand analysis document and a scale meter, and the demand analysis document and the scale meter are used for indicating the functions of the software to be measured, the attributes of the software to be measured and the corresponding data details; Performing integrity check and validity check on the historical measurement data, and reserving trusted data, wherein the trusted data is divided into newly added function data and changed function data based on the function attribute of the software; carrying out abstract processing on the function name of the software to obtain an abstract function name, and forming the scale measurement dictionary catalog; determining a scale value of the function in the scale measurement dictionary based on a weighted average scale value of the function of the software and a corresponding standard deviation thereof, and a median scale value of the function of the software and a corresponding standard deviation thereof; And forming a scale measurement dictionary based on the scale measurement dictionary directory and the scale value of the software function, wherein the scale measurement dictionary directory is obtained by abstract processing of the function name based on the software.
- 6. The method of claim 5, wherein the step of determining the position of the probe is performed, The weighted average scale value is obtained by weighted calculation according to the quantity proportion of different scale values in the trusted data; and the median scale value is obtained according to the scale value of the intermediate position after the trusted data are sequenced.
- 7. The method of claim 5, wherein the integrity check comprises: checking whether the historical data simultaneously contains a requirement analysis document and a scale meter; Removing historical data with empty key fields in the scale quantity table by taking functions as granularity, wherein the key fields comprise at least one of functional users, functions, sub-processes, data movement types and data group records; The validity check includes: And eliminating invalid historical data, and verifying whether the function after eliminating the invalid historical data belongs to a user function requirement, whether the function granularity meets a function characteristic, whether a measurement result accords with a software measurement rule and whether the function meets business data interaction in the requirement analysis document.
- 8. A software scale measurement device, comprising: The first determining module is used for determining the function of the software to be measured, and carrying out abstract processing on the name of the function to obtain an abstract function name; the second determining module is used for determining the scale value of the function based on the matching condition of the abstract function name and the scale measurement dictionary; and the third determining module is used for determining the function scale of the software to be measured based on the scale value of the function.
- 9. A software scale measurement device comprising a processor and a memory for storing a computer program, the processor being arranged to invoke and run the computer program stored in the memory to perform the steps of the method according to any of claims 1 to 7.
- 10. A computer program product comprising a computer program which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
Description
Software scale measurement method, device and equipment Technical Field The present application relates to the field of software engineering, and in particular, to a method, an apparatus, and a device for measuring a software scale. Background With the rapid development of information technology, standardization and normalization of software engineering are important research points. The prior art realizes accurate evaluation of software development cost mainly from two dimensions of functional point analysis and scale measurement. On one hand, a technical framework for measuring the scale of software is constructed by a function point method, and on the other hand, a scientific and reasonable measuring flow is designed based on international standards and industry specifications. These schemes provide technical support for software project cost estimation and resource planning. The cosic method is one of the functional point methods recommended by the national standard, and is widely applied to the functional scale measurement of commercial application software and real-time systems. The method depends on detailed software data and the professional level of measuring personnel in practical application, and ensures the accuracy and consistency of measuring results. The existing COSMIC metric method requires software materials to be detailed enough to identify the traffic data flow and implement logic, but in practice many software materials cannot meet this requirement, making the method inapplicable. Meanwhile, the COSIC method needs to identify the data set and the data movement in the mapping stage, is complex in process and long in time consumption, has strong professional ability dependence on measuring staff, and different staff can obtain inconsistent results to influence measurement accuracy and consistency. Therefore, a software scale measurement method capable of reducing measurement difficulty, shortening time, improving application range and reducing influence of human factors is needed. Disclosure of Invention The application provides a software scale measurement method, which aims to solve the problems that the existing software scale measurement method is complex in process, long in time consumption, strong in dependence on professional ability of measurement personnel and influences measurement accuracy and consistency. In a first aspect, a software scale measurement method is provided. The method comprises the steps of determining functions of software to be measured, abstracting names of the functions to obtain abstract function names, determining scale values of the functions based on matching conditions of the abstract function names and a scale measurement dictionary, and determining the function scale of the software to be measured based on the scale values of the functions. With reference to the first aspect, in some possible implementations of the first aspect, the method is characterized by: the scale measurement dictionary comprises a scale measurement dictionary directory and corresponding quick scale values, wherein the scale measurement dictionary directory contains abstract function names of software, the abstract function names in the scale measurement dictionary directory are used for matching with abstract function names to be measured, and the quick scale values are scale values corresponding to the abstract function names one by one. With reference to the first aspect, in some possible implementation manners of the first aspect, determining the scale value of the function based on the matching situation of the abstract function name and the scale measurement dictionary includes determining a fast scale value matched in the scale measurement dictionary as the scale value of the function if the abstract function name and the scale measurement dictionary are successfully matched, calculating the calculation scale value of the function if the abstract function name and the scale measurement dictionary are failed to be matched, and recording the calculation scale value of the function as the scale value of the function. With reference to the first aspect, in some possible implementation manners of the first aspect, the method further includes storing a calculation scale value in case that the abstract function name fails to match with the scale measurement dictionary, and adding the abstract function name and the corresponding calculation scale value to the scale measurement dictionary when the data amount of the calculation scale value corresponding to the abstract function name reaches a threshold value, wherein the calculation scale value is recorded as a fast scale value in the scale measurement dictionary. With reference to the first aspect, in some possible implementation manners of the first aspect, the method further includes building a scale measurement dictionary, wherein the scale measurement dictionary includes collecting historical measurement data, the historical