A document processing method and apparatus, an electronic device, and a storage medium

By constructing and displaying the feature tree of a software project, the problem of testers not being able to fully grasp the overall project in agile development is solved, thereby improving test coverage and software security.

CN114296690BActive Publication Date: 2025-11-04AGRICULTURAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111642022.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2025-11-04
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

During agile development, testers cannot have a comprehensive grasp of the software project, resulting in unclear coverage of functional test cases with the project's functionalities, which poses security risks.

Method used

By identifying code functionalities based on the software project's development documents, constructing a functional tree, and visually displaying it on a preset interface, the relationships between system functionalities are intuitively shown.

Benefits of technology

It improved the comprehensiveness of software testing coverage, enhanced the security of application software, reduced the difficulty of obtaining project information, and reduced security risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114296690B_ABST
    Figure CN114296690B_ABST
Patent Text Reader

Abstract

A document processing method and device, electronic equipment and storage medium are disclosed. The method comprises: determining code function points according to project development files of a software project; constructing a function tree according to the association relationship between the code function points; and visually displaying the function tree on a preset interface. According to the embodiment, all functions of the system are displayed more intuitively and concisely in a tree structure, which helps the relevant personnel newly added to the system to quickly and clearly understand the system summary, improves the efficiency, improves the comprehensiveness of software test coverage to a certain extent, and thus enhances the security of application software.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of computer application, and particularly relate to a document processing method and device, electronic equipment and storage medium. BACKGROUND

[0002] With the development of Internet technology, the development and iteration of application programs gradually increase, and since agile development takes user needs as the core, the development of application software is carried out in an iterative and gradual manner. In the agile development process of application software, the software project is divided into multiple sub-projects when being built, and the design document of each sub-project cannot completely describe the overall situation of the system. In the development process of the software project, the tester cannot master the overall situation of the software project, resulting in limitations of software testing. For example, when performing function testing, the tester usually adopts a black box mode and cannot understand the internal situation of the software code. It is not clear whether the test case covers the incremental code in the software project, resulting in that the function test case set does not know the coverage of the function points of the software project, and the comprehensive testing of the software project cannot be realized, so that the developed application software has security risks. How to process the development documents of each sub-project in the agile development process to realize the full coverage of the project function has become an important method to improve the security of application software. SUMMARY

[0003] The present application provides a document processing method and device, electronic equipment and storage medium to realize the aggregation of code function points in the software project, provide visual function point display, reduce the difficulty of obtaining project information, reduce the security risks caused by the difficulty of project document query, and enhance the security of application software.

[0004] In a first aspect, the embodiments of the present application provide a document processing method, which comprises:

[0005] determining code function points according to project development files of a software project;

[0006] constructing a function tree according to the association relationship between the code function points;

[0007] visually displaying the function tree on a preset interface.

[0008] In a second aspect, the embodiments of the present application further provide a document processing device, which comprises:

[0009] a function point module configured to determine code function points according to project development files of a software project;

[0010] a function tree module configured to construct a function tree according to the association relationship between the code function points;

[0011] An interface display module is configured to visually display the function tree on a preset interface.

[0012] In a third aspect, an electronic device is provided, and the electronic device comprises:

[0013] one or more processors;

[0014] a memory configured to store one or more programs,

