Search

CN-121455449-B - Method and device for structured processing of software engineering elements, electronic equipment and medium

CN121455449BCN 121455449 BCN121455449 BCN 121455449BCN-121455449-B

Abstract

The application provides a structural processing method and device of a software engineering element, electronic equipment and a medium, and relates to the technical field of software development. The method comprises the steps of generating an engineering element list aiming at a plurality of types of software engineering objects of a preset software engineering, wherein each engineering element of the engineering element list is recorded with element identifications and basic attribute information of the engineering elements in the software engineering objects, constructing an element reference chain according to incidence relations among a plurality of engineering elements and the element identifications, wherein the element reference chain at least consists of source element identifications, target element identifications and incidence relation types, responding to a change event aiming at a first engineering element, determining affected engineering elements according to the element identifications and the element reference chain of the first engineering element, and verifying the affected engineering elements according to a verification list generated aiming at the affected engineering elements. The application can determine the affected engineering elements based on the unified engineering elements and element reference chains, and improves the efficiency of software development and version release.

Inventors

  • GAO YUAN
  • AI RUN

Assignees

  • 宇动源信息技术股份有限公司

Dates

Publication Date
20260505
Application Date
20260107

Claims (8)

  1. 1. A method for structured processing of software engineering elements, the method comprising: Generating an engineering element list of a plurality of types of software engineering objects aiming at a preset software engineering, wherein each item in the engineering element list is recorded with element identifications and basic attribute information of engineering elements in the software engineering objects, and the engineering elements of the plurality of types of software engineering objects at least comprise part or all of functional requirements, use cases, interfaces and test cases; constructing at least one element reference chain according to the association relations among a plurality of engineering elements and element identifiers of the engineering elements, wherein the element reference chain at least comprises a source element identifier, a target element identifier and an association relation type; In response to a change event for a first engineering element, determining an affected engineering element according to an element identification of the first engineering element and the element reference chain; Verifying the affected engineering elements according to a verification list generated for the affected engineering elements; The element reference chain further includes an effective version range, the determining, in response to a change event for a first engineering element, an affected engineering element according to an element identification of the first engineering element and the element reference chain, including: Responding to a change event of the first engineering element in a target version update point, and determining a second engineering element in a first element reference chain corresponding to the first engineering element according to an element identifier of the first engineering element; determining whether the first element reference chain is effective according to the current version of the first engineering element, the current version of the second engineering element and the effective version range of the first element reference chain in the engineering element table; if the first element reference chain is effective, determining that the second engineering element of the current version is the affected engineering element; If the current versions of the first engineering element and the second engineering element are not in the valid version range of the first element reference chain, determining the affected engineering element according to the element identifier of the first engineering element and the element reference chain, and further comprising: Acquiring a version change diagram of the preset software project, wherein a plurality of nodes of the version change diagram are a plurality of version update points of the preset software project, the connection relation among the nodes is the relation of the plurality of version update points, and each node records the version change of project elements in the corresponding version update point; Determining whether the first engineering element and the second engineering element have historical versions within the effective version range according to the version updating point of the current version of the first engineering element and the version updating point of the current version of the second engineering element through the version change diagram; if so, determining the second engineering element of the current version as the affected engineering element.
  2. 2. The method of claim 1, wherein the determining that the second engineering element of the current version is the affected engineering element comprises: Generating an attribute expansion table of a plurality of types of software engineering objects aiming at the preset software engineering, wherein each expansion element in the attribute expansion table records expansion attribute information of a corresponding engineering element, and each expansion element is associated with each engineering element through element identification; Determining a version change event of the second engineering element between the historical version and the current version from the extended attribute information of the second engineering element; and if the version change event is a non-destructive change event, determining that the second engineering element of the current version is the affected engineering element.
  3. 3. The method of claim 1, wherein the method further comprises: Determining a multi-stage engineering element taking the second engineering element as a starting point according to the propagation depth of the association relation type; determining whether the second element reference chain is effective according to the current version of the second engineering element, the current version of the multi-level engineering element and the effective version range of the corresponding second element reference chain; and if the second element reference chain is effective, determining the engineering elements of the corresponding level as the affected engineering elements.
  4. 4. The method of claim 2, wherein the extended attribute information includes importance information, the method further comprising, prior to verifying the affected engineering element based on the verification manifest generated for the affected engineering element: calculating the influence scores of the affected engineering elements according to the association relation types of the affected engineering elements and other engineering elements and the importance information; And determining a regression verification mode of the affected engineering elements according to the influence scores of the affected engineering elements, wherein the verification list at least comprises the regression verification mode.
  5. 5. The method of claim 1, wherein prior to verifying the affected engineering element based on the generated verification manifest for the affected engineering element, the method further comprises: And if the affected engineering element is an interface engineering element and the interface engineering element has a predefined machine verifiable rule, generating a verification list of the interface engineering element according to the machine verifiable rule.
  6. 6. A structured processing device for a software engineering element, the device comprising: The system comprises an element table generating module, a program module and a program module, wherein the element table generating module is used for generating an engineering element table of a plurality of types of software engineering objects aiming at preset software engineering, each item in the engineering element table records element identifications and basic attribute information of the engineering elements in the software engineering objects, and the engineering elements of the plurality of types of software engineering objects at least comprise part or all of functional requirements, use cases, interfaces and test cases; The system comprises a reference chain generation module, a reference chain generation module and a storage module, wherein the reference chain generation module is used for constructing at least one element reference chain according to the association relation among a plurality of engineering elements and element identifiers of the engineering elements, and the element reference chain at least comprises a source element identifier, a target element identifier and an association relation type; the engineering element determining module is used for responding to a change event aiming at a first engineering element and determining an affected engineering element according to an element identifier of the first engineering element and the element reference chain; The engineering element verification module is used for verifying the affected engineering elements according to the verification list generated for the affected engineering elements; The element reference chain further comprises an effective version range, an engineering element determining module, a judging module and a judging module, wherein the engineering element determining module is specifically used for responding to a change event of the first engineering element in a target version update point, determining a second engineering element in a first element reference chain corresponding to the first engineering element according to an element identifier of the first engineering element, determining whether the first element reference chain is effective according to the current version of the first engineering element in the engineering element table, the current version of the second engineering element and the effective version range of the first element reference chain, and determining the second engineering element of the current version as the affected engineering element if the first element reference chain is effective; If the current version of the first engineering element and the second engineering element are not in the effective version range of the first element reference chain, the engineering element determining module is further configured to obtain a version change diagram of the preset software engineering, wherein a plurality of nodes of the version change diagram are a plurality of version update points of the preset software engineering, a connection relationship among the plurality of nodes is a relationship among the plurality of version update points, version changes of the engineering elements in the corresponding version update points are recorded in each node, and whether the first engineering element and the second engineering element have historical versions in the effective version range or not is determined according to the version update points of the current version of the first engineering element and the version update points of the current version of the second engineering element, and if so, the second engineering element of the current version is the affected engineering element.
  7. 7. An electronic device comprising a processor, a storage medium and a bus, the storage medium having recorded thereon program instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is operating, the processor executing the program instructions to perform the steps of the method for structured processing of software engineering elements according to any one of claims 1 to 5.
  8. 8. A computer-readable storage medium, characterized in that the storage medium has recorded thereon a computer program, which, when being executed by a processor, performs the steps of the method of structuring the software engineering elements according to any one of claims 1 to 5.

