Method for acquiring interface calling sequence and related equipment
By obtaining the online work order number and querying related information, the interface call sequence diagram is automatically built, which solves the problems of missing and misreading when manually sorting out the interface call sequence, and improves the accuracy and efficiency in the change process of the civil aviation software system.
Patent Information
- Application Number
- CN202411365732.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-20
AI Technical Summary
In civil aviation software systems, during the online change of the software interface, due to the huge number of interfaces, it is easy to miss or misread problems when manually sorting out the order of interface calls, resulting in low accuracy and affecting the efficiency of problem investigation.
By obtaining the online work order number of the software to be changed, querying the change information and associated information, automatically constructing an interface call sequence diagram, displaying the call order between the software interfaces, and avoiding manual errors.
It improves the accuracy of the interface call sequence, reduces manual errors, simplifies the problem investigation process, and improves the troubleshooting efficiency.
Smart Images

Figure CN119166208A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of civil aviation software system changes, and more specifically, to a method for obtaining an interface call sequence and related equipment. Background Art
[0002] With the development of the civil aviation industry, the number of businesses has increased rapidly. The rapid development of business has spawned many software. In the overall deployment structure of the business system, there are call dependencies between multiple software. When adding or modifying software functions, the interface corresponding to the software function needs to be launched. After the interface is launched, its upstream and downstream interfaces also need to be changed and launched again to avoid problems with interface calls.
[0003] At present, the upstream and downstream interfaces are mainly determined manually, and then the overall calling sequence between the interfaces is sorted out, so that the upstream and downstream interfaces with calling problems can be promptly checked after the interface is launched. Although the staff can query many upstream and downstream interfaces, due to the huge number of interfaces, the staff need to determine the software interfaces to be changed one by one in the process of sorting out the interface calling sequence. In this process, it is easy to miss the software name or interface name, misread the software name or interface name, etc., resulting in the low accuracy of the final sorted interface calling sequence, which is not conducive to troubleshooting. Summary of the invention
[0004] In view of this, the present application provides a method for obtaining an interface call sequence and related equipment, which are used to solve the problem that the accuracy of the sorted interface call sequence is not high.
[0005] In order to achieve the above objectives, the proposed solution is as follows:
[0006] A method for obtaining an interface call sequence, the method comprising:
[0007] During the online change process, obtain the online work order number of the software to be changed;
[0008] Obtaining at least one change information pair of the software to be changed according to the online work order number, each of the change information pairs including the name of the software to be changed and the name of a change interface of the software to be changed;
[0009] querying the software interface association management system to obtain an association information pair of the associated software, wherein the association information pair includes a name of an associated interface having a call relationship with the change interface and a name of an associated software to which the associated interface belongs;
[0010] Based on the associated information pairs, the change information pairs and the corresponding online work order numbers of each information pair, an interface call sequence diagram with the corresponding online work order numbers is constructed to show the calling sequence between the software interfaces in the target information pairs, wherein the target information pairs include: the associated information pairs and the change information pairs.
[0011] The present application provides a method for obtaining an interface call sequence and related equipment. The method can quickly query the change information pair of the current change according to the online work order number, and obtain the related information pair involved in the current change by querying the software interface in the change software pair, and automatically construct an interface call sequence diagram with the online work order number according to each change information pair, the interface call relationship in each queried related information pair, and the corresponding online work order number of each information pair, so as to display the call sequence between the interfaces of each software. The method obtains the software interface for online change through automatic query by the system, avoids problems such as missed or wrong viewing caused by manual work, effectively improves the accuracy of combing the call sequence, and the method automatically constructs an interface call sequence diagram that displays the call sequence between the interfaces of each software, which is convenient for staff to quickly troubleshoot problems and can directly determine the upstream and downstream interfaces with call problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0014] Figure 1 A flowchart of a method for obtaining an interface call sequence provided in an embodiment of the present application;
[0015] Figure 2 A specific implementation flow chart of a method for obtaining an interface call sequence provided in an embodiment of the present application;
[0016] Figure 3 A schematic diagram of an interface call sequence diagram provided in an embodiment of the present application;
[0017] Figure 4 A schematic diagram of the structure of a device for obtaining an interface call sequence provided in an embodiment of the present application;
[0018] Figure 5 A hardware structure block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0020] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0021] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0022] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0023] With the continuous development of the civil aviation industry, the civil aviation business system has gradually generated more and more new businesses, and new businesses are also constantly spawning many software, resulting in the continuous expansion of the software scale of the civil aviation business system. In order to adapt to the rapid development of civil aviation business, the civil aviation business system requires software to perform online changes more frequently. Software online changes refer to the process of updating the interface corresponding to the software content due to changes in the program, configuration, data, etc., and re-launching the interface in the civil aviation business system after the interface is updated. In the overall deployment structure of the civil aviation business system, with the increase of software, the complexity of the association between software is also increasing synchronously. The interface of the same software can have a calling relationship with the interfaces of multiple other software. Due to the complex association between software, the online change of software also faces major challenges. Once a problem occurs in the online change of a software interface, it will affect multiple software interfaces associated with it, and due to the upstream and downstream calling relationship between multiple software interfaces, the online order of the changed software interfaces is crucial.
[0024] Currently, the online order of the changed software interfaces is mainly sorted out manually. Specifically, the staff first determines the software interface to be changed, and then finds the many upstream and downstream interfaces of the software interface according to the overall deployment diagram of the civil aviation business system. From the many upstream and downstream interfaces obtained, they ask the person in charge of the online operation of the software one by one to determine whether the software interface is also involved in the online change, what is the corresponding online work order number, whether the online work order number corresponding to the online change of the software interface has passed the review, etc. After determining the software interface that needs to be changed, the online order between the software interfaces is sorted out. In the process of sorting out the online order, due to the large number of software interfaces, it is inevitable that the software name or interface name is missed, the software name or interface name is misread, and the online order of the finally sorted software interfaces is not accurate. At the same time, the staff also needs to spend a lot of time to sort out, resulting in low sorting efficiency.
[0025] The present embodiment provides a method for obtaining an interface call sequence, which can obtain at least one change information pair of the software to be changed by querying the online work order number of the software to be changed, and query the software interface association management system to obtain the associated information pairs associated with the change information pairs respectively, and can directly construct an interface call sequence diagram with the online work order number according to the association relationship between the change information pair and the associated information pair, and the corresponding online work order number of each information pair, so as to show the call sequence between each software interface. The present embodiment obtains the associated information pairs and automatically sorts out the interface call sequence through an automatic query system, avoiding problems such as misreading and missing introduced by humans, and the present method automatically constructs an interface call sequence diagram showing the call sequence between the interfaces of each software and the online work order number corresponding to the software, so as to facilitate the staff to quickly troubleshoot problems, and can directly determine the upstream and downstream interfaces where the call problem occurs, effectively improving the accuracy of sorting out the call sequence.
[0026] Next, the specific contents of the method for obtaining the interface call sequence provided by this embodiment will be described in detail. This embodiment of the application provides a method for obtaining the interface call sequence, such as Figure 1 As shown, the method for obtaining the interface calling sequence may include:
[0027] S10. During the online change process, obtain the online work order number of the software to be changed.
[0028] The software to be changed is software that needs to be changed online. In this embodiment, the software to be changed mainly involves changes to the software interface, such as adding an interface for calling new functions to the software or changing the original calling function of the software interface.
[0029] The online work order number is a change identifier for the software to be changed. One software to be changed corresponds to one online work order number, and different software to be changed have different online work order numbers. Since one online work order number can involve changes to all interfaces of a software, one online work order number can correspond to multiple interfaces of a software with changes. The source of the online work order number is: the staff submits the software requirements and tests the software requirements. After the software requirements are passed, the online order is initiated. The work order number obtained after obtaining approval from the superior is the online work order number.
[0030] Furthermore, when obtaining the online work order number, this embodiment can first obtain the online work order numbers of all software interfaces that are online on that day, and then filter out the online work order numbers with successful approval status. There is no need to manually determine the review status of the online work order numbers one by one, which effectively saves time.
[0031] S11. Obtain at least one change information pair of the software to be changed according to the online work order number, each change information pair including the name of the software to be changed and the name of a change interface of the software to be changed;
[0032] S12: query the software interface association management system to obtain an association information pair of the associated software, wherein the association information pair includes a name of an associated interface having a call relationship with the changed interface and a name of an associated software to which the associated interface belongs.
[0033] In this embodiment, the application change management system is queried using the online work order number to obtain all software interfaces involved in the online change. In this embodiment, the number of online work order numbers is more than one. The application change management system is a system that records the content of software online changes and manages the flow of online work orders. The content of software online changes may include: online work order number, software name, software interface name, change implementation, inspection, emergency rollback record sheet, etc.
[0034] The change information pair is a combination of change information of the software to be changed, which may include the software name of the software to be changed and an interface name of the software to be changed. Since one online work order number may correspond to multiple interfaces with the changed software, in this embodiment, multiple change information pairs can be queried through one online work order number. Among the multiple change information pairs corresponding to one online work order number, the software names are the same, but the software interface names are different.
[0035] The software interface association management system is a system that analyzes and manages the association relationships between software interfaces. The association relationships between software interfaces are the upstream and downstream calling relationships between software interfaces. The software interface association management system can collect the tracking tape logs of each software interface call, and based on the calling relationship data in the tracking tape, realize the dynamic analysis and management of the calling relationships between software interfaces. Furthermore, in the query results of the software interface association management system, because after the association dependency analysis, it is believed that the associated information pair will be affected by the online change, it may happen that the associated information pair and the change information pair do not have an upstream and downstream calling relationship, but it still serves as the query result of the software interface association management system.
[0036] The associated software is software that has an upstream and downstream calling relationship with the software to be changed in terms of software interface. The associated information pair is a combination of software information of the associated software, and the associated information pair may include the software name of the associated software and an interface name of the associated software.
[0037] In this embodiment, by querying the software interface association management system based on the interface name in the change information pair, all associated software names and their interface names that have upstream and downstream calling relationships with the interface in the change information pair can be queried, and the query results can be expressed in the form of multiple associated information pairs.
[0038] S13. Based on the associated information pairs, the changed information pairs and the corresponding online work order numbers of each information pair, an interface call sequence diagram with corresponding online work order numbers is constructed to display the call sequence between the software interfaces in the target information pairs, wherein the target information pairs include: associated information pairs and changed information pairs.
[0039] Among them, the interface call sequence diagram can be an upstream and downstream sequence diagram between various software, which mainly shows the call sequence between various software interfaces. When constructing the interface call sequence diagram in this embodiment, the upstream and downstream sequence between various information pairs is uniformly sorted out according to the upstream and downstream call relationship between the software interfaces in all related information pairs and all change information pairs, and the corresponding online work order number is added to each information pair, and then each information pair is connected in sequence according to the upstream and downstream sequence between the information pairs in a simple connection method (such as a straight line connection) to obtain a complete call sequence structure diagram. This embodiment displays the call sequence between various interfaces in the form of an image, and its display effect is more intuitive.
[0040] Furthermore, the query results of each system in this method can be analyzed and processed in the background through a script (such as python, java or shell, etc.), and then displayed on the front-end page through a web page built by a framework (such as Django framework, an open source web application framework based on python).
[0041] The embodiment of the present application provides a method for obtaining the interface call sequence. The method dynamically analyzes the association relationship between software interfaces through a software management system, and specifies the call dependency relationship (upstream call relationship or downstream call relationship) between all associated software pairs and the associated change information. The method also automates the traditional manual combing process, avoids manual intervention, and reduces the problem of misreading and missing. And finally, the call sequence between each software interface is clearly and accurately described through the interface call sequence diagram. If there is a problem with the call between the software interfaces, the software interface that may have errors can be directly found according to the interface call sequence diagram, providing efficient emergency decision support and rollback support, and improving the efficiency of problem troubleshooting. The method can be implemented through the operation and maintenance software platform-Saas (an application based on the Paas one-stop operation and maintenance system platform, which can design a friendly front-end operation interface). Its integration and platformization are both high, and the website tool can also be directly developed to implement the method.
[0042] In addition, this embodiment can also target different areas of software system changes to meet their personalized needs.
[0043] Above Figure 1 The flowchart in the flowchart illustrates the functions and operations that may be implemented according to the method of the embodiment of the present disclosure. In this regard, each box in the flowchart may represent a module, a program segment, or a portion of code, which contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also be different from Figure 1 The blocks in the flowchart are shown in the order in which they are marked. For example, two boxes shown in succession may actually be executed substantially in parallel, and they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the flowchart, and the combination of boxes in the flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0044] According to another method for obtaining an interface call sequence provided by an embodiment of the present application, Figure 1 The step S13 shown may include step 1 and step 2:
[0045] Step 1: According to the calling relationship between the association interface and the change interface, the association information pairs and the change information pairs are sorted upstream and downstream to obtain the upstream and downstream order between the association information pairs and the change information pairs;
[0046] Step 2: Obtain the corresponding online work order number of each information pair, and draw an interface call sequence diagram with the corresponding online work order number according to the upstream and downstream order between the associated information pair and the changed information pair.
[0047] Among them, this embodiment can directly match the corresponding online work order number for the software in the change information pair. As for the associated information pair, it can be divided into two parts. For the associated information pairs in the first part, the software in the associated information pair is one of all the software involved in the change information pair, and for the associated information pairs in the second part, the software in the associated information pair is not one of all the software involved in the change information pair. For the associated information pairs in the first part, the corresponding online work order number can be directly matched for them, and for the associated information pairs in the second part, the corresponding virtual online work order number can be created for them.
[0048] The calling relationship between the associated interface and the change interface can be divided into an upstream calling relationship and a downstream calling relationship. In this embodiment, all the associated information pairs and all the change information pairs are sorted upstream and downstream according to the upstream and downstream calling relationship between the software interfaces, and the upstream and downstream sequence between the associated information pairs and the change information pairs is obtained, and then the upstream and downstream sequence is drawn to obtain a call sequence diagram.
[0049] Specifically, the upstream and downstream sorting in this embodiment can be specifically divided into the following multiple steps.
[0050] Combining each change information pair and each associated information pair in pairs to obtain a plurality of software information groups, each software information group includes a change information pair and an associated information pair, and the interfaces in the two information pairs in the same software information group have a calling relationship;
[0051] For each software information group: according to the calling relationship between two interfaces in the software information group, determine the upstream and downstream order of the change information pair and the associated information pair in the software information group;
[0052] According to the calling relationship between the interfaces in different software information groups, the upstream and downstream order between different software information groups is determined.
[0053] Among them, when this embodiment performs upstream and downstream sorting on all the associated information pairs and the change information pairs, the associated information pairs with associated relationships and the change information pairs can be sorted upstream and downstream first, and then the associated information pairs with determined upstream and downstream order and the change information pairs can be sorted upstream and downstream. Then, this embodiment can first treat the associated information pairs with associated relationships and the change information pairs as a software information group. Specifically, a change information pair can form a software information group with its upstream associated information pair, or it can form a software information group with its downstream associated information pair. After determining the association relationship between the associated information pairs and the change information pairs in each software information group, the upstream and downstream order between each software information group can be sorted. Of course, if the software information in the associated information pairs and the change information pairs in the same software information group is different, it can be determined that the software information group has an upstream and downstream order with other software information groups; if the associated information pairs and the change information pairs in the same software information group are the same, it is determined that there is no upstream and downstream order relationship between the software information group and other software information groups.
[0054] When the software information in the associated information pair and the change information pair in the same software information group is different, the specific ordering between the software information groups may be as follows:
[0055] If the information pair located downstream in the first software information group is the same as the information pair located upstream in the second software information group, and the information pair located upstream in the first software information group is different from the information pair located downstream in the second software information group, then the first software information group is determined to be the upstream software information group of the second software information group;
[0056] or,
[0057] If the information pair located upstream in the first software information group is the same as the information pair located downstream in the second software information group, and the information pair located downstream in the first software information group is different from the information pair located upstream in the second software information group, then the first software information group is determined to be the downstream software information group of the second software information group;
[0058] or,
[0059] If the downstream information pair in the first software information group is the same as the upstream information pair in the second software information group, and the upstream information pair in the first software information group is the same as the downstream information pair in the second software information group, then the first software information group and the second software information group are determined to be parallel software information groups.
[0060] Of course, in addition to achieving upstream and downstream sorting of all related information pairs and all change information pairs by comparing the same upstream and downstream situations, the embodiments of the present application can also directly take the interface of an information pair (related information pair or change information pair) as the starting point, and sort other information pairs in sequence according to the upstream calling order of the interface or the downstream calling order of the interface until all information pairs have completed the upstream and downstream sorting.
[0061] According to another method for obtaining an interface call sequence provided by an embodiment of the present application, the method for obtaining an interface call sequence may further include step three:
[0062] Step 3: Configure a floating box for each information pair in the interface call sequence diagram, and the floating box contains attribute information of the software in the information pair.
[0063] Among them, the attribute information of the software can be the detailed deployment of the software, such as the server IP, the user end used, the business functions of the software, and the calling status of the upstream and downstream traffic of the software. In this embodiment, a floating box is configured for each information pair. The floating box is usually hidden. When the staff needs to view the information of the information pair, the floating box will automatically emerge and display the attribute information of the software. For example, the staff moves the mouse and moves the mouse to an information pair in the interface call sequence diagram to display the floating box.
[0064] Of course, this embodiment can also set a hyperlink for each information pair. When a problem occurs in the software call, in order to solve the problem more conveniently and quickly, this embodiment can set a hyperlink for the text content in each information pair in the interface call sequence diagram, and the target of the hyperlink is the running address of the software in the information pair, so that when the staff finds a problem, they can directly click the hyperlink and go to the running address of the software to troubleshoot the problem.
[0065] So far, if Figure 2 As shown, a specific implementation process of an embodiment of the present application is provided, and the steps are as follows:
[0066] S20. Configure multiple online work order numbers;
[0067] S21, sequentially generate multiple query instructions according to the online work order number, and the content of each query instruction includes an online work order number;
[0068] S22, executing each query instruction, specifically: for each query instruction, sending the online work order number in the query instruction to the interface of the application change management system;
[0069] S23, determine whether all query executions have been completed, if not, return to step S22; if yes, execute step S24;
[0070] S24, obtaining the query results of each online work order number and performing statistical analysis to obtain a first set and a second set, wherein the first set is: a set consisting of multiple online work order numbers, multiple changed software names and multiple interface names, in which one online work order number, one changed software name and one interface name are one element; the second set is: a set consisting only of multiple interface names
[0071] S25. Execute the query operation of the second set on the interface of the software interface association management system to obtain the software information group of each interface in the second set, wherein, in the software interface association management system, the input is the second set, and the output is the interface association relationship between the software corresponding to each interface name in the second set. Each software name can obtain a software information group using the interface, that is, [source, interface-destination, interface], wherein the source represents the name of the upstream software in the software information group, and the destination represents the name of the downstream software in the software information group. The interface association relationship in the software information group can be an upstream calling relationship or a downstream calling relationship, that is, a change information pair can form a software information group with its upstream association information pair, or can form a software information group with its downstream association information pair;
[0072] S26, statistically analyzing the software information groups of each interface in the second set to obtain the upstream and downstream order between the interfaces, wherein if there are pairs of [source, interface-destination, interface] and [source, interface-destination, interface] with the same information, it indicates that the two software information groups have a circular calling relationship; if the information of [source, interface] and [destination, interface] is the same in the same software information group, it is assumed that there is no association relationship with other software information groups;
[0073] S27, matching the first set with the second set to obtain the upstream and downstream order between the interfaces carrying the online work order number and the software name, wherein, during the matching process, some software that is not included in the changed software involved in the first set may appear, but after the correlation dependency analysis of the software interface correlation management system, it is considered that the software will be affected by the online change;
[0074] S28. Draw a graph of the upstream and downstream sequences between the interfaces carrying the online work order number and the software name to obtain an interface call sequence diagram;
[0075] S29. Display the interface call sequence diagram.
[0076] This embodiment will provide an example to understand the above specific implementation process.
[0077] Step 20: Configure three online work order numbers: TOMS-202304130088, TOMS-202304130002, and TOMS-202304130031;
[0078] Step 21: Generate three query instructions in sequence according to the online work order number;
[0079] Step 22: Execute each query instruction;
[0080] Step 23: Determine whether all query executions have been completed. If not, return to step 22; if yes, execute step 24;
[0081] Step 24: Obtain the query results of each online work order number and perform statistical analysis to obtain a first set and a second set. The first set is: {[TOMS-202304130088, PE, pD], [TOMS-202304130088, PE, uP], [TOMS-202304130002, SAT, QP], [TOMS-202304130031, DR, DDM], [TOMS-202304130031, DR, DBH]}, and the second set is: {pD, uP, QP, DDM, DBH}. Among them, an element in the first set is divided into an online work order number, a software name, and a software interface name. In order to make the example more clear and concise and easier to understand, all software names in this example are abbreviated, and their full descriptions are: pD-passengerDisplay, uP-updatePassenger, QP-travelsky.air.QueryPassengerList, DDM-DrDataMaintenance and DBH-DrBoardingHandling.
[0082] Step 25: Execute the query operation of the second set on the interface of the software interface association management system to obtain the software information group of each interface in the second set. The specific process is as follows:
[0083] The software information groups that can be queried by interface pD include: [DGUI, pD-PE, pD], [PE, pD-SAT, QP];
[0084] The software information groups that can be queried by the interface uP include: [PE, uP-PE, uP];
[0085] The software information groups that can be queried by interface QP include: [PE, pD-SAT, QP], [SAT, QP-DR, DDM], [SAT, QP-DR, DBH];
[0086] The software information groups that can be queried by interface DDM include: [SAT, QP-DR, DDM], [JOB, EL-DR, DDM], [DR, DDM-JOB, EL];
[0087] The software information groups that can be queried by interface DBH include: [SAT, QP-DR, DBH], [DR, DBH-DC, DBH].
[0088] The complete description of the interface EL is: EdiLink. Taking [DGUI, pD-PE, pD] as an example, the meaning of this software information group is: the downstream of the pD interface with the software name DGUI is the PD interface with the software name PE. The meaning of other software information groups can be deduced in the same way.
[0089] Step 26: Perform statistical analysis on all the software information groups obtained above to obtain the upstream and downstream sequence between interfaces. The specific sequence is as follows:
[0090] [DGUI, pD-PE, pD];
[0091] [PE, pD-SAT, QP];
[0092] [SAT, QP-DR, DDM], [DR, DDM-JOB, EL], [JOB, EL-DR, DDM];
[0093] [SAT, QP-DR, DBH], [DR, DBH-DC, DBH];
[0094] [PE, uP-PE, uP];
[0095] According to the upstream and downstream sequence of the above software information groups, the calling sequence between software interfaces can be obtained.
[0096] Step 27: Match the first set with the second set to obtain the upstream and downstream order between the interfaces that carry the online work order number and software name
[0097] Among the above-mentioned multiple software information groups, the three software DGUI, JOB, and DC are not included in the software names involved in the first set. Therefore, when matching, virtual work order numbers are set for the three software. The virtual work order numbers are not used to distinguish the three software, but indicate that the three software are not included in the software involved in the first set. The virtual work order number can be specifically expressed as: TOMS-XXXXXXXXXX.
[0098] In the above software information groups, if the information pairs in [DR, DDM-JOB, EL] and [JOB, EL-DR, DDM] are the same, it can be considered that the two software information groups are in a mutually calling relationship and are in a parallel relationship in the upstream and downstream order. In [PE, uP-PE, uP], if the information of the two information pairs is the same, it can be considered that there is no upstream and downstream order relationship between the software information group and other software information groups.
[0099] After matching the first set, the upstream and downstream order between the interfaces carrying the online work order number and software name can be expressed as:
[0100] [TOMS-XXXXXXXXXX, DGUI, pD-TOMS-202304130088, PE, pD];
[0101] [TOMS-202304130088, PE, pD-TOMS-202304130002, SAT, QP];
[0102] [TOMS-202304130002, SAT, QP-TOMS-202304130031, DR, DDM], [TOMS-202304130031, DR, DDM-TOMS-XXXXXXXXXX, JOB, EL], [TOMS-XXXXXXXXXX, JOB, EL-TOMS-202304130031, DR, DDM];
[0103] [TOMS-202304130002, SAT, QP-TOMS-202304130031, DR, DBH];
[0104] [TOMS-202304130031, DR, DBH-TOMS-XXXXXXXXXX, DC, DBH];
[0105] [TOMS-202304130088, PE, uP];
[0106] Step 28: Draw the upstream and downstream sequence between the interfaces carrying the online work order number and software name to obtain the following Figure 3 The interface call sequence diagram shown;
[0107] Step 29: Display the interface call sequence diagram.
[0108] Corresponding to a method for obtaining an interface calling sequence provided in an embodiment of the present application, an embodiment of the present application also provides a device for obtaining an interface calling sequence.
[0109] like Figure 4As shown, the embodiment of the present application further provides a device for obtaining an interface call sequence, and the device for obtaining an interface call sequence may include:
[0110] The order number acquisition unit 100 is used to obtain the online work order number of the software to be changed during the online change process;
[0111] The first query unit 110 is used to query and obtain at least one change information pair of the software to be changed according to the online work order number, each change information pair includes the name of the software to be changed and the name of a change interface of the software to be changed;
[0112] The second query unit 120 is used to query the software interface association management system to obtain an association information pair of the associated software, wherein the association information pair includes a name of an associated interface having a call relationship with the changed interface and a name of an associated software to which the associated interface belongs;
[0113] The image construction unit 130 is used to construct an interface call sequence diagram with corresponding online work order numbers based on associated information pairs, change information pairs and corresponding online work order numbers of each information pair, so as to display the call sequence between each software interface in the target information pair, wherein the target information pair includes: associated information pairs and change information pairs.
[0114] According to another method for obtaining an interface call sequence provided by an embodiment of the present application, the image construction unit 130 may include:
[0115] The sorting subunit is used to sort the association information pairs and the change information pairs in the upstream and downstream directions according to the calling relationship between the association interface and the change interface, so as to obtain the upstream and downstream sequence between the association information pairs and the change information pairs;
[0116] The drawing subunit is used to obtain the corresponding online work order number of each information pair, and draw the interface call sequence diagram with the corresponding online work order number according to the upstream and downstream sequence between the associated information pair and the changed information pair.
[0117] In another device for obtaining an interface call sequence according to an embodiment of the present application, the above-mentioned sorting subunit may include:
[0118] The combination acquisition subunit is used to combine each change information pair and each associated information pair in pairs to obtain multiple software information groups, each software information group includes a change information pair and an associated information pair, and the interfaces in the two information pairs in the same software information group have a calling relationship;
[0119] The combination processing subunit is used to determine, for each software information group, the upstream and downstream sequence of the change information pair and the associated information pair in the software information group according to the calling relationship between the two interfaces in the software information group;
[0120] The sequence determination subunit is used to determine the upstream and downstream sequence between different software information groups according to the calling relationship between the interfaces in different software information groups.
[0121] According to another device for obtaining an interface call sequence provided by an embodiment of the present application, the above-mentioned sequence determination subunit is specifically configured as follows:
[0122] If the information pair located downstream in the first software information group is the same as the information pair located upstream in the second software information group, and the information pair located upstream in the first software information group is different from the information pair located downstream in the second software information group, then the first software information group is determined to be the upstream software information group of the second software information group; or, if the information pair located upstream in the first software information group is the same as the information pair located downstream in the second software information group, and the information pair located downstream in the first software information group is different from the information pair located upstream in the second software information group, then the first software information group is determined to be the downstream software information group of the second software information group; or, if the information pair located downstream in the first software information group is the same as the information pair located upstream in the second software information group, and the information pair located upstream in the first software information group is the same as the information pair located downstream in the second software information group, then the first software information group and the second software information group are determined to be parallel software information groups.
[0123] In another device for obtaining an interface call sequence provided in an embodiment of the present application, the sequence determination subunit may also be specifically configured as follows:
[0124] If the associated information pair and the change information pair in the same software information group are the same, it is determined that there is no upstream or downstream sequence relationship between the software information group and other software information groups.
[0125] According to another device for obtaining an interface call sequence provided in an embodiment of the present application, the device for obtaining an interface call sequence may further include:
[0126] The information viewing unit is used to configure a floating box for each information pair in the interface call sequence diagram, and the floating box contains attribute information of the software in the information pair.
[0127] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "data acquisition unit".
[0128] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0129] The interface call sequence acquisition system provided in the embodiment of the present application can be applied to the interface call sequence acquisition device. Figure 5 The hardware structure block diagram of the interface call sequence acquisition device 600 is shown. The interface call sequence acquisition device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The device for obtaining the interface call sequence shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0130] like Figure 5 As shown, the interface call sequence acquisition device 600 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 606 to a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the interface call sequence acquisition device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0131] Typically, the following devices may be connected to the I / O interface 605: input devices 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 608 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 609. The communication devices 609 may allow the acquisition device 600 of the interface call sequence to communicate wirelessly or wired with other devices to exchange data. Although Figure 5 The acquisition device 600 of the interface call sequence with various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0132] An embodiment of the present application also provides a computer-readable medium, which carries one or more programs. When the one or more programs are executed by the above-mentioned interface call sequence acquisition device, the interface call sequence acquisition device: obtains the online work order number of the software to be changed during the online change process; obtains at least one change information pair of the software to be changed according to the online work order number, each of which includes the name of the software to be changed and the name of a change interface of the software to be changed; queries the software interface association management system to obtain an association information pair of the associated software, wherein the association information pair includes the name of an associated interface that has a call relationship with the change interface and the name of an associated software to which the associated interface belongs; based on the association information pair, the change information pair and the corresponding online work order number of each information pair, constructs an interface call sequence diagram with the corresponding online work order number to display the calling sequence between the software interfaces in the target information pair, wherein the target information pair includes: the association information pair and the change information pair.
[0133] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0134] The computer-readable medium may be included in the device for acquiring the interface call sequence; or may exist independently without being assembled into the device for acquiring the interface call sequence.
[0135] In particular, according to an embodiment of the present disclosure, the process described in the above interface call sequence acquisition method embodiment can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer readable medium, and the computer program contains program code for executing the above interface call sequence acquisition method. In such an embodiment, the computer program can be implemented by Figure 5 The communication device 609 in the computer program is downloaded and installed from the network, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the method for obtaining the interface call sequence of the embodiment of the present disclosure are executed.
[0136] According to one or more embodiments of the present disclosure, Example 1 provides a method for obtaining an interface call sequence, including:
[0137] During the online change process, obtain the online work order number of the software to be changed;
[0138] Obtaining at least one change information pair of the software to be changed according to the online work order number, each of the change information pairs including the name of the software to be changed and the name of a change interface of the software to be changed;
[0139] querying the software interface association management system to obtain an association information pair of the associated software, wherein the association information pair includes a name of an associated interface having a call relationship with the change interface and a name of an associated software to which the associated interface belongs;
[0140] Based on the associated information pairs, the change information pairs and the corresponding online work order numbers of each information pair, an interface call sequence diagram with the corresponding online work order numbers is constructed to show the calling sequence between the software interfaces in the target information pairs, wherein the target information pairs include: the associated information pairs and the change information pairs.
[0141] According to one or more embodiments disclosed in the present application, Example 2 provides the method of Example 1,
[0142] The step of constructing an interface call sequence diagram with the corresponding online work order number based on the associated information pair, the change information pair and the corresponding online work order number of each information pair includes:
[0143] According to the calling relationship between the association interface and the change interface, the association information pair and the change information pair are sorted in upstream and downstream order to obtain the upstream and downstream order between the association information pair and the change information pair;
[0144] The corresponding online work order number of each information pair is obtained, and a diagram is drawn according to the upstream and downstream sequence between the associated information pair and the changed information pair, and an interface call sequence diagram with the corresponding online work order number is drawn.
[0145] According to one or more embodiments disclosed in the present application, Example 3 provides the method of Example 2,
[0146] The step of performing upstream and downstream sorting on the association information pair and the change information pair according to the calling relationship between the association interface and the change interface to obtain the upstream and downstream sequence between the association information pair and the change information pair includes:
[0147] Combining each change information pair and each associated information pair in pairs to obtain a plurality of software information groups, each of the software information groups including a change information pair and an associated information pair, and the interfaces in the two information pairs in the same software information group have a calling relationship;
[0148] For each software information group: according to the calling relationship between two interfaces in the software information group, determine the upstream and downstream order of the change information pair and the associated information pair in the software information group;
[0149] According to the calling relationship between the interfaces in different software information groups, the upstream and downstream order between different software information groups is determined.
[0150] According to one or more embodiments disclosed in the present application, Example 4 provides the method of Example 3,
[0151] Determining the upstream and downstream order between different software information groups according to the calling relationship between the interfaces in different software information groups includes:
[0152] If the information pair located downstream in the first software information group is the same as the information pair located upstream in the second software information group, and the information pair located upstream in the first software information group is different from the information pair located downstream in the second software information group, then determining that the first software information group is the upstream software information group of the second software information group;
[0153] or,
[0154] If the information pair located upstream in the first software information group is the same as the information pair located downstream in the second software information group, and the information pair located downstream in the first software information group is different from the information pair located upstream in the second software information group, then determining that the first software information group is the downstream software information group of the second software information group;
[0155] or,
[0156] If the downstream information pair in the first software information group is the same as the upstream information pair in the second software information group, and the upstream information pair in the first software information group is the same as the downstream information pair in the second software information group, then it is determined that the first software information group and the second software information group are parallel software information groups.
[0157] According to one or more embodiments disclosed in the present application, Example 5 provides the method of Example 3,
[0158] Also includes:
[0159] If the associated information pair and the change information pair in the same software information group are the same, it is determined that there is no upstream or downstream sequence relationship between the software information group and other software information groups.
[0160] According to one or more embodiments disclosed in the present application, Example 6 provides the method of Example 1, further comprising:
[0161] A floating box is configured for each information pair in the interface call sequence diagram, wherein the floating box contains attribute information of the software in the information pair.
[0162] According to one or more embodiments disclosed in the present application, Example 7 provides a device for obtaining an interface call sequence, including:
[0163] The order number acquisition unit is used to obtain the online work order number of the software to be changed during the online change process;
[0164] A first query unit, configured to query and obtain at least one change information pair of the software to be changed according to the online work order number, each of the change information pairs comprising a name of the software to be changed and a name of a change interface of the software to be changed;
[0165] A second query unit is used to query the software interface association management system to obtain an association information pair of the associated software, wherein the association information pair includes a name of an associated interface having a call relationship with the change interface and a name of an associated software to which the associated interface belongs;
[0166] An image construction unit is used to construct an interface call sequence diagram with the corresponding online work order number based on the associated information pair, the change information pair and the corresponding online work order number of each information pair, so as to show the calling sequence between the software interfaces in the target information pair, wherein the target information pair includes: the associated information pair and the change information pair.
[0167] According to one or more embodiments disclosed in the present application, Example 8 provides a system in Example 7,
[0168] The image building unit includes:
[0169] A sorting subunit, configured to sort the association information pair and the change information pair in an upstream and downstream manner according to the calling relationship between the association interface and the change interface, and obtain an upstream and downstream order between the association information pair and the change information pair;
[0170] The drawing subunit obtains the corresponding online work order number of each information pair, and draws an interface call sequence diagram with the corresponding online work order number according to the upstream and downstream sequence between the associated information pair and the change information pair.
[0171] According to one or more embodiments disclosed in the present application, Example 9 provides an electronic device, comprising a memory and a processor, wherein the memory is used to store programs, and the processor is used to execute the programs to implement the various steps of the method for obtaining the interface call order as described in any of the above examples.
[0172] According to one or more embodiments disclosed in the present application, Example 10 provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method for obtaining the interface call sequence as described in any one of the above examples.
Claims
1. A method for obtaining an interface calling sequence, It is characterized in that The method for obtaining the interface calling sequence includes: During the online change process, obtain the online work order number of the software to be changed; Obtaining at least one change information pair of the software to be changed according to the online work order number, each of the change information pairs including the name of the software to be changed and the name of a change interface of the software to be changed; querying the software interface association management system to obtain an association information pair of the associated software, wherein the association information pair includes a name of an associated interface having a call relationship with the change interface and a name of an associated software to which the associated interface belongs; Based on the associated information pairs, the change information pairs and the corresponding online work order numbers of each information pair, an interface call sequence diagram with the corresponding online work order numbers is constructed to show the calling sequence between the software interfaces in the target information pairs, wherein the target information pairs include: the associated information pairs and the change information pairs.
2. The method for obtaining the interface call sequence according to claim 1, It is characterized in that The step of constructing an interface call sequence diagram with the corresponding online work order number based on the associated information pair, the change information pair and the corresponding online work order number of each information pair includes: According to the calling relationship between the association interface and the change interface, the association information pair and the change information pair are sorted in upstream and downstream order to obtain the upstream and downstream order between the association information pair and the change information pair; The corresponding online work order number of each information pair is obtained, and a diagram is drawn according to the upstream and downstream sequence between the associated information pair and the changed information pair, and an interface call sequence diagram with the corresponding online work order number is drawn.
3. The method for obtaining the interface call sequence according to claim 2, It is characterized in that The step of performing upstream and downstream sorting on the association information pair and the change information pair according to the calling relationship between the association interface and the change interface to obtain the upstream and downstream sequence between the association information pair and the change information pair includes: Combining each change information pair and each associated information pair in pairs to obtain a plurality of software information groups, each of the software information groups including a change information pair and an associated information pair, and the interfaces in the two information pairs in the same software information group have a calling relationship; For each software information group: according to the calling relationship between two interfaces in the software information group, determine the upstream and downstream order of the change information pair and the associated information pair in the software information group; According to the calling relationship between the interfaces in different software information groups, the upstream and downstream order between different software information groups is determined.
4. The method for obtaining the interface call sequence according to claim 3, It is characterized in that Determining the upstream and downstream order between different software information groups according to the calling relationship between the interfaces in different software information groups includes: If the information pair located downstream in the first software information group is the same as the information pair located upstream in the second software information group, and the information pair located upstream in the first software information group is different from the information pair located downstream in the second software information group, then determining that the first software information group is the upstream software information group of the second software information group; or, If the information pair located upstream in the first software information group is the same as the information pair located downstream in the second software information group, and the information pair located downstream in the first software information group is different from the information pair located upstream in the second software information group, then determining that the first software information group is the downstream software information group of the second software information group; or, If the downstream information pair in the first software information group is the same as the upstream information pair in the second software information group, and the upstream information pair in the first software information group is the same as the downstream information pair in the second software information group, then it is determined that the first software information group and the second software information group are parallel software information groups.
5. The method for obtaining the interface calling sequence according to claim 3, It is characterized in that Also includes: If the associated information pair and the change information pair in the same software information group are the same, it is determined that there is no upstream or downstream sequence relationship between the software information group and other software information groups.
6. The method for obtaining the interface call sequence according to claim 1, It is characterized in that Also includes: A floating box is configured for each information pair in the interface call sequence diagram, wherein the floating box contains attribute information of the software in the information pair.
7. A device for obtaining an interface calling sequence, It is characterized in that The interface calling sequence obtaining device comprises: The order number acquisition unit is used to obtain the online work order number of the software to be changed during the online change process; A first query unit, configured to query and obtain at least one change information pair of the software to be changed according to the online work order number, each of the change information pairs comprising a name of the software to be changed and a name of a change interface of the software to be changed; A second query unit is used to query the software interface association management system to obtain an association information pair of the associated software, wherein the association information pair includes a name of an associated interface having a call relationship with the change interface and a name of an associated software to which the associated interface belongs; An image construction unit is used to construct an interface call sequence diagram with the corresponding online work order number based on the associated information pair, the change information pair and the corresponding online work order number of each information pair, so as to show the calling sequence between the software interfaces in the target information pair, wherein the target information pair includes: the associated information pair and the change information pair.
8. The device for obtaining the interface calling sequence according to claim 7, It is characterized in that The image building unit includes: A sorting subunit, configured to sort the association information pair and the change information pair in an upstream and downstream manner according to the calling relationship between the association interface and the change interface, and obtain an upstream and downstream order between the association information pair and the change information pair; The drawing subunit is used to obtain the corresponding online work order number of each information pair, and draw an interface call sequence diagram with the corresponding online work order number according to the upstream and downstream sequence between the associated information pair and the change information pair.
9. An electronic device, It is characterized in that including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement the various steps of the method for obtaining the interface call sequence as described in any one of claims 1-6.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, each step of the method for obtaining the interface call sequence as described in any one of claims 1 to 6 is implemented.