[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the document processing method according to the first aspect.

[0016] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the document processing method according to any one of the first aspect.

[0017] In the technical solution provided by the embodiments of the present application, the code function points are determined according to the project development files of the software projects, the function tree is constructed according to the association relationships between the code function points, and the function tree is visually displayed on a preset interface. According to the embodiments of the present application, the function tree is constructed according to the association relationships between the code function points, so that all functions of the system are more intuitively and concisely displayed through the tree structure, which helps the relevant personnel newly added to the system to quickly and clearly understand the system summary, improves the efficiency, improves the comprehensiveness of software test coverage to a certain extent, and thus enhances the security of the application software. BRIEF DESCRIPTION OF DRAWINGS

[0018] Figure 1 A flowchart of a document processing method provided for the first embodiment of the present application is shown in FIG. 1.

[0019] Figure 2 A flowchart of a document processing method provided for the second embodiment of the present application is shown in FIG. 2.

[0020] Figure 3 A structure diagram of a tree structure provided in the second embodiment of the present application is shown in FIG. 3.

[0021] Figure 4 A structure diagram of a document processing device provided for the third embodiment of the present application is shown in FIG. 4.

[0022] Figure 5 A structure diagram of an electronic device provided for the fourth embodiment of the present application is shown in FIG. 5. DETAILED DESCRIPTION

[0023] The application will be described in further detail below with reference to the drawings and embodiments. It is to be understood that the specific embodiments described herein are intended to be illustrative only and not limiting of the application. In addition, it is to be understood that the drawings are diagrammatic and schematic and that for purposes of description of the exemplary embodiments, the drawing figures are not necessarily drawn to scale.

[0024] Embodiment one

[0025] Figure 1 A flow chart of a document processing method provided for the first embodiment of the application. The embodiment can be applicable to the unified processing of documents under agile development projects. The method can be executed by a document processing device, which can be implemented in hardware and / or software. The device can be implemented in hardware and / or software and can be generally configured in an electronic device. The method specifically includes the following steps:

[0026] S110, determining code function points according to project development files of the software project.

[0027] The software project can be a software-related project that a user wants to produce by obtaining the user's requirements, analyzing and following certain project development principles to take corresponding methods. The project development file can be referred to as a project size estimation document or a project development plan document. It can be understood that it is a normative document formed by software developers based on business requirements to estimate and count business function points and technical function points of system modules. The project development file can contain relevant project information of the project development, such as a related project introduction page, which can include project name information, project number information, etc. The project development file can also contain a module number page and can also include a project development log. The embodiment is not limited herein.

[0028] In the embodiment, the code function point can be used to represent the unit of business function provided by the information system for the user. The code function point is a specific business process that can be completed by a code alone. The number and quality of function points can be used to measure the size, capacity, and valuation of the information system. Specifically, when a software developer develops a software project, the software project can implement multiple functions, and each function can be considered as a code function point.

[0029] In the embodiment, the software developer can determine the relevant code function points based on the relevant project information in the project development file, which can be the project name, the time required for completing the project, the relevant function name, etc., and can extract the relevant project information in the project development file to determine the entity containing the relevant project information corresponding to the code function points according to the relevant project information, or can find the places of increase or modification in the source code by analyzing and comparing the changes of the source code to determine the code function points through the code analysis.

[0030] S120, constructing a function tree according to the association relationship between the code function points.

[0031] The association relationship can be understood as the relationship between the code function points determined by the project development file. The function tree can be understood as a tree structure representing the function of the project development file.

[0032] In the embodiment, the relationship between the code function points determined by the project development file can construct a tree structure function tree. It can be understood that since each code function point has a corresponding function module, the code function points can be classified according to the relevant function modules in the project information in the project development file, and the root node, the sub-node and the leaf node of the function tree can be obtained for each function classification to form a function tree structure. The leaf node is the bottom node, and only the leaf node can store data information.

[0033] S130, visualizing the function tree on a preset interface.

[0034] The preset interface can be a pre-configured visualization interface, and one or more display controls can be configured in the preset interface, and each display control can be used to display the code function points in the function tree.

[0035] In the embodiment, the preset interface can be visualized according to the configuration parameters, and the function tree can be drawn in the preset interface to realize the display of each code function point. It can be understood that each code function point in the function tree can be a node of the function tree, and the connection between different nodes can be used to display the relationship between different code function points, which can reduce the difficulty of using the project development file for the user.

[0036] According to the technical scheme provided by the embodiment of the present application, the code function points are determined according to the project development file of the software project; the function tree is constructed according to the correlation between the code function points; and the function tree is visually displayed on the preset interface. According to the correlation between the code function points, the function tree is constructed in the embodiment of the present application, so that all the functions of the system are more intuitively and concisely displayed through the tree structure, which helps the related personnel newly added to the system to quickly and clearly understand the system summary, improves the efficiency, improves the comprehensiveness of software test coverage to a certain extent, and thus enhances the security of the application software.

[0037] Optionally, the project development file comprises at least one of the following: a project scale estimation document, a project development log and original code annotation.

[0038] The project scale estimation document can be understood as a normative document formed by the estimation and statistics of the business function points and the technical function points of the developer based on the related business requirements. For example, the project scale estimation document can include a "project introduction" sheet and a "module number" sheet. The project development log can be used to record the execution process of the code function points. The original code annotation can be understood as the relevant annotation of the original code, so as to more conveniently obtain the related project information of the project development file.

[0039] For example, Table 1 is the "module number" sheet table in the project scale estimation document in the embodiment of the present application. As shown in Table 1, the "module number" sheet table includes: function module, function number, function name, function classification, data element, file type reference number, and estimation condition and assumption premise.

[0040] Table 1: "Module number" sheet table in project scale estimation document

[0041]

[0042]

[0043] It should be noted that the "module number" sheet table in the project scale estimation document includes but is not limited to Table 1, and can also include: system, for example, the name of the system in the service directory; module, for example, the name of the module in the service directory; the function number corresponding to the function module, for example, RM001, RM002, etc.; the function description corresponding to the function name; complexity; adjustment coefficient, unadjusted function points, etc.

[0044] For example, Table II is a "Project Introduction" sheet in a project size estimation document in an embodiment of the present application. As shown in Table II, the "Project Introduction" sheet includes: project name, project number, total functional point size, total business functional point size, total technical functional point size, estimation time, and estimation basis document.

[0045] Table II: "Project Introduction" sheet in a project size estimation document

[0046]

[0047]

[0048] Optionally, the document processing method provided by the embodiment of the present application can further include:

[0049] receiving control information of the function tree in the preset interface; and adjusting the display information corresponding to the code function points in the preset interface according to the control information.

[0050] The control information can be information for adjusting the display effect of the received function, and the control information can include a code function point to be searched or a software project to be searched.

[0051] In the embodiment of the present application, the user can input the control information of the function tree in the preset interface. For example, the code function point to be searched can be input through a query window, or the code function point corresponding to the leaf node of the function tree can be searched by clicking the leaf node. Further, after obtaining the control information, the display information of one or more code function points in the preset interface can be changed according to the control information. For example, the function code point can be displayed as the center position of the preset interface, or the description information associated with the function code point can be displayed in the form of a new card or a new page.

[0052] Embodiment Two

[0053] Figure 2 A flowchart of a document processing method provided by the second embodiment of the present application. The present embodiment is further refined on the basis of the above-mentioned embodiments. The five-tuple entity of the code function points, the function tree, and the display control for displaying the code function points according to the project development file of the software project is further refined. Specifically, the method can include the following steps:

[0054] S210, extracting project information in the project development file, wherein the project information at least includes: project name, estimation time, function module, function name, and function description.

[0055] The project information can be understood as relevant project information in the project development file, and can include: project name, estimated time, function module, function name, and function description. The project name can be understood as the name of a project, for example, can be XXX project. The estimated time can be understood as the time estimated to complete a project file in the project development file. It should be noted that the estimated time can be a time on a certain day in the past, or a time on a certain day in the future.

[0056] In this embodiment, the function module can be a general term for a technical function point with a project business objective. It can include function module 1, function module 2, function module 3, and the like. The function name can be the name of a technical function point, and can include: new member registration, member login, member information modification, member information report generation, member information modification, member information deletion, and the like. The function description can be understood as an extended description of the technical function classification. It should be noted that the project development file contains multiple function modules, each function module has a corresponding function name, and also has a corresponding code function point. Each function name has a corresponding function description. Among them, one function module can correspond to multiple code function points, or can correspond to one code function point. For example, the function name of function module 1 is "member information modification", and the corresponding code function points can be code function point 1 and code function point 2; or can only correspond to code function point 1.

[0057] In this embodiment, the project information can be extracted from the project development file, thereby constructing an entity composed of the project information corresponding to the code function point for the next step of operation.

[0058] S220, constructing a five-tuple entity corresponding to the code function point according to the project information.

[0059] The five-tuple entity can be understood as a set of entities composed of five elements: project name, estimated time, function module, function name, and function description.

[0060] In this embodiment, based on the project information in the project development file: project name, estimated time, function module, function name, and function description, the five-tuple entity composed of five elements: project name, estimated time, function module, function name, and function description corresponding to the code function point can be constructed according to the obtained project information.

[0061] Optionally, it also includes: removing the five-tuple entity with repetition.

[0062] In this embodiment, while constructing the corresponding five-tuple entity of the code function point according to the project information in the project development file, the five-tuple entity with repetition needs to be removed.

[0063] S230, classify each code function point according to the function module in the corresponding five tuple entity.

[0064] The classification can be understood as a way of classifying code function points according to the function module in the five tuple entity corresponding to the project information. Elements with the same function module are classified into one category.

[0065] In this embodiment, when classifying each code function point according to the function module in the corresponding five tuple entity, one function module can correspond to multiple function categories. According to the different function names, the function categories corresponding to the same function module can be the same or different. For example, the function module 1 can correspond to the function categories "EI external input" and "EQ external input". When the function names are "new member registration", "member login" and member information modification, the corresponding function categories are "EI external input", "EQ external input" and "EI external input" respectively. It should be noted that different function modules can correspond to the same function category or different function categories. For example, the function module 1 can be "EQ external input", and the function module 2 can also be "EQ external input". This embodiment does not limit this.

[0066] In this embodiment, each code function point can be classified according to the function module in the five tuple entity corresponding to the project information of the project information.

[0067] S240, for each classification, the corresponding function module is taken as the root node of the function subtree of the function tree.

[0068] The root node of the function subtree can be understood as a component of the function tree, and can also be referred to as a tree root. There is only one root node in all non-empty function trees.

[0069] In this embodiment, after classifying each code function point according to the function module in the corresponding five tuple entity, the corresponding function category can be found for each function module. For each function category, the corresponding function module is taken as the root node of the function subtree of the function tree. There is only one root node, and there can be multiple non-intersecting child nodes under the root node of the function subtree of the function tree.

[0070] S250, the function name of the code function point is taken as the child node of the corresponding root node in each classification.

[0071] The child node can be understood as a subordinate node of the root node of the function subtree.

[0072] In the embodiment, for each function classification, the function module corresponding to the function classification is taken as the root node of the function subtree of the function tree, and the function name of the code function point is taken as the sub-node of the root node corresponding to the root node of the function subtree of the function tree, and the sub-node can further include the leaf node.

[0073] S260, the project name, the estimated time and the function description of the corresponding code function point are stored in the leaf node of each sub-node.

[0074] The leaf node can be understood as the node without sub-node (i.e. degree 0) in the function tree. The leaf node is also called terminal node, and can store data information.

[0075] In the embodiment, in each function classification, the function name of the code function point is taken as the sub-node of the root node of the function subtree of the function tree, and then the project name, the estimated time and the function description of the code function point corresponding to the sub-node are stored in the leaf node of each sub-node, so that the related information of the estimated time meeting the development time can be found in the leaf node of the function tree.

[0076] S270, the display control of the preset interface configuration is acquired.

[0077] The display control can encapsulate data and method, has its own attribute and method, and the attribute can also control the display control to access the function tree node. The display control can include user interface control, chart control, report control, table control, image processing control, document processing control and the like. Different display controls can display the information of the function tree node in different forms.

[0078] In the embodiment, one or more display controls can be pre-configured in the preset interface, each display control can be located at different positions of the preset interface, and different display controls can be displayed or hidden in different cases. Specifically, one or more display controls can be configured for the preset interface through the configuration file, and the configuration file can include the type, display state and position of the preset interface of each display control.

[0079] S280, the binding relationship between the node in the function tree and the display control is generated.

[0080] The binding relationship can be the corresponding relationship between the node in the function tree and the display control. The display control can display the information represented by the corresponding node according to the binding relationship. For example, the display control can display the project name, the estimated time and the function description stored in the leaf node of the function tree.

[0081] Specifically, a binding relationship can be established between a node included in the function tree and a display control, the binding relationship can be determined according to a position of the node in the function tree, or the binding relationship can be determined according to a type of information stored in the node in the function tree.

[0082] S290, displaying the quintuple entity of the code function point in the display control according to the binding relationship.

[0083] In the embodiment of the application, the code function points corresponding to the nodes in the function tree can be read, and the quintuple entity corresponding to each code function point can be obtained, and the quintuple entity can be displayed in the corresponding display control according to the binding relationship.

[0084] In the technical solution provided by the embodiment of the application, project information in a project development file is extracted, and a quintuple entity corresponding to a code function point is constructed according to the project information. Each code function point is classified according to a function module in the corresponding quintuple entity. For each classification, the corresponding function module is taken as a root node of a function subtree of a function tree. The function name of the code function point is taken as a sub-node of the corresponding root node in each classification. The project name, estimated time and function description of the corresponding code function point are stored in the leaf node of each sub-node. A display control configured in a preset interface is obtained, a binding relationship between each display control and a node in the function tree is generated, and the quintuple entity of the code function point is displayed in the display control according to the binding relationship. In the embodiment of the application, the corresponding function module is taken as the root node of the function subtree of the function tree, and the function name of the code function point is taken as the sub-node of the corresponding root node in each classification, so that all functions of the system are displayed more intuitively and concisely through the tree structure, which helps the relevant personnel who newly join the system to quickly and clearly understand the system summary, facilitates the relevant personnel to locate a specific project according to the function tree to find specific design information, and improves the comprehensiveness of software test coverage, thereby enhancing the security of the application software.

[0085] Further, on the basis of the above-mentioned embodiment of the application, the control information includes function query information, and correspondingly, the adjusting of the display information corresponding to the code function point in the preset interface according to the control information includes:

[0086] finding a leaf node corresponding to the function query information in the function tree, determining a display position of a display control corresponding to the leaf node, and adjusting the preset interface according to the display position so that the leaf node is located at the center of the preset interface.

[0087] In the embodiment of the present application, the control information can include function query information, the user can input the function query information in the preset interface, the corresponding leaf node can be found in the function tree according to the function name or function identifier in the function query information, the current position of the leaf node in the preset interface can be determined through the display control bound to the leaf node, the display position of the display control can be adjusted to the center of the preset interface, that is, the function tree is displayed in the preset interface with the leaf node as the center.

[0088] For example, in order to better understand the document processing method, Figure 3 A structure diagram of a tree structure provided in the second embodiment of the present application is shown in the figure, wherein A is a root node of the tree structure; B, C and D are child nodes of the root node; E and H are child nodes of the sub-tree; F, G, I, J, K, L and M are leaf nodes of the child nodes. The specific steps of the document processing method can be as follows:

[0089] a1, collect project size estimation documents of software project historical sub-projects. Based on the project size estimation documents, analyze project name information, estimated time, function module, function name, function description and other information.

[0090] a2, according to the content of each row in the function name column in the "module number" sheet, generate a code function point entity, which is represented by a five-tuple entity. The "module number" sheet in the project size estimation document can be as shown in Table 1.

[0091] The five-tuple entity can include: function module, function name, function description, project name and estimated time. After analyzing all the project size estimation documents, a set N is obtained, and the elements in N are all the parsed five-tuple entities.

[0092] a3, classify the elements in set N by function module, and elements with the same function module are classified into one category. N is divided into M0, M1,..., Mn. n is the number of function module values in the elements in set N after deduplication.

[0093] a4, start drawing the function tree, determine the root node A of the function tree, and write the system name in A.

[0094] a5, the root node A of the function tree has n non-intersecting sub-trees, which are M0, M1,..., Mn.

[0095] a6, the root node Oi of the Mi sub-tree, and the value of the function module in Mi after deduplication is written in Oi.

[0096] a7. Mi has j disjoint subtrees, namely Xi0, Xi1, Xi2, ..., Xij, where j = the number of elements in set Mi.

[0097] The root node of the subtree a8 and Xij is Zij, and the contents of Zij are written as the value of the function name in the j element of the Mi set.

[0098] a9. The Xij subtree has only one leaf node. The content of the leaf node is written as [the value of the item name in the j element of the Mi set] + [the value of the time in the j element of the Mi set] + [the value of the function description of the item name in the j element of the Mi set].

[0099] Example 3

[0100] Figure 4 This is a schematic diagram of a document processing device provided in Embodiment 3 of the present invention. The document processing device provided in this embodiment can be implemented by software and / or hardware, and can be configured in a server to implement a document processing method according to an embodiment of the present invention. Figure 4 As shown, the device may specifically include: a function point module 410, a function tree module 420, and an interface display module 430.

[0101] Among them, the function point module 410 is used to determine the code function points according to the project development documents of the software project.

[0102] Function tree module 420 is used to construct a function tree based on the relationship between the function points of each code.

[0103] The interface display module 430 is used to visually display the function tree on a preset interface.

[0104] In the technical solution provided by this invention, the function point module determines code function points based on the software project's development documents; the function tree module constructs a function tree based on the relationships between the code function points; and the interface display module visualizes the function tree on a preset interface. This invention, by constructing a function tree based on the relationships between the code function points, allows for a more intuitive and concise display of all system functions through a tree structure. This helps new system users quickly and clearly understand the system overview, improves efficiency, and to some extent enhances the comprehensiveness of software testing coverage, thereby strengthening the security of the application software.

[0105] Optional, the function point module 410 includes:

[0106] The information extraction unit is used to extract project information from the project development documents, wherein the project information includes at least: project name, estimated time, functional modules, function names and function descriptions.

[0107] An entity construction unit is configured to construct a five-tuple entity corresponding to the code function point according to the project information.

[0108] Optionally, the device further comprises: removing the five-tuple entity with repetition.

[0109] Optionally, the function tree module 420 comprises:

[0110] A function module classification unit is configured to classify the code function points according to the function modules in the corresponding five-tuple entity.

[0111] A root node unit is configured to take the corresponding function module as a root node of a function sub-tree of the function tree for each classification.

[0112] A sub-node module is configured to take the function name of the code function point as a sub-node of the corresponding root node in each classification.

[0113] A storage unit is configured to store the project name, estimated time and function description of the corresponding code function point in the leaf node of each sub-node.

[0114] Optionally, the interface display module 430 comprises:

[0115] A control determination unit is configured to obtain a display control of the preset interface configuration.

[0116] A relationship binding unit is configured to generate a binding relationship between the nodes in the function tree and the display control.

[0117] An entity display unit is configured to display the five-tuple entity of the code function point in the display control according to the binding relationship.

[0118] Optionally, the device further comprises: a display control module configured to receive control information of the function tree in the preset interface; and adjust the display information of the code function point in the preset interface according to the control information.

[0119] Optionally, the display control module is specifically configured to: find a leaf node corresponding to the function query information in the function tree; determine a display position of a display control corresponding to the leaf node; and adjust the preset interface according to the display position so that the leaf node is located at the center of the preset interface.

[0120] The document processing device provided in the embodiments of the present application can execute the document processing method provided in any of the embodiments of the present application, and has the corresponding function modules and beneficial effects of the execution method.

[0121] Embodiment Four

[0122] Figure 5 A structural schematic diagram of an electronic device provided in Embodiment Four of the present application is shown in FIG. 4, which includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of processors 510 in the device can be one or more, and one processor 510 is taken as an example in the description below; Figure 5 The processor 510, the memory 520, the input device 530, and the output device 540 in the device can be connected through a bus or other means, and the connection through a bus is taken as an example in the description below. Figure 5 Figure 5 The memory 520, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as program instructions / modules corresponding to the document processing method in the embodiments of the present application (for example, the function point module 410, the function tree module 420, and the interface display module 430 in the document processing device). The processor 510 executes various function applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 520, that is, implements the above-mentioned document processing method.

[0123] The memory 520 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and application programs required by at least one function; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory 520 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some examples, the memory 520 can further include a memory remotely arranged with respect to the processor 510, which can be connected to the device through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0124] The input device 530 can be used to receive input digital or character information, and to generate key signal inputs related to the user settings and function control of the device. The output device 540 can include a display device such as a display screen.