Description

Method and device for structured processing of software engineering elements, electronic equipment and medium Technical Field The application relates to the technical field of software development, in particular to a structural processing method and device of software engineering elements, electronic equipment and a medium. Background In the software development process, different software engineering objects such as requirement documents, use case documents, interface models, constraint rules, test cases and the like are generally distributed in different tools and models, and even though interconnection or exchange is performed through the lifecycle collaboration service (Open Services for Lifecycle Collaboration, OSLC) or ReqIF, the underlying data structures are still respectively proven, so that it is difficult to perform lateral analysis in a unified structure. In addition, under the condition, the change influence chain is difficult to automatically generate, other engineering elements possibly influenced by the update of one engineering element cannot be rapidly positioned in the software development process, and the efficiency of software development and version release is reduced. Disclosure of Invention The application aims to provide a method, a device, electronic equipment and a medium for structuring a software engineering element, aiming at the defects in the prior art, so as to determine the affected engineering element based on a unified engineering element and element reference chain and improve the efficiency of software development and version release. In order to achieve the above purpose, the technical scheme adopted by the embodiment of the application is as follows: in a first aspect, an embodiment of the present application provides a method for processing a structure of a software engineering element, where the method includes: Generating an engineering element list of a plurality of types of software engineering objects aiming at a preset software engineering, wherein each item in the engineering element list records element identifications and basic attribute information of engineering elements in the software engineering objects; constructing at least one element reference chain according to the association relations among a plurality of engineering elements and element identifiers of the engineering elements, wherein the element reference chain at least comprises a source element identifier, a target element identifier and an association relation type; In response to a change event for a first engineering element, determining an affected engineering element according to an element identification of the first engineering element and the element reference chain; and verifying the affected engineering elements according to the verification list generated for the affected engineering elements. Optionally, the element reference chain further comprises an effective version range, wherein the determining, according to the element identification of the first engineering element and the element reference chain, the affected engineering element in response to the change event for the first engineering element comprises: Responding to a change event of the first engineering element in a target version update point, and determining a second engineering element in a first element reference chain corresponding to the first engineering element according to an element identifier of the first engineering element; determining whether the first element reference chain is effective according to the current version of the first engineering element, the current version of the second engineering element and the effective version range of the first element reference chain in the engineering element table; and if the first element reference chain is effective, determining the second engineering element of the current version as the affected engineering element. Optionally, if the current versions of the first engineering element and the second engineering element are not within the valid version range of the first element reference chain, determining the affected engineering element according to the element identifier of the first engineering element and the element reference chain, and further including: Acquiring a version change diagram of the preset software project, wherein a plurality of nodes of the version change diagram are a plurality of version update points of the preset software project, the connection relation among the nodes is the relation of the plurality of version update points, and each node records the version change of project elements in the corresponding version update point; Determining whether the first engineering element and the second engineering element have historical versions within the effective version range according to the version updating point of the current version of the first engineering element and the version updating point of the current version of the second