[0125] Embodiment Five

[0126] The present application also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to execute a document processing method, which includes:

[0127] determining code function points according to project development files of software projects;

[0128] constructing a function tree according to the association relationships between the code function points;

[0129] constructing a function tree according to the association relationships between the code function points; ​

[0130] The function tree is visualized on a preset interface.

[0131] Of course, the storage medium provided by the embodiment of the present application includes computer executable instructions, which are not limited to the method operations described above, but can also perform related operations in the document processing method provided by any embodiment of the present application.

[0132] Through the above description of the embodiments, those skilled in the art can clearly understand that the present application can be realized by means of software and necessary general hardware, and of course can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a floppy disk, a read-only memory (ROM), a random access memory (RAM), a FLASH memory, a hard disk or an optical disk, etc., including a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods described in various embodiments of the present application.

[0133] It is worth noting that the embodiments of the above document processing device include various units and modules only according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy mutual distinction, and do not limit the protection scope of the present application.

[0134] Note that the above is only the preferred embodiment of the present application and the technical principle applied. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and those skilled in the art can make various obvious changes, readjustments and substitutions without departing from the scope of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments, and can include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A document processing method, characterized in that, The method includes: The five-tuple entity corresponding to the code function point is determined according to the project development document of the software project. The five-tuple entity includes project name, estimated time, function module, function name and function description. The estimated time is the estimated completion time of the project document in the project development document. The function name is the name of the code function point. One function module corresponds to at least one code function point. Construct a function tree based on the relationships between the various code function points; The function tree is then visualized on a preset interface; The step of constructing a function tree based on the relationships between the various code function points includes: The root node of the functional tree is determined to be the system name, wherein the root node of the functional tree has non-overlapping subtrees; Each of the code functional points is classified according to the functional modules in the corresponding quintuple entity; For each of the aforementioned categories, the corresponding functional module is taken as the root node of the functional subtree of the functional tree; Within each of the aforementioned categories, the function name of the code function point is respectively used as the child node of the corresponding root node; The leaf nodes of each child node store the project name, estimated time, and function description corresponding to the code function point.

2. The method according to claim 1, characterized in that, The process of determining code functionalities based on the software project's development documents includes: Extract project information from the project development files, wherein the project information includes at least: project name, estimated time, functional modules, function names, and function descriptions; Construct the quintuple entity corresponding to the code function point based on the project information.

3. The method according to claim 2, characterized in that, Also includes: Remove entities with duplicate quintuples.

4. The method according to claim 1, characterized in that, The step of visually displaying the function tree on a preset interface includes: Obtain the display controls configured in the preset interface; Generate the binding relationship between the constituent nodes in the function tree and the display controls; According to the binding relationship, the display control displays the quintuple entity of the code function point.

5. The method according to any one of claims 1-4, characterized in that, Also includes: The system receives control information from the function tree on the preset interface. Adjust the display information corresponding to the code function points in the preset interface according to the control information.

6. The method according to claim 5, characterized in that, The control information includes function query information. Correspondingly, adjusting the display information corresponding to the code function points within the preset interface based on the control information includes: Find the leaf node corresponding to the function query information within the function tree; Determine the display position of the display control corresponding to the leaf node; Adjust the preset interface according to the display position so that the leaf node is located in the center of the preset interface.

7. A document processing apparatus, characterized in that, The device further includes: The function point module is used to determine the five-tuple entity corresponding to the code function point based on the project development file of the software project. The five-tuple entity includes project name, estimated time, function module, function name and function description. The estimated time is the estimated completion time of the project file in the project development file. The function name is the name of the code function point. One function module corresponds to at least one code function point. The function tree module is used to construct a function tree based on the relationships between the function points described in the code. The interface display module is used to visually display the function tree on a preset interface; The functional tree module includes: The function tree root node unit is used to determine that the root node of the function tree is the system name, wherein the root node of the function tree has non-overlapping subtrees. The functional module classification unit is used to classify each of the code functional points according to the functional modules in the corresponding quintuple entity; The root node unit is used to take the corresponding functional module as the root node of the functional subtree of the functional tree for each of the categories. The child node module is used to assign the function name of the code function point as a child node of the corresponding root node within each of the categories. The storage unit is used to store the project name, estimated time, and function description corresponding to the code function point in the leaf nodes of each of the child nodes.

8. An electronic device, characterized in that, The electronic device includes: One or more processors; Memory, used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Project document display method and device, electronic equipment and storage medium

    CN109871357A